god mode while /fly
#1

Is there any method to make me invincible while flying? ( you die if you touch a building or the ground ) or should i just setplayerhealth 999999 ?
Reply
#2

I saw that on a server, so I think is possible, they had the command /god and the command /fly, so you don't take damage while flying and hitting the buildings.
Reply
#3

You can use Float:0x7F800000 to set health to "unlimited", commonly defined as:
Код:
#define FLOAT_INFINITY (Float:0x7F800000)
Note that certain game events (explosion in vehicle, etc) are hard coded and will still cause death.
Reply
#4

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) 
{ 
    new Float:hp; 
    if(weaponid == 54) GetPlayerHealth(playerid, hp), hp+=amount, SetPlayerHealth(playerid, hp); 
    return 1; 
}
Reply
#5

splat will kill you from long distance anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)