22.10.2013, 16:37
Rather than having a value of 999 etc., make it -1 instead.
Change all values like the ones above to -1, or INVALID_PLAYER_ID.
pawn Код:
if(GettingSpectated[playerid] != 999)
{
new spectator = GettingSpectated[playerid];
if(!IsPlayerConnected(spectator))
{
GettingSpectated[playerid] = 999;
Spectate[spectator] = 999;
}