Addammo: Difference between revisions
Jump to navigation
Jump to search
m Example |
No edit summary |
||
Line 1: | Line 1: | ||
addammo <weapon> <amount> | '''addammo''' <weapon> <amount> | ||
Adds <amount> to ammo of <weapon>. Similar to [[addweapon]] and [[addweaponvar]], but doesn't add the weapon if the player doesn't already have it. | Adds <amount> to ammo of <weapon>. Similar to [[addweapon]] and [[addweaponvar]], but doesn't add the weapon if the player doesn't already have it. |
Revision as of 10:44, 4 May 2009
addammo <weapon> <amount>
Adds <amount> to ammo of <weapon>. Similar to addweapon and addweaponvar, but doesn't add the weapon if the player doesn't already have it.
actor AMMO fall ifmove RESPAWN_ACTOR_FLAG state respawnit else ifp pshrunk nullop else ifp palive ifcount 6 ifpdistl RETRIEVEDISTANCE ifcanseetarget { addammo PISTOL_WEAPON PISTOLAMMOAMOUNT quote 65 ifspawnedby AMMO state getcode else state quikget } enda