if(strcmp(cmdtext,"/explode",true)==0)
{
if(!isPlayerInFrakt(playerid,9))return SendClientMessage(playerid, COLOR_ROT,"Du bist in keiner Gang!");
if(GetPVarInt(playerid,"Bomb") == 1)
{
SetTimerEx("CreateExplosionEx",1000,false,BombeX[playerid],BombeY[playerid],BombeZ[playerid],6,999);
SetTimerEx("CreateExplosionEx",2000,false,BombeX[playerid]+5,BombeY[playerid],BombeZ[playerid],6,999);
SetTimerEx("CreateExplosionEx",2500,false,BombeX[playerid]-5,BombeY[playerid],BombeZ[playerid],6,999);
SetTimerEx("CreateExplosionEx",3000,false,BombeX[playerid],BombeY[playerid],BombeZ+5[playerid],6,999);
SetTimerEx("CreateExplosionEx",3500,false,BombeX[playerid],BombeY[playerid],BombeZ-5[playerid],6,999);
SetTimerEx("CreateExplosionEx",4500,false,BombeX[playerid]+5,BombeY[playerid],BombeZ+5[playerid],6,999);
SetTimerEx("CreateExplosionEx",5000,false,BombeX[playerid]-5,BombeY[playerid],BombeZ-5[playerid],6,999);
SetTimerEx("CreateExplosionEx",5500,false,BombeX[playerid]+5,BombeY[playerid],BombeZ-5[playerid],6,999);
SetTimerEx("CreateExplosionEx",6000,false,BombeX[playerid]-5,BombeY[playerid],BombeZ+5[playerid],6,999);
SetTimerEx("CreateExplosionEx",5000,false,BombeX[playerid],BombeY[playerid],BombeZ[playerid]+5,6,999);
SendClientMessage(playerid,COLOR_GRÜN1,"Du hast die Bombe gezündet.");
plantedbomb[playerid]=0;
DestroyObject(object123);
return 1;
}
SendClientMessage(playerid,COLOR_ROT,"Du hast keine Bombe platziert.");
return 1;
}
stock CreateExplosionEx(Float:X,Float:Y,Float:Z,Typ,Range)
{
CreateExplosion(X,Y,Z,Typ,Range);
return 1;
}
So vielleicht?