08.12.2012, 07:30
pawn Код:
CMD:god(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SetPlayerHealth(playerid, 9999999);
SetPlayerArmour(playerid, 9999999);
SendClientMessage(playerid, COLOR_WHITE, "God Mode {009900}[On]");
aGod[playerid] = 1;
}
else
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_WHITE, "God Mode {CC0000}[Off]");
aGod[playerid] = 0;
}
return 1;
}