27.10.2012, 18:07
Under OnGameModeInit
for the other timers, and explosions
See, it all works the first time. but the times after it doesn't... Anyone have any ideas on how to fix it, I have a feeling that KillTimer is affecting it.. But idk
And if you help me, how would I add MORE and MORE random fires you know?
pawn Код:
// Fire Explosions
SetTimer("OnBurgerExplosion", 1000000, true);
pawn Код:
public OnBurgerExplosion(playerid)
{
format(szMessage, sizeof(szMessage), "DISPATCH: We need dispatch at Main Street, Burger Shot. Flames are blazing, careful!");
SendToGroupType(4, COLOR_RED, szMessage);
SendToGroupType(1, COLOR_RED, szMessage);
OnBurgerExplosion98 = SetTimer("OnBurgerExplosion2", 3000, true);
return 1;
}
public OnBurgerExplosion2(playerid)
{
CreateExplosion(-174.3882,1065.7659,19.7422, 2, 50.0);
CreateExplosion(-169.6261,1088.7214,19.7422, 2, 50.0);
OnBurgerExplosionStop99 = SetTimer("OnBurgerExplosionStop", 300000, true);
return 1;
}
public OnBurgerExplosionStop(playerid)
{
KillTimer(OnBurgerExplosion98);
KillTimer(OnBurgerExplosionStop99);
return 1;
}
And if you help me, how would I add MORE and MORE random fires you know?