Squirrel/Server/Functions/Players/FindPlayer

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function finds a player from an ID or part of the nick and returns the pointer to that player. If no player is found, ''null'' will be returned. == Syntax == ''FindPlayer'...)

Revision as of 08:00, 14 December 2009

This function finds a player from an ID or part of the nick and returns the pointer to that player. If no player is found, null will be returned.

Syntax

FindPlayer can take 2 different lists of parameters. These are:

  1. Player FindPlayer( int id )
  1. Player FindPlayer( string name )

Arguments

  • id - The ID of the player to be found
  • name - The name (or part of it) of the player to be found

Example

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. -- todo
  3.  

Notes

-- Example notes/list of used functions here

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox