forward OnBurgerExplosion(playerid); // You can name this whatever you feel.
SetTimer("OnBurgerExplosion", 3600000, true);
public OnBurgerExplosion(playerid)
{
// define stuff here
return 1;
}
static explode2; // Defining the explode
if(explode2 == 0) { // If explode2 is just going to start, get prepared and alert!
// Add your Dispatch message here!
}
explode2++; // Every explosion, this will go up
if(explode2 < 100) // once it explodes 100 times, it will disable itself
SetTimer("OnBurgerExplosion", 3000, false); // This makes it disable itself
else
explode2 = 0; // If this is 0, it will start exploding, because fo the timer
CreateExplosion(x,y,z, 2, 50.0); // explosions
CreateExplosion(x,y,z, 2, 50.0); // explosions
public OnBurgerExplosion(playerid)
{
static explode2; // Defining the explode
if(explode2 == 0) { // If explode2 is just going to start, get prepared and alert!
// Add your Dispatch message here!
}
explode2++; // Every explosion, this will go up
if(explode2 < 100) // once it explodes 100 times, it will disable itself
SetTimer("OnBurgerExplosion", 3000, false); // This makes it disable itself
else
explode2 = 0; // If this is 0, it will start exploding, because fo the timer
CreateExplosion(x,y,z, 2, 50.0); // explosions
CreateExplosion(x,y,z, 2, 50.0); // explosions
// X, Y, Z == X = X Coordinates, Y = Y Coordinates, Z = Z Coordinates
return 1;
}
Okay i will rate it by 3/10
Reason Dude look at the Code it's messed up and you didn't even define the x y z it will give any one an error undefined with x y z so you either copied it out of your gamemode without the defines or you took it from an old tutorial ?!. |
new Float: x, Float: y, Float: z;