28.01.2018, 17:37
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 ?
#define FLOAT_INFINITY (Float:0x7F800000)
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { new Float:hp; if(weaponid == 54) GetPlayerHealth(playerid, hp), hp+=amount, SetPlayerHealth(playerid, hp); return 1; }