How to give infinite life?
#1

How to give a INFINITE life in command?

I trying:
SetPlayerHealth(playerid, 9999999999999);

And one hit he dead, what the command to give a infinite life?
Sorry my english and thanks.
Reply
#2

up

plz need help.
Reply
#3

Just set it to like 250,000 or something.
Reply
#4

This works fine for me.

SetPlayerHealth(playerid,999999);
Reply
#5

Yes, it works but it's not really infinite and they will get killed somewhen though...

It's better do that like ****** said:
pawn Код:
#define FLOAT_INFINITY   (Float:0x7F800000)
and then
pawn Код:
SetPlayerHealth(playerid, FLOAT_INFINITY);
Reply
#6

No work :/
Reply
#7

Quote:
Originally Posted by ZeeX
Yes, it works but it's not really infinite and they will get killed somewhen though...

It's better do that like ****** said:
pawn Код:
#define FLOAT_INFINITY   (Float:0x7F800000)
and then
pawn Код:
SetPlayerHealth(playerid, FLOAT_INFINITY);
Me and my friend tested that in my server when he first posted it and it caused de-sync issues. While you couldn't die, when your health was set to this, it would show your character being killed on everyone else's screen. Same with vehicles. But that was before 0.3 so it might work now.
Reply
#8

Other anwsner,
How to give exaust in use command? 1x in 20 minute?
Ex: /an have exaust.
:S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)