SA-MP Forums Archive
[FilterScript] [Great for RP] Random fires for firefighters - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [Great for RP] Random fires for firefighters (/showthread.php?tid=252523)

Pages: 1 2


[Great for RP] Random fires for firefighters - Outcast - 01.05.2011

This is a FS that has a 50-50 chance of spawning a fire on one of the 21 locations currently scripted, in Red County. It tries to spawn a fire every 30 seconds. Firefighters can /putoutfire to put it out. Civilians who approach too close to the fire start losing health, until they move away.

How to use

Get in a firetruck or have a fire extingusher. Make sure you have a firefighter skin and get close to the fire and type /putoutfire.

Note:
- Only one fire is spawned at the map
- The fire consists of 5 large flames that dissapear over time (after you extingush them)
- The whole fire has 100 points. /putoutfire'ing in a firetruck results in -15 points for a fire, while on foot in -5

Commands

- /putoutfire - extingush the fire.

Known bugs

- None found at the moment, but there's a possibility.


Screenshot



Uploaded with ImageShack.us

Uploaded with ImageShack.us


Download

.AMX - http://www.mediafire.com/?2sshubqc0pst8u7
.PWN - http://www.mediafire.com/?awbk8zv85vud4uj
Pastebin - http://pastebin.com/XQ44u1wz


Credits

Outcast - creator


License
You are permitted to use this and modify it as long as you give credits and keep the credits in the script untouched.


Re: [Great for RP] Random fires for firefighters - 69Playa - 01.05.2011

I needed this a lot, and by the look of it, this looks really realistic. Thank you very, very much, and good job!


Re: [Great for RP] Random fires for firefighters - Outcast - 01.05.2011

Quote:
Originally Posted by 69Playa
View Post
I needed this a lot, and by the look of it, this looks really realistic. Thank you very, very much, and good job!
No problem. Feel free to modify it to fit your needs. I did it very quickly, so there may be bugs, I'll fix them if found.


Re: [Great for RP] Random fires for firefighters - sherlock - 01.05.2011

looks good,please could you post some more info and/or screenshots?


Re: [Great for RP] Random fires for firefighters - NotoriousMOB - 01.05.2011

So damn great been looking for this.
thank you sir


Re: [Great for RP] Random fires for firefighters - Ivan_Pantovic - 01.05.2011

Fucking awesome job!


Re: [Great for RP] Random fires for firefighters - =WoR=Varth - 01.05.2011

Geez this is great.


Re: [Great for RP] Random fires for firefighters - Steven82 - 02.05.2011

Great job, thanks I'm going to be using this. Don't worry you will be credited if i use it.


Re: [Great for RP] Random fires for firefighters - Travis098 - 02.05.2011

It looks very nice, but i cant use this on my RP server as we use mainly Los Santos


Re: [Great for RP] Random fires for firefighters - justsomeguy - 02.05.2011

Every 30 seconds? Can i change that in the script at the defines or something as i gotta say that every 30 seconds is a bit muchX)


Re: [Great for RP] Random fires for firefighters - Outcast - 02.05.2011

Quote:
Originally Posted by justsomeguy
View Post
Every 30 seconds? Can i change that in the script at the defines or something as i gotta say that every 30 seconds is a bit muchX)
Well, you can change it under the "CMDutoutfire..." part of the script. Just search for SetTimer("ReloadFun", ...) and change the 30000 to which ever number you like (like, for 5 seconds you use 5000, and so on).


Re: [Great for RP] Random fires for firefighters - Big_Fat_Boy - 03.05.2011

Verry nice job my server needed this, thanks alot


Re: [Great for RP] Random fires for firefighters - The_J0ker - 15.05.2011

Nice how would i send a message to fd that fire has broken out at blah location?


Re: [Great for RP] Random fires for firefighters - Lorenc_ - 15.05.2011

Is this server side fire? Like does the fire hurt you?


Re: [Great for RP] Random fires for firefighters - Outcast - 22.05.2011

Quote:
Originally Posted by Lorenc_
View Post
Is this server side fire? Like does the fire hurt you?
Yes, it hurts you, but you can't be set on fire though...


Re: [Great for RP] Random fires for firefighters - oliver12 - 23.05.2011

How i can create new fire locations?
there is a lot of cordinates in one createfire
Please explain me that
______________________________
Sorry for my bad english


Re: [Great for RP] Random fires for firefighters - whyme - 25.05.2011

how i can modify this FS..I want tthat the fireman take cash when stop the fire..How i can do?


Re: [Great for RP] Random fires for firefighters - Ironboy - 26.05.2011

Nice release Outcast.


Re: [Great for RP] Random fires for firefighters - Outcast - 03.07.2011

Quote:
Originally Posted by oliver12
View Post
How i can create new fire locations?
there is a lot of cordinates in one createfire
Please explain me that
______________________________
Sorry for my bad english
Well, every "createfire" has five x,y,z co-ordinates. That's because fire is made out of 5 big fire particles. So, for each new fire location you have to create 5 fire particles. So it would be like:

X1, Y1, Z1, (1st fire particle)X2, Y2, Z2 (2nd fire particle) ...


Re: [Great for RP] Random fires for firefighters - JustSex - 03.07.2011

fire!!! wow