GetPlayerFromNick: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
==Description== | ==Description== | ||
This function returns a [[player]] object from a name. | This function returns a [[player]] object from a name. | ||
Line 7: | Line 8: | ||
===Required Arguments=== | ===Required Arguments=== | ||
* '''name''': A string containing the name of the player you want to reference | * '''name''': A string containing the name of the player you want to reference | ||
==Example== | ==Example== |
Revision as of 17:03, 26 March 2006
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