23.07.2016, 18:48
Sure...you do sth like this:
PHP код:
//@top of the script
new sniperCounter,bool:inSniper[MAX_PLAYERS char];
//If the player enters the sniper Arena
if(!inSniper{playerid})
{
sniperCounter++;
inSniper{playerid} = true;
}
//If the player leaves the sniper
sniperCounter--;
inSniper{playerid} = false;
//If the player disconnects
if(inSniper{playerid})
{
sniperCounter--;
inSniper{playerid} = false;
}
//And the value of sniperCounter = the player amount who are there