Usage

Syntax: findplayer( str account)
Returns a TServerPlayer object .

Explanation

It takes a player account as a parameter and returns a TServerPlayer object. This allows you to access player data.

Example

Here a TServerPlayer object is assigned to temp.pl then, the player chat is accessed and set to "Hello World";

function onCreated()
{
  temp.pl = findplayer("Seich");
  temp.pl.chat = "Hello World";
}


Categories

CategoryFunctionServerside

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki