GetPlayerPoolSize

warning

This function was added in SA-MP 0.3.7 and will not work in earlier versions!

Description

Gets the highest playerid currently in use on the server.

Examples

FreezeAll()
{
// note that we assign the return value to a new variable (j) to avoid calling the function with each iteration
for (new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
TogglePlayerControllable(i, 0);
}
}

Related Functions