KillPlayer

From Multi Theft Auto: Wiki
Revision as of 18:35, 26 March 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

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 )

Required Arguments

  • player: A player object referencing the specified player

Example

player = GetPlayerFromID ( 1 )
if ( KillPlayer ( player ) )
serverChat ( GetPlayerName ( " was eliminated." ) )
end