08.12.2012, 07:54
Make a new variable at the top:
in OnPlayerConnect and OnPlayerDeath and OnPlayerDisconnect:
Instead of this in the if statement:
do this:
Hope this helped.
pawn Код:
new God[MAX_PLAYERS];
pawn Код:
God[playerid] = 0;
pawn Код:
PlayerInfo[playerid][pAdmin] >= 2
pawn Код:
if(God[playerid] == 0)
{
//code to turn it on.
}
else
{
//code to turn it off.
}