Fire Extinguisher
#1

How can I check if someone is extinguishing a fire with a fire extinguisher?
Also he should be in range of the fire object but I know how to do that. Can someone help me on the extinguishing part? It should also have health so you will HAVE TO extinguish for like 10 seconds.
Should be really nice if it shows the health in a textdraw.

I need a simple script! Not with firetrucks enabled and such things, just a fire extinguisher!
Reply
#2

My approach would be, creating the fire as separate objects, if possible, and using the coords you created the object with to check if the player is in range. About the health, just set a timer which checks if the player is holding a fire extinguisher and if he's firing it (detect with KEY_FIRE or something). If yes, do -something from a health var. About the textdraw, there's a progressbar include for that. As far as I know, there are no pre-made scripts for this, well, maybe there are, but I haven't seen any released scripts. I hope I at least get you starting.
Reply
#3

Use the search function the next time, please.

https://sampforum.blast.hk/showthread.php?tid=165299
Reply
#4

Quote:
Originally Posted by GiamPy.
Посмотреть сообщение
Use the search function the next time, please.

https://sampforum.blast.hk/showthread.php?tid=165299
Yes, I forgot to mention that.
I've searched for those scripts alot of times.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)