Sziasztok!
Készítettem egy tüzijáték scripteta szerómra, nem akartam publikálni, de mégis meg osztom veletek
Bejelentkezel rcon adminnak, elmész valahova /firework és kilõ egy rakétát majd felrobban és szép színes fények hullanak
//tüzijáték script by sticky2 A NEVEM NE TÖRÖLD KI
//elmész valahova, bejelentkezel rCon adminnak és beírod /firework majd fellõ egy rakétát.
#include <a_samp>
#include <zcmd>
new tuzik[40];//az objecteknek adunk nevet, és összeszámoljuk
forward tobbi();//amikor a timer lejár(letelik a 6mp)
forward del();//amikor a timer lejár(letelik a 10mp)
CMD:firework(playerid, params[])
{
if (IsPlayerAdmin(playerid))
{
if((GetTickCount() - GetPVarInt(playerid, \"Tuzi\")) < 16000 ) return SendClientMessage(playerid, -1, \"16MP-et kell várnod, a fellövésig!\");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetTimer(\"tobbi\", 6000, false);
SetTimer(\"del\", 10000, false);
tuzik[0] = CreateObject(345, x, y, z, 90, 0, 0);
MoveObject(tuzik[0], x, y, z+30, 4.0, 90,0,0);
SetPVarInt(playerid, \"Tuzi\", GetTickCount());
}
else SendClientMessage(playerid, -1, \"Csak rCon admin tudja használni!\");
return 1;
}
public tobbi()
{
new Float:x, Float:y, Float:z;//létrehozzuk a változókat
GetObjectPos(tuzik[0], x, y, z);//a felmenõ fény helyzetének lekérdezése
CreateExplosion(x, y, z, 3, 4.0);//robbanás
tuzik[1] = CreateObject(19281, x, y, z, 0.0, 0.0, 0.0);//fények létrehozása
tuzik[2] = CreateObject(19281, x, y, z, 0.0, 0.0, 0.0);
tuzik[3] = CreateObject(19282, x, y, z, 0.0, 0.0, 0.0);
tuzik[4] = CreateObject(19282, x, y, z, 0.0, 0.0, 0.0);
tuzik[5] = CreateObject(19283, x, y, z, 0.0, 0.0, 0.0);
tuzik[6] = CreateObject(19283, x, y, z, 0.0, 0.0, 0.0);
tuzik[7] = CreateObject(19284, x, y, z, 0.0, 0.0, 0.0);
tuzik[8] = CreateObject(19284, x, y, z, 0.0, 0.0, 0.0);
tuzik[9] = CreateObject(19285, x, y, z, 0.0, 0.0, 0.0);
tuzik[10] = CreateObject(19285, x, y, z, 0.0, 0.0, 0.0);
tuzik[11] = CreateObject(19286, x, y, z, 0.0, 0.0, 0.0);
tuzik[12] = CreateObject(19286, x, y, z, 0.0, 0.0, 0.0);
tuzik[13] = CreateObject(19287, x, y, z, 0.0, 0.0, 0.0);
tuzik[14] = CreateObject(19287, x, y, z, 0.0, 0.0, 0.0);
tuzik[15] = CreateObject(19288, x, y, z, 0.0, 0.0, 0.0);
tuzik[16] = CreateObject(19288, x, y, z, 0.0, 0.0, 0.0);
tuzik[17] = CreateObject(19289, x, y, z, 0.0, 0.0, 0.0);
tuzik[18] = CreateObject(19294, x, y, z, 0.0, 0.0, 0.0);
tuzik[19] = CreateObject(19294, x, y, z, 0.0, 0.0, 0.0);
tuzik[20] = CreateObject(19288, x, y, z, 0.0, 0.0, 0.0);
tuzik[21] = CreateObject(19288, x, y, z, 0.0, 0.0, 0.0);
tuzik[22] = CreateObject(19289, x, y, z, 0.0, 0.0, 0.0);
tuzik[23] = CreateObject(19290, x, y, z, 0.0, 0.0, 0.0);
tuzik[24] = CreateObject(19290, x, y, z, 0.0, 0.0, 0.0);
tuzik[25] = CreateObject(19291, x, y, z, 0.0, 0.0, 0.0);
tuzik[26] = CreateObject(19282, x, y, z, 0.0, 0.0, 0.0);
tuzik[27] = CreateObject(19292, x, y, z, 0.0, 0.0, 0.0);
tuzik[28] = CreateObject(19293, x, y, z, 0.0, 0.0, 0.0);
tuzik[29] = CreateObject(19293, x, y, z, 0.0, 0.0, 0.0);
tuzik[30] = CreateObject(19294, x, y, z, 0.0, 0.0, 0.0);
tuzik[31] = CreateObject(19294, x, y, z, 0.0, 0.0, 0.0);
tuzik[32] = CreateObject(19295, x, y, z, 0.0, 0.0, 0.0);
tuzik[33] = CreateObject(19295, x, y, z, 0.0, 0.0, 0.0);
tuzik[34] = CreateObject(19296, x, y, z, 0.0, 0.0, 0.0);
tuzik[35] = CreateObject(19296, x, y, z, 0.0, 0.0, 0.0);
tuzik[36] = CreateObject(19297, x, y, z, 0.0, 0.0, 0.0);
tuzik[37] = CreateObject(19297, x, y, z, 0.0, 0.0, 0.0);
tuzik[38] = CreateObject(19298, x, y, z, 0.0, 0.0, 0.0);
tuzik[39] = CreateObject(19298, x, y, z, 0.0, 0.0, 0.0);
MoveObject(tuzik[1], x, y, z+5, 2.0, 0.0,0.0,0.0);//fények mozgatása
MoveObject(tuzik[2], x, y+5, z, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[3], x+5, y, z, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[4], x, y, z-5, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[5], x+1, y+1, z, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[6], x, y+1, z-2, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[7], x+3, y-3, z, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[8], x-5, y, z, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[9], x, y-5, z, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[10], x-8, y+7, z+2, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[11], x-7, y+8, z-2, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[12], x+7, y-8, z+9, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[13], x+10, y+10, z+10, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[14], x-10, y-10, z-10, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[15], x-10, y+8, z+7, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[16], x+15, y+15, z+12, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[17], x-15, y-15, z-12, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[18], x-15, y+15, z+7, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[19], x+15, y-15, z+7, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[20], x+17, y-17, z+14, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[21], x-17, y+17, z+14, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[22], x+18, y+18, z-14, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[23], x-18, y-18, z+14, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[24], x+20, y-19, z+9, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[25], x-22, y+20, z+2, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[26], x+22, y-21, z-2, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[27], x+23, y-36, z+9, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[28], x+24, y+24, z+10, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[29], x-25, y-23, z-10, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[30], x-23, y+25, z+7, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[31], x+22, y+26, z+12, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[32], x-27, y-27, z-12, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[33], x-28, y+29, z+7, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[34], x+29, y-29, z+7, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[35], x+28, y-29, z+14, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[36], x-29, y+28, z+14, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[37], x+30, y+30, z-14, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[38], x-28, y-30, z+14, 2.0, 0.0,0.0,0.0);
MoveObject(tuzik[39], x+30, y-28, z+9, 2.0, 0.0,0.0,0.0);
return 1;
}
public del()
{
for(new tu; tu < sizeof(tuzik); tu++) { DestroyObject(tuzik[tu]); }//fények törlése
return 1;
}