SA-MP Forums Archive
Is there a way to turn off oxygen? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is there a way to turn off oxygen? (/showthread.php?tid=607277)



Is there a way to turn off oxygen? - ax1 - 17.05.2016

Is there a way to turn off oxygen? Without https://sampforum.blast.hk/showthread.php?tid=606323 this plugin?


Re: Is there a way to turn off oxygen? - Luicy. - 17.05.2016

Well, Godmode might work.


Re: Is there a way to turn off oxygen? - Yashas - 17.05.2016

Quote:
Originally Posted by Meller
Посмотреть сообщение
Well, Godmode might work.
Yes, it works but this creates a problem. What if someone shoots him when he is underwater? If the player goes bulletproof when he goes underwater, every player will abuse it to save himself. So this is not a viable option.

OT: There is no other way. The plugin is basically memory hacking to do the impossible. This cannot be done in PAWN.


Re: Is there a way to turn off oxygen? - Luicy. - 17.05.2016

Removed.


Re: Is there a way to turn off oxygen? - PrO.GameR - 17.05.2016

Quote:
Originally Posted by Yashas
Посмотреть сообщение
Yes, it works but this creates a problem. What if someone shoots him when he is underwater? If the player goes bulletproof when he goes underwater, every player will abuse it to save himself. So this is not a viable option.

OT: There is no other way. The plugin is basically memory hacking to do the impossible. This cannot be done in PAWN.
What if someone actually thinks this thru and keeps the actual health of the player and kill him with code if it reaches 0?
There is always a way.

OT: It can be done but it won't be perfect, you should change player's health to infinity, then keep his actual health in a variable so you could do calculations from other sources of dmg although this would cause the health to blink and stuff, you can't change the oxygen but with this you can stop player from dying without oxygen.


Re: Is there a way to turn off oxygen? - ax1 - 17.05.2016

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
What if someone actually thinks this thru and keeps the actual health of the player and kill him with code if it reaches 0?
There is always a way.

OT: It can be done but it won't be perfect, you should change player's health to infinity, then keep his actual health in a variable so you could do calculations from other sources of dmg although this would cause the health to blink and stuff, you can't change the oxygen but with this you can stop player from dying without oxygen.
Ok thanks. Tho samp team should really create some functions for oxygen control...