- 0
Cerere Ajutor Rocket Fire Green
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
SkyLeAs
Problema intalnita (descriere):Salut detin si eu un script de artifici cat de cat dar vreau ca atunci cand racheta ajunge la inaltimea ei sa explodeze niste culori gen blue red , lans 2 galben cu verde. Dar nu stiu cum sa fac.
Ero(area / rile) / warning-(ul / urile):~~
Liniile de cod / sursa / script-ul:
CMD:setrfire(playerid, params[]) { if(FireworkTotal == MAX_LAUNCH) { SendClientMessage(playerid, COLOR_WHITE, "Ai setat deja artificia la locu potrivit"); return 1; } if(Fired == 1) { SendClientMessage(playerid, COLOR_WHITE, "Asteapta sa explodeze!"); return 1; } new string[128]; format(string, sizeof(string), "%s a aprins un artificiu.", GetPlayerNameEx(playerid)); new Float:x, Float:y, Float:z, Float:a; GetPlayerPos(playerid, x, y, z); foreach(Player, i) { if(IsPlayerInRangeOfPoint(i, 30, x, y, z)) { SendClientMessage(i, COLOR_YELLOW, string); } } GetPlayerFacingAngle(playerid, a); x += (2 * floatsin(-a, degrees)); y += (2 * floatcos(-a, degrees)); // Lans Rocket[FireworkTotal] = CreateDynamicObject(3790, 1483.5320,-1757.2819,29.6406, 0, 90, 0); // 3786 RocketSmoke[FireworkTotal] = CreateDynamicObject(18716, 1483.5320,-1757.2819,29.6406 - 4, 0, 0, 0); // 18716 , xmas glob green - 19060 , neon green - 18649. RocketGreen[FireworkTotal] = CreateDynamicObject(1213, 1483.5320,-1757.2819,29.6406 + 1, 0, 90, 0); // 18649 rx[FireworkTotal] = x; ry[FireworkTotal] = y; rz[FireworkTotal] = z; RocketExplosions[FireworkTotal] = 0; FireworkTotal++; return 1; }Si aici am mai modificat dar nmk..
public Firework(i) { new Float:x, Float:y, Float:z; x = rx; y = ry; z = rz; z += RocketHeight; if (RocketExplosions == 0) { DestroyDynamicObject(Rocket); DestroyDynamicObject(RocketLight); DestroyDynamicObject(RocketSmoke); DestroyDynamicObject(RocketGreen); RocketGreen = CreateExplosion(1493.4357,-1768.9791,18.7958+ RocketHeight, 4, 9); RocketGreen = CreateExplosion(1487.1035,-1768.7446,18.7958+ RocketHeight, 5, 9); RocketGreen = CreateExplosion(1482.2462,-1768.5679,18.7958+ RocketHeight, 6, 9); RocketGreen = CreateExplosion(1469.8228,-1768.3120,18.7958+ RocketHeight, 6, 9); RocketGreen[FireworkTotal] = CreateDynamicObject(18652, 1480.4891,-1768.8335,18.7958 + 1, 0, 90, 0); // 18649 } else if (RocketExplosions >= MAX_FIREWORKS) { for (new j = 0; j <= RocketSpread; j++) { CreateExplosion(x + float(j - (RocketSpread / 2)), y, z, 7, 9); CreateExplosion(x, y + float(j - (RocketSpread / 1)), z, 7, 9); CreateExplosion(x, y, z + float(j - (RocketSpread / 2)), 7, 9); } RocketExplosions = -1; FireworkTotal = 0; Fired = 0; return 1; } else { x += float(random(RocketSpread) - (RocketSpread / 2)); y += float(random(RocketSpread) - (RocketSpread / 1)); z += float(random(RocketSpread) - (RocketSpread / 2)); RocketGreen = CreateExplosion(1480.4891,-1768.8335,18.7958+ RocketHeight, 7, 9); RocketGreen = CreateExplosion(1493.4357,-1768.9791,18.7958+ RocketHeight, 7, 9); RocketGreen = CreateExplosion(1487.1035,-1768.7446,18.7958+ RocketHeight, 7, 9); RocketGreen = CreateExplosion(1469.8228,-1768.3120,18.7958+ RocketHeight, 7, 9); RocketGreen[FireworkTotal] = CreateDynamicObject(18652, 1480.4891,-1768.8335,18.7958 + 1, 0, 90, 0); // 18649 } RocketExplosions++; SetTimerEx("Firework", 250, 0, "i", i); return 1; }Imagini / Video (optional):~
Edited by GotzeAti incercat sa rezolvati singur?:Da am incercat dar nam rezolvat nimic...
16 answers to this question
Recommended Posts