Unlimited Health, Healthbar flashing.
#1

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!
Reply
#2

It's maxxed to 256.
Reply
#3

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

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

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

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

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?
Reply
#8

Not possible with SA-MP.
Reply
#9

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)