SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 16/02/2011, 05:54 PM   #1
Meta
Gangsta
 
Meta's Avatar
 
Join Date: Feb 2010
Posts: 644
Reputation: 47
Spray Extinguishable Fire 0.4b

Extinguishable Fire! v0.4b
Hi
Today I present to you my "ExtFire"-Filterscript released on the german forums on 13th December 2010.
I've been to lazy to translate it to english ...

Intro


Yea, what can I tell you here I think everyone always wanted to control the fire in San Andras. "ExtFire" gives you the ability to lay fire where you want, extinguish it and let players burn, too ^^

Functions

Changelog:

12.12.2010 - First Release (German forums)

13.12.2010
  • Added Smoke if a player tries to extinguish a flame (like on normal fire)
  • Made Players extinguishable
07.04.2011
  • You can now stop burning if "CanPlayerBurn" returns 0 (e.g. you start swimming)
  • You can't burn in water
  • You can extinguish players now by pissing
  • The Smoke gets deleted now, if the Filterscript gets unloaded (stayed there before).
  • 5:26 pm: Smoke-Bugfix, please re-download!
01.05.2011 - Added explosions if you're trying to extinguish with a spray can

07.08.2011 - Removed AllowFireCMD as it was silly and made a few fixes

28.08.2011 - Fixed an error that made it unable to extinguish the flames

08.09.2012
  • Fixed a huge bug that made only ID 0 extinguish fires or so
  • Tweaked the performance
03.08.2013
  • General code clean ups, prepared the script to be changed to be an include
  • Changed variables and functions to fit the name convention, merged some to reduce redunant code


With this Filterscript you can do this:
  • With /fire you can create a fire, if enabled in Pawn.
  • Fire can be extinguished on 3 ways.
  • If you walk through a flameWITHOUT being a fireman (skin), you'll get on fire.
  • If you touch some burning people, you also start to burn
You can extinguish flames with the extinguisher (GunID 42), a firetruck (Model 407), a SWAT Van (Model 601) and with SPECIAL_ACTION_PISSING
If "Flame ahead" is displayed on your screen, the extinguishing process just begun.

Required: minimum SAMP 0.3c RC1

Note:
  • This fire acts like normal San Andreas Fire, it damages the player and burns as long as normal fire ^^
  • Players earn money, if they extinguish a fire. You can simply disable this with commenting this:
    pawn Code:
    #define EarnMoney
  • This Filterscript is multi-langual: German and english. Just change Line 10.
    pawn Code:
    #define German                              // German or English?

Functions & Callbacks:
pawn Code:
CreateFire(Float:x, Float:y, Float:z);
CreateSmoke(Float:x, Float:y, Float:z);
DestroyFire(id);
DestroySmoke(id);
RemoveSmokeFromFire(id);
TogglePlayerBurning(playerid, burning);
GetFireID(Float:x, Float:y, Float:z, &Float:dist);

OnFireUpdate();
ExtinguishTimer(playerid, id);
BurningTimer(playerid);StopPlayerBurning(playerid);

To config, when a player can burn, you can add this to your gamemode easily:
pawn Code:
public CanBurn(playerid)
{
 //check ...
 return 1; //0 = false, 1 = true
}

Screenshots:

Extiguishing by Extinguisher
Extiguishing with a Firetruck
Peeing the flames out ^^

Downloads:

ExtFire v0.4b (.zip with source and images)
Pastebin

German Post

==================================
Also check out MMF to keep this filterscript up to date!
==================================

Have Fun!

Last edited by Meta; 03/08/2013 at 07:08 AM. Reason: update
Meta is offline   Reply With Quote
Old 16/02/2011, 06:09 PM   #2
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Location: Lithuania
Posts: 1,251
Reputation: 137
Default Re: Extinguishable Fire

I think it's too complicated. But still. Good work!
wups is offline   Reply With Quote
Old 16/02/2011, 06:16 PM   #3
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 3,977
Reputation: 1587
Default Re: Extinguishable Fire

I like it that you can pee xD
Kwarde is offline   Reply With Quote
Old 16/02/2011, 06:31 PM   #4
Meta
Gangsta
 
Meta's Avatar
 
Join Date: Feb 2010
Posts: 644
Reputation: 47
Default AW: Extinguishable Fire

why not? :3
Meta is offline   Reply With Quote
Old 16/02/2011, 06:33 PM   #5
Maftaca
Huge Clucker
 
Maftaca's Avatar
 
Join Date: Jan 2011
Posts: 215
Reputation: 1
Default Re: Extinguishable Fire

Like Firemen Work. Good Work And Nice
Maftaca is offline   Reply With Quote
Old 16/02/2011, 11:18 PM   #6
Meta
Gangsta
 
Meta's Avatar
 
Join Date: Feb 2010
Posts: 644
Reputation: 47
Default AW: Extinguishable Fire

EDIT: Problem solved

Last edited by Meta; 17/02/2011 at 01:58 PM.
Meta is offline   Reply With Quote
Old 20/02/2011, 05:06 PM   #7
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,027
Reputation: 1001
Default Re: Extinguishable Fire

Lol is this normal ... i can't download anything !
__________________
Mah Github. - Need host-tab ? Contact me on discord: michaelbelgium#2759

sO aCtIvE
You last visited: 11/01/2018 at 11:21 PM
Michael@Belgium is offline   Reply With Quote
Old 20/02/2011, 09:37 PM   #8
Fenice
Big Clucker
 
Join Date: Jun 2009
Posts: 60
Reputation: 2
Default Re: Extinguishable Fire

mirror? The site is offline
Fenice is offline   Reply With Quote
Old 21/02/2011, 02:40 PM   #9
Meta
Gangsta
 
Meta's Avatar
 
Join Date: Feb 2010
Posts: 644
Reputation: 47
Default AW: Extinguishable Fire

I'm very sorry, I just got some trouble with my server. Links are working, again.
Meta is offline   Reply With Quote
Old 21/02/2011, 08:01 PM   #10
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,027
Reputation: 1001
Default Re: AW: Extinguishable Fire

Quote:
Originally Posted by Meta View Post
I'm very sorry, I just got some trouble with my server. Links are working, again.
mmm nope :S when i click Extfire v0.1 it says: 'File does not exist on this server'
and when i click ExtFire: i can't even go on the website...

Try to upload just to your topic, do you know what i mean ? ^^
PS i realy need it

EDIT: ow >_< i have it THANKS it's very nice (the 'Source' works (a))
__________________
Mah Github. - Need host-tab ? Contact me on discord: michaelbelgium#2759

sO aCtIvE
You last visited: 11/01/2018 at 11:21 PM

Last edited by Michael@Belgium; 21/02/2011 at 08:03 PM. Reason: the .txt works... yes :p
Michael@Belgium is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Car in fire. Natrens Help Archive 5 03/12/2010 11:14 AM
Car fire baske007 Help Archive 3 03/08/2010 01:26 PM
Fire Help cloud9 Help Archive 7 19/07/2009 01:14 PM
Some Help With /Fire splitx Help Archive 1 17/02/2009 08:02 PM


All times are GMT. The time now is 11:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.