[Include] [INC]Create Fireworks [=]
#1

Include Fireworks

Hello People:

sory for my english bad
Today I decided to get a new version include of fireworks .

Added a few functions include mainly useful functions .

Explanation include :


Код:
native CreateFirework(type, Float: f_X, Float: f_Y, Float: f_Z)
native PushFireworkToPoint(fireworkid, Float:fp_x, Float:fp_y, Float:fp_z, Float:Point_x, Float:Point_y, Float:Point_z)
native MoveFireworkToPlayer(fireworkid, userid)
native AttachFireworkToPlayer(fireworkid, userid)
native DestroyFirework(fireid)
native DestroyAllFirework()
These existing functions in the include now.

PHP код:
CreateFirework(typeXYZ); 
This function is to create a refinery in a particular location you choose .

We needed parameters function : ( 4 )

• type - Type refinery you want it , that you should look for an object that you want it to fly to the sky,

If it does not find an object , then use the number 354 .

• X , Y, Z - These parameters require him to actually record the location of refining parameters of location .

Those who do not know how to keep location so I will explain it now :

Go to the server , then go to the location you want it Refining and do what the command save / .

After you have made the order, so basically we saved location , the parameters within a particular file .

Go to Remote share documents you have on your computer, then click here to took place in GTA San Andreas User

Files >> SAMP .

Then you will see a file name Enter the name savedpositions him, and get off the last line and you'll see something

like this:



Red - Format X

Purple - format Y

Green - Z format

And is arranged location to refine.

PHP код:
PushFireworkToPoint(fireworkidXYZPoint_xPoint_yPoint_z); 
This function is basically to move refinery you set , from some particular place .

We needed parameters function : ( 7 )

• fireworkid - it actually refineries have set , I mean you're supposed to develop and create a new variable by Tzicok

you set the variable :

This means that, for example you set up a specific variable mode example :

PHP код:
new x;
CreateFirework(... 
And now where registered formatted fireworkid you put what you have set it in the examples above x . ( I do not

hang with you now about change, hope you understand ) .

• X , Y, Z - on how to find these parameters we talked about the first function .

These parameters actually flares out from the location , and where it will come this following parameters .

• Point_x, Point_y, Point_z - here basically you put the refinery will come to the location , that is being promoted done

starting point , here we put the final point .

PHP код:
MoveFireworkToPlayer(fireworkiduserid); 
This function actually moves the refinery we defined , created to a certain player .

We needed parameters function : ( 2 ) .

• fireworkid - it actually refineries have defined , the variable you set , the second function we talked about changing .

• userid - this format we actually record the ID of the player to whom we want to move the refinery ,

You can do more advanced refining transfer by a command if strtok or sscanf .

PHP код:
AttachFireworkToPlayer(fireworkiduserid); 
This function is basically paste the refinery player , that player will go wherever the sky who will Refinery his position .

We needed parameters function : ( 2 ) .

• fireworkid - it actually refineries have defined , the variable you set , the second function we talked about changing .

• userid - this format we actually need to register the ID of the player that we want to paste the refinery.

PHP код:
DestroyFirework(fireid); 
This function is basically to delete certain refined created .

We needed parameters function : ( 1 ) .

• fireid - it actually refineries have defined , the variable you set , the second function we talked about changing .

PHP код:
DestroyAllFirework(); 
This function is basically delete all the fireworks on the server, defined course.

Function parameters we need : ( 0 ) has no parameters for this function .

Video:

http://www.youtube.com/watch?feature...&v=eMQLTxM842Y

Downloads:

Download the include: here.

wathc for the include: here.

Installation Guide :

You must pass the include Ragheb al -

Remote share your server : Pawno / includes.

Then click here to your modem -

And put at include the include follows:

PHP код:
#include <Y_Fireworks> 
And that you have the include mode .
Enjoy , and great for a day .
Reply


Messages In This Thread
[INC]Create Fireworks [=] - by yDynamic - 11.09.2013, 12:08
Re: [INC]Create Fireworks [=] - by Omar55555 - 11.09.2013, 12:27
Re: [INC]Create Fireworks [=] - by yDynamic - 11.09.2013, 13:35

Forum Jump:


Users browsing this thread: 2 Guest(s)