26.06.2012, 08:01
Can anyone change this to zcmd? i already compiled it and no error. After i use it ingame nothing happens. Do you think this is because of the command processor im using?
Код:
new God[MAX_PLAYERS] = 0;
if(strcmp("/god", cmdtext, true, 10) == 0)
{
if (God[playerid] == 1)
{
GameTextForPlayer(playerid, "~r~GOD ~r~MODE ~r~DISABLED", 3000, 3);
SetPlayerHealth(playerid, 100);
God[playerid] = 0;
return 1;
}
else if(God[playerid] == 0)
{
GameTextForPlayer(playerid, "~r~GOD ~r~MODE ~r~ENABLED", 3000, 3);
God[playerid] = 1;
SetPlayerArmour(playerid, 10000);
SetPlayerHealth(playerid, 10000);
return 1;
}
}


