10.07.2010, 11:09
moO! how to make it so that /gods turns the health and armour back to 100 the /gods already turns armour and health to infinity i just wanna know how to get it back to like a normal player
pawn Код:
if(strcmp(cmdtext, "/gods", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_MAGENTA, "GODSMODE ON");
SetPlayerArmour(playerid, INFINITY);
SetPlayerHealth(playerid, INFINITY);
}
return 1;
}
else
{
if(strcmp(cmdtext, "/gods", true) == 0)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_MAGENTA, "GODSMODE OFF");
}
}