16.02.2011, 16:54
(
Последний раз редактировалось Meta; 03.08.2013 в 06:08.
Причина: update
)
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
- 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!
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
- 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
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 Код:#define EarnMoney - This Filterscript is multi-langual: German and english. Just change Line 10.
pawn Код:#define German // German or English?
pawn Код:
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);
pawn Код:
public CanBurn(playerid)
{
//check ...
return 1; //0 = false, 1 = true
}
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!
Also check out MMF to keep this filterscript up to date!
==================================
Have Fun!