Thread: Shovel Script
View Single Post
  #6  
Old 07-26-2009, 05:48 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
ok I got it to work, but on my systems, we use clientr.item.ITEMNAME=QUANTITY.

How would I get it to add 1 quantity when it adds the weapon? heres what I have right now.


PHP Code:
function onActionServerSidecmd )
{
  switch( 
cmd )
  {
    case 
"shovel":
    {
    
setani jamerson_shovel,NULL;
    
freezeplayer 1;
    
addWeapon(shoveling_prizes[int(random(0,3))]); 
  }
 }
}
//#CLIENTSIDE
function onWeaponFired()
{
if ( 
player.level ="jamerson-shovel.nw" )
{
triggerserver"weapon"name"shovel" );
temp.shoveling_prizes = {"Treasure/Map""Treasure/Chest""Treasure/Key"}; 
}
else
player.addMsg2("You must be in the shovel room to use shovel!");

Reply With Quote