[HELP] Random Explosions
#3

I already have 1 code the explosion but it does not in my opinion
Код:
public OnFilterScriptInit()
{
	SetTimer("OnBurgerExplosion", 3600000, true);
	return 1;
}

new Float:RandomSpawns[][] =
{
    {1249.7258, -2047.9263, 59.9209}, // 
    {1241.2084, -2057.6521, 60.0190}, // 
    {1241.0105, -2052.6873, 59.9975}, // 
    {718.4906, -1477.3024, 5.4688}, // 
    {722.3772, -1477.2856, 5.4688} // 
};



forward OnBurgerExplosion(playerid); // You can name this whatever you feel.
public OnBurgerExplosion(playerid)
{
    static explode2; // Defining the explode
    if(explode2 == 0)
	{
		new string[256];
        format(string, sizeof(string), "Co mot vu no vua xay ra, hay den do ngay.");
		SendRadioMessage(4, TEAM_MED_COLOR, string);
    }
    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
    new bomb= random(sizeof(RandomSpawns));
    CreateExplosion(RandomSpawns[bomb][0],RandomSpawns[bomb][1],RandomSpawns[bomb][2], 2, 50.0); // explosions
    CreateExplosion(RandomSpawns[bomb][0],RandomSpawns[bomb][1],RandomSpawns[bomb][2], 2, 50.0); // explosions
    SetPlayerCheckpoint(playerid,RandomSpawns[bomb][0],RandomSpawns[bomb][1],RandomSpawns[bomb][2], 4.0);
    // X, Y, Z == X = X Coordinates, Y = Y Coordinates, Z = Z Coordinates
    return 1;
}
When it exploded, the checkpoint position on the map is not available with explosion...
Please help me! I want to script mode Roleplay of me
Reply


Messages In This Thread
[HELP] Random Explosions - by niconhan - 16.12.2012, 03:51
Re: [HELP] Random Explosions - by Socan - 16.12.2012, 03:53
Re: [HELP] Random Explosions - by niconhan - 16.12.2012, 06:56
Re: [HELP] Random Explosions - by niconhan - 16.12.2012, 07:46
Re: [HELP] Random Explosions - by Dark Killer - 16.12.2012, 07:48
Re: [HELP] Random Explosions - by Faisal_khan - 16.12.2012, 07:51
Re: [HELP] Random Explosions - by niconhan - 16.12.2012, 07:51
Re: [HELP] Random Explosions - by RajatPawar - 16.12.2012, 07:51
Re: [HELP] Random Explosions - by niconhan - 16.12.2012, 07:59
Re: [HELP] Random Explosions - by niconhan - 16.12.2012, 08:01

Forum Jump:


Users browsing this thread: 3 Guest(s)