God mode
#2

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


Messages In This Thread
God mode - by Scott Zulkifli - 08.12.2012, 07:30
Re: God mode - by YoYo123 - 08.12.2012, 07:54
Re: God mode - by Threshold - 08.12.2012, 07:59
Re: God mode - by Konstantinos - 08.12.2012, 09:34
Re: God mode - by JaKe Elite - 08.12.2012, 10:29
Re: God mode - by Konstantinos - 08.12.2012, 10:33

Forum Jump:


Users browsing this thread: 2 Guest(s)