Hi,
ich habe versucht einen Bomben Befehl zu erstellen, mit einem Timer der mehrere Explosionen verursacht.
Doch der Server schmiert nach der ersten Explosion ab. Was habe ich falsch gemacht?
public detonation()
{
new bombennachricht[256];
format(bombennachricht, sizeof(bombennachricht), "Die Bombe ist detoniert, der Bombenleger war %s", bombenleger);
SendClientMessageToAll(COLOR_RED, bombennachricht);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+500,b2,b3,7, 100350);
CreateExplosion(b1-5,b2,b3,7, 100050);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+200,b2,b3,7, 100350);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+500,b2,b3,7, 100350);
CreateExplosion(b1-5,b2,b3,7, 100050);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+200,b2,b3,7, 100350);
CreateExplosion(b1,b2,b3, 7, 103050);
SetTimerEx("bombe1", 2000, 0);
for(new i = 0; i < MAX_PLAYERS; i++)
{
DisablePlayerCheckpoint(i);
}
DestroyPickup(bombe);
return 0;
}
public bombe1()
{
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+500,b2,b3,7, 10350);
CreateExplosion(b1-5,b2,b3,7, 100050);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+200,b2,b3,7, 10350);
CreateExplosion(b1,b2,b3, 7, 13050);
CreateExplosion(b1+500,b2,b3,7, 100350);
CreateExplosion(b1-5,b2,b3,7, 100050);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+200,b2,b3,7, 10350);
CreateExplosion(b1,b2,b3, 7, 13050);
SetTimerEx("bombe2", 3000, 0);
}
public bombe2()
{
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+500,b2,b3,7, 10350);
CreateExplosion(b1-5,b2,b3,7, 100050);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+200,b2,b3,7, 10350);
CreateExplosion(b1,b2,b3, 7, 13050);
CreateExplosion(b1+500,b2,b3,7, 100350);
CreateExplosion(b1-5,b2,b3,7, 100050);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+200,b2,b3,7, 10350);
CreateExplosion(b1,b2,b3, 7, 13050);
SetTimerEx("bombe3", 4000, 0);
}
public bombe3()
{
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+500,b2,b3,7, 10350);
CreateExplosion(b1-5,b2,b3,7, 100050);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+200,b2,b3,7, 10350);
CreateExplosion(b1,b2,b3, 7, 13050);
CreateExplosion(b1+500,b2,b3,7, 100350);
CreateExplosion(b1-5,b2,b3,7, 100050);
CreateExplosion(b1,b2,b3, 7, 103050);
CreateExplosion(b1+200,b2,b3,7, 10350);
CreateExplosion(b1,b2,b3, 7, 13050);
}