[Include] Scripted Fire
#21

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.
Reply
#22

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

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

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;
}
Reply
#25

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;
}
Reply
#26

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
Reply
#27

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
Reply
#28

fire.. it is just billboard.
Reply
#29

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

Guys, How to download "fire2 include
Reply
#31

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).
Reply
#32

Fire Truck dont extinguish the fire
Reply
#33

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.
Reply
#34

nice work.
Reply
#35

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.
Reply
#36

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.
Reply
#37

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)