SA-MP Forums Archive
Little Timer help - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little Timer help (/showthread.php?tid=321011)



Little Timer help - Gooday - 25.02.2012

Hey guys i would like when i type the following command to create a explosion every 20 secs, and when all the "CreateExplosion" are done automatically stop making explosions:

pawn Код:
CMD:makefire5(playerid, params[])
{
        CreateExplosion(-2234.91, -2569.58, 31.44, 2, 10.0);
        CreateExplosion(-2241.28, -2554.87, 31.44, 2, 10.0);
         CreateExplosion(-2234.77, -2554.10, 31.44, 2, 10.0);
        CreateExplosion(-2241.35, -2549.56, 31.44, 2, 10.0);
        CreateExplosion(-2237.42, -2557.57, 31.44, 2, 10.0);
        CreateExplosion(-2246.12, -2555.67, 31.44, 2, 10.0);
        CreateExplosion(-2246.84, -2560.35, 31.44, 2, 10.0);
        CreateExplosion(-2250.81, -2565.00, 31.44, 2, 10.0);
        CreateExplosion(-2244.13, -2568.56, 31.44, 2, 10.0);
        CreateExplosion(-2242.96, -2562.24, 31.44, 2, 10.0);
        CreateExplosion(-2236.65, -2564.52, 31.44, 2, 10.0);
        SendClientMessage(playerid, 0xFFFF0096, "[INFO]Fire has been created! (Small Gas Station)");
        return 1;
}