SA-MP Forums Archive
[Include] "Firewerkz.inc" ─ Simple firework system. - 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] "Firewerkz.inc" ─ Simple firework system. (/showthread.php?tid=401248)



"Firewerkz.inc" ─ Simple firework system. - Lorenc_ - 22.12.2012

Introduction

Firewerkz is a doozy name for a firework system just brought up from the top of my head. The script is pretty basic, thus I will not make this thread fancy like my others.

I wasn't really in the mood to create anything but I had to because no great other firework system was available. Anyway, I decided to make one, it is very very basic and has two settings. Based on neon and explosions however, neon is not quite synced (with the colours)...

Functions

CreateFirework( Float: X, Float: Y, Float: Z, Float: speed = 9.0, Float: height = 30.0 ) The include file can be configured easily, most of the configuration is based on definitions.

Example - DO NOT COPY AND PASTE, IT WILL MOST LIKELY NOT WORK!
pawn Код:
CMD:firework( playerid, params[ ] )
{
    new Float: X, Float: Y, Float: Z;
    GetPlayerPos( playerid, X, Y, Z );
   
    if( CreateFirework( X, Y, Z ) == -1 )
        SendError( playerid, "Couldn't create a firework due to an unexpected error." );
    else
        SendServerMessage( playerid, "Firework placed!" );
   
    return 1;
}
Preview

[ame]http://www.youtube.com/watch?v=Ez-UwAEYhlM[/ame]

May be processing, please wait!

Download

http://pastebin.com/xgSusxxv - v1.0

Have fun! Happy Holidays!

There are no bugs afaik, and I may not even bother to update this include. You may need to adjust the script to your liking. I tried to get most of the explosions in a circle so I used trigonometric functions, if you are wanting to ask why.


Re: "Firewerkz.inc" ─ Simple firework system. - Ironboy - 22.12.2012

Good job Lorenc


Re: "Firewerkz.inc" ─ Simple firework system. - [HK]Ryder[AN] - 22.12.2012

simple and nice..most probably not gonna be used but still..


Re: "Firewerkz.inc" ─ Simple firework system. - Niko_boy - 22.12.2012

aaaaaaaaaah Bob marley \o/ u deserver thousandZ of aplauds mate , good job Lorenc


Re: "Firewerkz.inc" ─ Simple firework system. - Lorenc_ - 22.12.2012

Oh, by the way. In the video the fireworks are a bit far away, I decreased it by 5 metres after uploading the video.

The missile is not showing because my camera is far away from it having it be not streamed.


Re: "Firewerkz.inc" ─ Simple firework system. - Michael@Belgium - 24.12.2012

Interesting include Lorenc. But what if i try to do it without the streamer .. I don't think CreateFirework creates 50 objects ? :O


Re: "Firewerkz.inc" ─ Simple firework system. - Lordzy - 24.12.2012

Nice work. Now I'm gonna do a firework at your coords. :P


Re: "Firewerkz.inc" ─ Simple firework system. - TheArcher - 24.12.2012

Michael is right, some users don't use streamer, so I suggest to check if their gamemode/FS has included the streamer before otherwise it's gonna use "CreateObject".

P.S Good job and Merry X-Mass


AW: "Firewerkz.inc" ─ Simple firework system. - Mellnik - 24.12.2012

Ill use this.


Re: "Firewerkz.inc" ─ Simple firework system. - Baboon - 24.12.2012

neons are nicer than explosions though :\


Re: "Firewerkz.inc" ─ Simple firework system. - Lorenc_ - 27.12.2012

Quote:
Originally Posted by Strawhats
Посмотреть сообщение
neons are nicer than explosions though :\
Exactly, however they are not synced, as stated.


AW: "Firewerkz.inc" ─ Simple firework system. - Flashbrot - 27.12.2012

Very Nice Work !


Re: "Firewerkz.inc" ─ Simple firework system. - Xoomer - 31.01.2013

can you give me this download link not in pastebin


Re: "Firewerkz.inc" ─ Simple firework system. - Abu4sive - 31.01.2013

Thanks for sharing,
You can improve that with neon objects I think it was cool!