GetSpawnClassCount
From Liberty Unleashed Wiki
This function returns the number of different spawn classes on the server.
Syntax
int GetSpawnClassCount()
Arguments
- none
Example
function onPlayerCommand( player, cmd, text ) { if ( cmd == "spawncount" ) { local count = GetSpawnClassCount( ); MessagePlayer( "The current spawn class count is: " + count, player ); } }
This example will return the number of spawn classes.
Notes
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.