Usage

Syntax: allplayers
Returns an array of objects.

Explanation

allplayers returns an array of player objects for all players. On the serverside, this usually just includes all players on the server, but on the clientside, this may also include IRC users and global playerlist entries.

Example

//#CLIENTSIDE
function onCreated()
{
  for (temp.pl: allplayers)
  {
	if (temp.pl.account.starts("S"))
	{
	  temp.count ++;
	}
  }
	
  echo(temp.count + " players with an account name starting with S");
}

... counts the number of players whose account name starts with the letter "S".

Categories

CategoryBuiltInVariable

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

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