SA-MP Forums Archive
Fire Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fire Help (/showthread.php?tid=87235)



Fire Help - cloud9 - 19.07.2009

Can some one tell me how to find whether the player is in fire or not, like when u molo someone they are on fire and i must stop them from using some commands, can u tell me?


Re: Fire Help - Correlli - 19.07.2009

You can't detect if player is on fire, but you can script so you can detect if player is losing health.


Re: Fire Help - cloud9 - 19.07.2009

can u tell me how? cuz i am p noob in scripting


Re: Fire Help - cloud9 - 19.07.2009

bump, plz help


Re: Fire Help - Correlli - 19.07.2009

You would need a timer and you would need to store player's old health and check it with current health.
Search around.


Re: Fire Help - yezizhu - 19.07.2009

Quote:
Originally Posted by Don Correlli
You can't detect if player is on fire, but you can script so you can detect if player is losing health.
Hmm, it's possible, but a little buggy.
Think about OnnPlayerKeyStateChange


Re: Fire Help - Weirdosport - 19.07.2009

Quote:
Originally Posted by yezizhu
Quote:
Originally Posted by Don Correlli
You can't detect if player is on fire, but you can script so you can detect if player is losing health.
Hmm, it's possible, but a little buggy.
Think about OnnPlayerKeyStateChange
What does what the player is pressing have anything to do with it?


Re: Fire Help - yezizhu - 19.07.2009

Quote:

What does what the player is pressing have anything to do with it?

I don't make sense...
I've written an anti-lock ammo script, it catches rule breakers everyday.
But someone said they don't know why they get arrestted when they try to should near a wall ,I know XD
So it's a little buggy.