KillPlayer
Jump to navigation
Jump to search
This function kills the specified player. It returns a boolean value (true or false) depending on whether the function passed or failed.
Syntax
bool KillPlayer ( player thePlayer )
Required Arguments
- player: A player object referencing the specified player.
Returns
Returns true if the function succeeded, and false otherwise.
Example
player = GetPlayerFromID ( 1 ) if ( KillPlayer ( player ) ) outputChatBox ( ( GetPlayerName ( player ), " was eliminated." ), source ) end