Ammo
This command simply sets the amount of ammo for the player. The ammo is the amount the player has in reserver, do not get this confused with clip. This is similar to AmmoAdd, except this sets a new value, rather than adding to the value already.
The correct syntax is:
wcs.Command(<userid>).Ammo(<amount>, <slot>)
- Userid - The player that you want to change the ammo of
- Amount - The new ammo amount
- Slot - 1 = primary, 2 = secondary
Example:
-
def item_pickup(ev):
-
if ev["item"] == "weapon_awp":
-
wcs.Command(ev['userid']).Ammo(0,1)
-
# Sets the awp ammo to 0
Comments (0)
You don't have permission to comment on this page.