Scripting/Server/Functions/GetMaxPlayers
The max_players limit.
Syntax
GetMaxPlayers()Returns
integer
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "getmaxplayers" )
{
local result = GetMaxPlayers();
MessagePlayer( "GetMaxPlayers returned: " + result, player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- FindPlayer
- FindVehicle
- FindObject
- FindPickup
- FindSphere
- FindBlip
- FindNPC
- GetPlayers
- GetClosestPlayer
- GetVehicleCount
- GetObjectCount
- KickPlayer
Section: Finding and counting entities
Categories: Server functions | Finding and counting entities