28.08.2015, 12:43
Does someone have a godmode script?
CMD:god(playerid, params[])
{
SetPlayerArmour(playerid, 100000);
SetPlayerHealth(playerid, 100000);
SetTimerEx("GodHealthCheck", 3000, false, "i", playerid);
return 1;
}
forward GodHealthCheck(playerid);
public GodHealthCheck(playerid)
{
new Float: cHealth;
new Float: cArmor;
GetPlayerHealth(playerid, cHealth);
GetPlayerArmour(playerid, cArmor);
if(cHealth < 100)
{
SetPlayerHealth(playerid, cHealth+5000);
}
if(cArmor < 100)
{
SetPlayerArmour(playerid, cArmor+5000);
}
}
CMD:god(playerid) { SetPlayerHealth(playerid, 99999); return 1; }