15.10.2018, 05:28
pawn Код:
CMD:vgod(playerid)
{
if(PlayerInfo[playerid][pVIP] < 2)
return SendClientMessage(playerid, COLOR_RED, "You don't have V.I.P Access to you're account.");
if(PlayerInfo[playerid][pGOD] == 0)
{
SetPlayerHealth(playerid, 999999999);
SendClientMessage(playerid, COLOR_GREEN, "You have enabled God Mode.");
PlayerInfo[playerid][pGOD] = 1;
}
else if(PlayerInfo[playerid][pGOD] == 1)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "You have disabled God Mode.");
PlayerInfo[playerid][pGOD] = 0;
}
return 1;
}