How to give infinite life?
#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


Messages In This Thread
How to give infinite life? - by Guiihz - 22.11.2009, 01:05
Re: How to give infinite life? - by Guiihz - 22.11.2009, 01:23
Re: How to give infinite life? - by (.Aztec); - 22.11.2009, 03:01
Re: How to give infinite life? - by BP13 - 22.11.2009, 03:30
Re: How to give infinite life? - by Zeex - 22.11.2009, 03:42
Re: How to give infinite life? - by Guiihz - 22.11.2009, 14:34
Re: How to give infinite life? - by Backwardsman97 - 22.11.2009, 14:36
Re: How to give infinite life? - by Guiihz - 22.11.2009, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)