WarCraft: Source

 

ClipAdd

Page history last edited by freddukes@... 1 yr ago

ClipAdd


 

This command adds the amount to the current clip value. The clip is the amount of loaded bullets in the gun, do not get this confused with Ammo. This command is similar to Clip, but instead of setting a new value, it will add/subtract the value from the current amount.

 

The correct syntax is:

 

wcs.Command(<userid>).ClipAdd(<amount>, <slot 1/2>)

 

  • Userid - The player who's clip size you're changing
  • Amount - This is the amount that you either want to subtract or add. It can be negative or positive
  • Slot - 1 = primary --- 2 = Secondary

 


 

Example:

 

def weapon_fire(ev):

    if ev['weapon'] in ["glock","usp","p228","deagle","elite","fiveseven"]:

        wcs.Command(ev['userid']).ClipAdd(1,2)

    else:

        wcs.Command(ev['userid']).ClipAdd(1,1)

        # Infinite ammo

 

Comments (0)

You don't have permission to comment on this page.