30.07.2012, 12:09
pawn Код:
CMD:god(playerid, params[])
{
if(GodMode[playerid] == 0)
{
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
GodMode[playerid] = 1; // its shout be like that becose after you become "god" and use
//command again you still will be and cant check if you are alredy or not
}
else if(GodMode[playerid] == 1)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
}
return 1;
}