TakeAllWeapons: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 13: Line 13:
TakeAllWeapons ( player )  
TakeAllWeapons ( player )  
outputChatBox ( "All weapons removed from ", getPlayerName ( player ), "." )</syntaxhighlight>
outputChatBox ( "All weapons removed from ", getPlayerName ( player ), "." )</syntaxhighlight>
==See Also==
{{Weapon functions}}

Revision as of 20:29, 20 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 ) 
outputChatBox ( "All weapons removed from ", getPlayerName ( player ), "." )

See Also