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 onActionServerSide( cmd )
{
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!");
}