SA-MP Forums Archive
[Help] burning house - 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: [Help] burning house (/showthread.php?tid=110834)



[Help] burning house - Eduardo_MK - 28.11.2009

hi,

may catch fire house randomness?, for firefighters(fireman) to extinguish the fire

excuse my English is very bad, my native language is Spanish

bye, thank you


Re: [Help] burning house - dice7 - 28.11.2009

The only way you can make fire via scripting is by making explosions. And I doubt there is a way to detect if you have extinguished the flames.

But you can create objects which are on fire (search). They don't make the fire spread, but you can make that if a player is near it and is holding the fire button for some amount of time, you can then destroy the object

https://sampwiki.blast.hk/wiki/CreateObject
https://sampwiki.blast.hk/wiki/DestroyObject
https://sampwiki.blast.hk/wiki/SetTimer
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/GetPlayerKeys or https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange