SA-MP Forums Archive
[Include] Scripted Fire - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Scripted Fire (/showthread.php?tid=165299)

Pages: 1 2


Re: Scripted Fire - Las Venturas CNR - 20.08.2010

Quote:
Originally Posted by juanrivas
Посмотреть сообщение
Anyone can help me

It uses CreateObject meaning if you've got too many objects, you will need an object streamer. Try getting a streamer for the rest of your objects then using the FS. Or make sure the
FS is set to even run.


Re: Scripted Fire - nielsbon1 - 20.08.2010

Nice script it's a improvement on a rp filterscript off Advanced roleplay!
There they use smokes machines + explosions


Re: Scripted Fire - ihatetn931 - 25.08.2010

I know this is a majior bump but has anyone figured out a way to make the fire truck and the fire extinsguter


Re: Scripted Fire - [FSaF]Jarno - 28.05.2011

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
Thats up to you

pawn Код:
if(strcmp(cmdtext, "/fire" true) == 0)  //strcmp
{
         new Float:X,Float:Y,Float:Z;
         AddFire(Float:X, Float:Y, Float:Z, 1000);
         return 1;
}
Nonononono, not like that! Like this:

pawn Код:
if(strcmp(cmdtext, "/fire" true) == 0)  //strcmp
{
         new Float:X,Float:Y,Float:Z;
         GetPlayerPos(playerid,X,Y,Z);
         AddFire(X,Y,Z,1000);
         return 1;
}



Re: Scripted Fire - GangsTa_ - 18.08.2011

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
Thats up to you

pawn Код:
if(strcmp(cmdtext, "/fire" true) == 0)  //strcmp
{
         new Float:X,Float:Y,Float:Z;
         AddFire(Float:X, Float:Y, Float:Z, 1000);
         return 1;
}

CMD:fire(playerid,params[])  //zcmd
{
         new Float:X,Float:Y,Float:Z;
         AddFire(Float:X, Float:Y, Float:Z, 1000);
         return 1;
}

dcmd_fire(playerid,params[])  //dcmd
{
        new Float:X,Float:Y,Float:Z;
         AddFire(Float:X, Float:Y, Float:Z, 1000);
         return 1;
}
//onplayercommandtext for dcmd, not sure for zcmd
dcmd(fire,4,cmdtext);
Actually they should not use params in this cmd..

pawn Код:
CMD:fire(playerid,params[])  //zcmd
{
         #pragma unused params
         new Float:X,Float:Y,Float:Z;
         AddFire(Float:X, Float:Y, Float:Z, 1000);
         return 1;
}

dcmd_fire(playerid,params[])  //dcmd
{
        #pragma unused params
        new Float:X,Float:Y,Float:Z;
         AddFire(Float:X, Float:Y, Float:Z, 1000);
         return 1;
}



Re: Scripted Fire - jameskmonger - 18.08.2011

Quote:
Originally Posted by Sniperwolves
View Post
im trying to fix that but somehow it only works if the firetruck faces it and not its water :/
Use camera vectors


Re: Scripted Fire - CaHbKo - 28.04.2012

Quote:
Originally Posted by GangsTa_
Посмотреть сообщение
Actually they should not use params in this cmd..

pawn Код:
CMD:fire(playerid,params[])  //zcmd
{
         #pragma unused params
         new Float:X,Float:Y,Float:Z;
         AddFire(Float:X, Float:Y, Float:Z, 1000);
         return 1;
}
1. You don't need to use #pragma shit, it's not dcmd
2. Have you even tested that code? Srsly, how cool is it to add fire at 0.0 0.0 0.0 coords? Have you ever heard of GetPlayerPos?

ps. just realized how much time ago this was posted


Re: Scripted Fire - Vinnyy - 18.09.2012

fire.. it is just billboard.


Re: Scripted Fire - Kirollos - 06.10.2012

You forgot to tell people that you call OnFireDeath(ID, playerid) when a player extinguish a fire o.o


Re: Scripted Fire - Stanford - 22.12.2012

Guys, How to download "fire2 include


Re: Scripted Fire - zDevon - 09.02.2013

This slightly edited version of this include changes the fire objects to use Incognito's streamer functions and fixes the script to correctly call OnFireKill when a fire is doused (bugged previously).


Re: Scripted Fire - Hayden_Almeida - 09.11.2015

Fire Truck dont extinguish the fire


Re: Scripted Fire - SkittlesAreFalling - 09.11.2015

You do know this is a 2+ year old thread?

Hold on though, let me try something and I will post the code to give you what you're looking for.


Re: Scripted Fire - Oxygenated - 30.04.2017

nice work.


Re: Scripted Fire - Sew_Sumi - 30.04.2017

Quote:
Originally Posted by Sniperwolves
View Post
im trying to fix that but somehow it only works if the firetruck faces it and not its water :/
Are you using GetPlayerCameraFrontVector?

Nice work though.


Re: Scripted Fire - CantBeJohn - 02.05.2017

Quote:
Originally Posted by Sew_Sumi
View Post
Are you using GetPlayerCameraFrontVector?

Nice work though.
I hope you realize that dude hasn't been online since 2011 and the dude above you just bumped a really old topic. lol.


Re: Scripted Fire - Sew_Sumi - 02.05.2017

Quote:
Originally Posted by CantBeJohn
View Post
I hope you realize that dude hasn't been online since 2011 and the dude above you just bumped a really old topic. lol.
Ah well then, maybe it needed to be bumped due to people asking about it... It was only in the past 2 weeks that there's been someone asking about making it.