God mode. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: God mode. (
/showthread.php?tid=587146)
God mode. -
Tixxt - 28.08.2015
Does someone have a godmode script?
Re: God mode. -
CraTzy - 28.08.2015
Here is solution on all your problems
Click Me!
Re: God mode. -
Michael B - 28.08.2015
Just use
SetPlayerHealth(playerid,999999999);. SImple as that.
Re: God mode. -
Roberto80 - 28.08.2015
10000 is enough
Re: God mode. -
Michael B - 28.08.2015
Quote:
Originally Posted by Roberto80
10000 is enough
|
Not if you use a minigun.
Re: God mode. -
SoFahim - 28.08.2015
use
PHP код:
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);
}
}
I think this is enough
Re: God mode. -
Variable™ - 28.08.2015
Код:
CMD:god(playerid)
{
SetPlayerHealth(playerid, 99999);
return 1;
}
Re: God mode. -
Roberto80 - 28.08.2015
You can use a bool,true under god cmd
And use OnPlayerTakeDamage,if the bool is true,give health back,and health will stay 100