05.05.2011, 16:44
Ok i did this i made these timers
But all explosions take place at the same time, But i need it to explode one after the other, like time gap half a sec , So please tell what do do, Thnx
And
Код:
SetTimerEx("Cexplosion", 500, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 800, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 1000, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 1300, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 1600, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 1800, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 2000, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 2400, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 2700, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 2800, false, "d", carbomb[playerid]); SetTimerEx("Cexplosion", 3000, false, "d", carbomb[playerid]);
And
Код:
public Cexplosion(vehicleid) { for(new i; i < MAX_PLAYERS; i++) { new Float:X,Float:Y,Float:Z; GetVehiclePos(carbomb[i],X,Y,Z); CreateExplosion(X+1,Y+1,Z+1, 7, 7); CreateExplosion(X+2,Y+2,Z+2, 7, 10); CreateExplosion(X+4,Y+4,Z+4, 7, 10); } return 1; }