GetPlayerFromNick: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
[[player]] [[ | [[player]] [[getPlayerFromNick]] ( string name ) | ||
===Required Arguments=== | ===Required Arguments=== |
Revision as of 14:44, 30 March 2006
Description
This function returns a player object from a name.
Syntax
player getPlayerFromNick ( 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