TakeAllWeapons: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This function removes every weapons from a specified player, rendering him unarmed. | This function removes every weapons from a specified player, rendering him unarmed. | ||
''Note: weapons are removed when a player dies by default. This is if you want to take them away when the player is alive.'' | |||
==Syntax== | ==Syntax== |
Revision as of 09:12, 16 November 2006
This function removes every weapons from a specified player, rendering him unarmed.
Note: weapons are removed when a player dies by default. This is if you want to take them away when the player is alive.
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