GetPlayerFromNick

From Multi Theft Auto: Wiki
Revision as of 14:55, 26 March 2006 by ChrML (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
  • ID: An int containing the ID of the player you want to reference

Example

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