TakeAllWeapons
Jump to navigation
Jump to search
This function removes every weapons from a specified player, rendering him unarmed.
Syntax
bool takeAllWeapons ( player thePlayer )
Required Arguments
- thePlayer: A player object referencing the specified player
Returns
Returns true if the function succeeded, false otherwise.
Example
This example removes all weapons from every player
takeAllWeapons ( getRootElement() ) --remove all the weapons outputChatBox ( "Weapons are not permitted!" ) --tell the players why they lost their weapons