KillPlayer

From Multi Theft Auto: Wiki
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