14.10.2018, 18:59
pawn Код:
CMD:vgod(playerid)
{
if(PlayerInfo[playerid][pVIP] != 2) return SendClientMessage(playerid, COLOR_RED, "You don't have V.I.P Access to your account.");
switch (PlayerInfo[playerid][pGOD])
{
case 0:
{
SetPlayerHealth(playerid, 999999999);
SendClientMessage(playerid, COLOR_GREEN, "You have enabled God Mode.");
PlayerInfo[playerid][pGOD] = 1;
}
case 1:
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "You have disabled God Mode.");
PlayerInfo[playerid][pGOD] = 0;
}
}
return 1;
}