28.11.2009, 19:24
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
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