TakeAllWeapons
Jump to navigation
Jump to search
This function removes every weapons from a specified player, rendering him unarmed.
Syntax
TakeAllWeapons ( thePlayer )
Required Arguments
- thePlayer: A player object referencing the specified player
Returns
Returns true if the function succeeded, false otherwise.
Example
player = getPlayerFromID ( 1 ) TakeAllWeapons ( player ) outputChatBox ( "All weapons removed from ", getPlayerName ( player ), "." )
See Also
- getWeaponProperty
- getPickupWeapon
- getOriginalWeaponProperty
- getSlotFromWeapon
- getWeaponIDFromName
- getWeaponNameFromID
- setWeaponAmmo
- setWeaponProperty