17.07.2011, 15:50
pawn Код:
CMD:gmodeon(playerid, params[]) //god mode on command
{
if(IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid, 100000);
SetPlayerArmour(playerid, 100000);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
}
return 1;
}
CMD:gmodeoff(playerid, params[]) //god mode off command
{
if(IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
}
return 1;
}