TakeAllWeapons: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
|||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">TakeAllWeapons ( player )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== |
Revision as of 02:39, 18 May 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
TakeAllWeapons ( player )
Required Arguments
- player: A player object referencing the specified player
Example
player = getPlayerFromID ( 1 ) TakeAllWeapons ( player ) serverChat ( "All weapons removed from ", getPlayerName ( player ), "." )