22.02.2015, 10:29
On the top of the script:
Under OnPlayerConnect:
This ?!
Код:
new bool:god[MAX_PLAYERS];
Код:
public OnPlyerConnect(playerid) { god[playerid] = 0; return 1; }
Код:
if(strcmp(cmd, "/God", true) == 0) { if (PlayerStats[playerid][pAdmin] >= 2) { if(god[playerid] == 0) { god[playerid] = 1; SetPlayerHealth(playerid,999); } else { god[playerid] = 0; SetPlayerHealth(playerid,100); } } return 1; }