Usage
Syntax: players
Returns an array of objects.
Explanation
players returns an array of player objects for players in the current level.
Example
//#CLIENTSIDE function onCreated() { for (temp.pl: players) { if (temp.pl.account.starts("S")) { temp.count ++; } } echo(temp.count + " players with an account name starting with S"); }
... counts the number of players in the current level whose account name starts with the letter "S".
Categories
CategoryBuiltInVariable