From Liberty Unleashed Wiki
This returns the number of players currently playing on the server. (This function also has an alias GetPlayerCount)
- int GetPlayers()
This command will return the number of players in-game when someone types /players'.
- function onPlayerCommand( plr, cmd, text )
- if ( cmd == "players" )
- Message( "There are currently " + GetPlayers() + " players in-game.", lpr );
- return 1;