SA-MP Forums Archive
Unlimited Health, Healthbar flashing. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unlimited Health, Healthbar flashing. (/showthread.php?tid=65680)



Unlimited Health, Healthbar flashing. - Robbin237 - 15.02.2009

Ok guys , im making some kinda admin script.. now i want to give the player unlimited health & armor (god mode). This is my code which i have in a command:

if(IsPlayerAdmin(playerid)) {
GivePlayerWeapon(playerid, 38, 65535);
SetPlayerHealth(playerid, 9999999);
SetPlayerArmour(playerid, 9999999);
}

This all works fine, i can never die. But the problem is, my health bar starts flashing, even though its full. Can anybody help me fix this?

Thanks!


Re: Unlimited Health, Healthbar flashing. - yom - 15.02.2009

It's maxxed to 256.


Re: Unlimited Health, Healthbar flashing. - Robbin237 - 15.02.2009

So if i put it to 256, ppl can shoot me with miniguns all they like, but i wont die? (Same effect as this?)


Re: Unlimited Health, Healthbar flashing. - rensfromrpas - 15.02.2009

its a gta sa related but it isn't to fix i think



Re: Unlimited Health, Healthbar flashing. - Robbin237 - 15.02.2009

Well ive just tryed, and i can still die from grenades, while with the other one i cant.. Anybody help me?


Re: Unlimited Health, Healthbar flashing. - yom - 15.02.2009

First sorry it's 255 not 256, then no, you have to constantly give hp with a fast enough timer.


Re: Unlimited Health, Healthbar flashing. - Robbin237 - 15.02.2009

So at like how fast would i set it?
Its like i want to be able to shoot other ppl using it, but you wont notice it gets refilled. Possible?


Re: Unlimited Health, Healthbar flashing. - yom - 15.02.2009

Not possible with SA-MP.


Re: Unlimited Health, Healthbar flashing. - Pghpunkid - 15.02.2009

Quote:
Originally Posted by 0rb
Not possible with SA-MP.
False. I have a Godmode script that constantly gives a player 1000hp per second while enabled, and the bar does not flash. So please know your facts.


Re: Unlimited Health, Healthbar flashing. - Streetplaya - 15.02.2009

Quote:
Originally Posted by Pghpumpkin
Quote:
Originally Posted by 0rb
Not possible with SA-MP.
False. I have a Godmode script that constantly gives a player 1000hp per second while enabled, and the bar does not flash. So please know your facts.
My godmode works like yours but i dont think yours is using OnPlayerUpdate