GetPlayerFromNick

From Multi Theft Auto: Wiki
Revision as of 17:03, 26 March 2006 by Vandalite (talk | contribs)
Jump to navigation Jump to search

Description

This function returns a player object from a name.

Syntax

player FindPlayer ( string name )

Required Arguments

  • name: A string containing the name of the player you want to reference

Example

player = getPlayerFromNick ( "Vandalite" )
if ( killPlayer ( player ) ) then
  serverChat  ( "Vandalite was found, and eliminated" )
end