11.01.2016, 12:03
I want to put fireworks system but i don't know where to put this:
this one http://pastebin.com/RDXHm51h
+
Pleas i want to know i don't want to get errors because 2 days i was fixing error y_scripting fatal error
Код:
GetPlayerNameEx(playerid) {
new sz_playerName[MAX_PLAYER_NAME], i_pos;
GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
return sz_playerName;
}
+
Код:
forward Firework(i);
public Firework(i)
{
new Float:x, Float:y, Float:z;
x = rx[i];
y = ry[i];
z = rz[i];
z += RocketHeight;
if (RocketExplosions[i] == 0)
{
DestroyDynamicObject(Rocket[i]);
DestroyDynamicObject(RocketLight[i]);
DestroyDynamicObject(RocketSmoke[i]);
CreateExplosion(x ,y, z, 4, 10);
CreateExplosion(x ,y, z, 5, 10);
CreateExplosion(x ,y, z, 6, 10);
}
else if (RocketExplosions[i] >= MAX_FIREWORKS)
{
for (new j = 0; j <= RocketSpread; j++)
{
CreateExplosion(x + float(j - (RocketSpread / 2)), y, z, 7, 10);
CreateExplosion(x, y + float(j - (RocketSpread / 2)), z, 7, 10);
CreateExplosion(x, y, z + float(j - (RocketSpread / 2)), 7, 10);
}
RocketExplosions[i] = -1;
FireworkTotal = 0;
Fired = 0;
return 1;
}
else
{
x += float(random(RocketSpread) - (RocketSpread / 2));
y += float(random(RocketSpread) - (RocketSpread / 2));
z += float(random(RocketSpread) - (RocketSpread / 2));
CreateExplosion(x, y, z, 7, 10);
}
RocketExplosions[i]++;
SetTimerEx("Firework", 250, 0, "i", i);
return 1;
}


, But dont Confused with this code xD
i Think you can Try Coins system
n samp scripts firework system:add this "/post/Firework_System-ZombieNest-filterscript_systems-16702/" to samp.scripts.comm