TakeAllWeapons: Difference between revisions
Jump to navigation
Jump to search
JonChappell (talk | contribs) No edit summary |
JonChappell (talk | contribs) m (→Example) |
||
Line 12: | Line 12: | ||
player = [[getPlayerFromID]] ( 1 ) | player = [[getPlayerFromID]] ( 1 ) | ||
[[TakeAllWeapons]] ( player ) | [[TakeAllWeapons]] ( player ) | ||
[[serverChat]] ( "All weapons removed from ", getPlayerName ( player ), "." ) | [[serverChat]] ( "All weapons removed from ", [[getPlayerName]] ( player ), "." ) | ||
Revision as of 19:03, 26 March 2006
Description
This function removes every weapons from a specified player, rendering him unarmed. It returns a boolean value (true or false) depending on whether the function passed or failed.
Syntax
bool TakeAllWeapons ( player player )
Required Arguments
Example
player = getPlayerFromID ( 1 ) TakeAllWeapons ( player ) serverChat ( "All weapons removed from ", getPlayerName ( player ), "." )