15.02.2009, 10:01
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!
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!