Infinitely Health (Godmode)
#1

What is the value for infinitely health (godmode)?
Reply
#2

pawn Код:
#if !defined FLOAT_INFINITY
    #define FLOAT_INFINITY      (Float:0x7F800000)
#endif
Reply
#3

thanks but when i use it with SetPlayerHealth(playerid,Float:0x7F800000);

It won't work, if i spawn i always die, why?
Reply
#4

SetPlayerHealth(playerid, 99999999);

try this :P
Reply
#5

Try this.

PHP код:
#define INFINITY    (Float:0x7F800000)
CMD:godmode(playeridparams[])
{
SendClientMessage(playerid0xFFFFFFFF,"[INFO] Godmode has been actived!");
SetPlayerHealth (playerid,INFINITY);
return 
1;

Reply
#6

Quote:
Originally Posted by Blackazur
Посмотреть сообщение
thanks but when i use it with SetPlayerHealth(playerid,Float:0x7F800000);

It won't work, if i spawn i always die, why?
I used it exactly like that in OnPlayerSpawn and whenever I spawn, everything is fine - I spawn with god mode.

How did you use it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)