Gibt es das Dreamlife Script noch zum runterladen? habe nichts im Internet gefunden.
Würde mich sehr freuen um Downloadlinks.
Mfg.
Matze
Gibt es das Dreamlife Script noch zum runterladen? habe nichts im Internet gefunden.
Würde mich sehr freuen um Downloadlinks.
Mfg.
Matze
Ich kann das grade nicht testen da ich gestern Errors im Script hatte und off gegangen bin xD
Ich werde das so schnell versuchen wie möglich zu beheben komme aber nicht weiter.. hmm
Achso okay dann spart man sich ja auch die Arbeit
Was ist daran der Unterschied?
Das mit der Abfrage ob der Spieler in seinem Fraktions Auto ist hab ich schon.
if (IsAFahrschulVeh(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember]== 11 || TakingLesson[playerid] == 1)
{
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du hast keinen Schlüssel!");
TogglePlayerControllable(playerid, 1); //Stoppt Betreten des Autos
}
}
F = ENTER
Wow darauf würde ich nie kommen. Spaß bei Seite.
Wie lautet die Abfrage dazu?
Hallo liebes Breadfish Forum,
Ich habe ein Fraktions Auto ich sagmal System hingekommen aber wenn z.B jemand der nicht in der Fraktion mit "Der Taste G" einsteigt
Kommt auch die Warnung du besitzt nicht Rank 5 kleines Beispiel:
//Yakuza Rang 5
if(GetPlayerVehicleID(playerid) == YakuzaVehs[14] || GetPlayerVehicleID(playerid) == YakuzaVehs[11])
{
if(PlayerInfo[playerid][pRank] >= 5)
{
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED,"Du besitzt nicht Rank 5");
}
}
Wie macht ich das, dass die Nachricht nur kommt wenn man mit "F" einsteigt?
Wie lautet die Abfrage dazu´?
Würde mich um Hilfe freuen.
Lg
Matze
Hey,
ich glaube das hier kann dir helfen
Hey,
ich glaube das hier kann dir helfen
Link
Bringt mir nichts, da nur die .amx Datei freigegeben wurde.
Guten Tag liebes Breadfish,
ich wollte euch fragen wie ich Abfrage, welche Weapon ID der Spieler in der Hand hat und sobalt er stirbt sie dropt.
forward DropPlayerWeapons(playerid);
public DropPlayerWeapons(playerid)
{
new playerweapons[13][2];
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i=0; i<13; i++)
{
GetPlayerWeaponData(playerid, i, playerweapons[i][0], playerweapons[i][1]);
new model = GetWeaponType(playerweapons[i][0]);
new times = floatround(playerweapons[i][1]/10.0001);
new Float:X = x + (random(3) - random(3));
new Float:Y = y + (random(3) - random(3));
if(playerweapons[i][1] != 0 && model != -1)
{
if(times > DropLimit) times = DropLimit;
for(new a=0; a<times; a++)
{
new pickupid = CreatePickup(model, 3, X, Y, z);
SetTimerEx("DeletePickup", DeleteTime*1000, false, "d", pickupid);
}
}
}
return 1;
}
Finde das Design, ganz schön passt auch mit den Farben
Lg
Matze
Ja.. das kann nicht daran liegen..
Funktioniert ebenfalls nicht...
Das habe ich doch gemacht..
Es liegt nicht nur bei mir, sondern auch bei meinen testern. Ich denke wohl eher weniger das dass zufall ist.
Also das mit dem Wetter da habe ich garnichts gemacht und die Wartezeit ist denke ich immer anders.
//EDIT aber auf den Infernus geht die Sirene gleich dran.
Guten Abend liebes Breadfish,
Ich habe ein Sirenen System aber es funktioniert, wie in der Überschrift schon angegeben erst nach bisschen rumfahren.
Könnte jemand weiterhelfen?
new sirene[MAX_VEHICLES];
new sirene1[MAX_VEHICLES];
new sirene2[MAX_VEHICLES];
new sirene3[MAX_VEHICLES];
new sirene4[MAX_VEHICLES];
new UCL[MAX_VEHICLES];
Function OnVehicleSpawn(vehicleid)
{
DestroyObject(sirene[vehicleid]);
DestroyObject(sirene1[vehicleid]);
DestroyObject(sirene2[vehicleid]);
DestroyObject(sirene3[vehicleid]);
DestroyObject(sirene4[vehicleid]);
UCL[vehicleid] = 0;
if(strcmp("/sirene",cmdtext,true) == 0)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid, 2) || IsPlayerInFrac(playerid, 3))
{
if(UCL[GetPlayerVehicleID(playerid)] == 0)
{
new tmpcar = GetPlayerVehicleID(playerid);
if(GetVehicleModel(tmpcar) == 560)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene4[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0.0,0.85,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
AttachObjectToVehicle(sirene4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0,0.9,0.4,0,0,0);//Mittig im Fenster
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 415)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.4,-0.2,0.65,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 451)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.45,-0.3,0.6,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 541)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.45,-0.1,0.65,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 470)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.6,0.2,1.1,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 421)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.4,0.2,0.72,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 405)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.4,0,0.78,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 426)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0,0.88,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 517)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.6,0,0.85,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 598)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 597)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 596)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 411)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.44,0.3,0.7,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
if(GetVehicleModel(tmpcar) == 561)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.4,0.1,0.85,0,0,0);//Dach Beifahrer
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.4,0.1,0.85,0,0,0);//Dach Fahrer
UCL[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
}
if(UCL[GetPlayerVehicleID(playerid)] == 1)
{
DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene1[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene2[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene3[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene4[GetPlayerVehicleID(playerid)]);
UCL[GetPlayerVehicleID(playerid)] = 0;
return 1;
}
SendClientMessage(playerid, COLOR_RED, "Du bist dazu nicht befugt!");
}
}
Würde mich um paar Antworten freuen.
Lg.
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == BOMB)
{
switch(row)//rot,gelb,grün,blau
{
case 0://rot
{
GetPlayerPos(playerid, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Bombe wurde gelegt! Du hast den ROTEN Draht genommen!");
bombe = CreatePickup(1252,1,PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1],-1);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
bombexplotimer = SetTimerEx("bombexplode",300000,0,"i",playerid);
BombStatus = 1;
Bombactivated=1;
bombdrahtchoosen = 1;
bombdraht1 = 1;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessage(i,COLOR_RED,"BOMBENALARM: Es wurde eine Bombe gelegt!");
bombzone = GangZoneCreate(PlayerExplosionX[1]-random(60), PlayerExplosionY[1]-random(60), PlayerExplosionX[1]+random(60), PlayerExplosionY[1]+random(60));
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
if(IsPlayerInFrac(i, 22))
{
SendClientMessage(i, COLOR_RED, "ZENTRALE: Es wurde eine Bombe gelegt!");
SendClientMessage(i, COLOR_RED, "ZENTRALE: Das Gebiet blinkt rot - grün.");
SendClientMessage(i, COLOR_RED, "ZENTRALE: Begeben sie sich sofort zur Basis!");
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
}
}
}
}
case 1://gelb maul kadoffel
{
GetPlayerPos(playerid, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Bombe wurde gelegt! Du hast den GELBEN Draht genommen!");
bombe = CreatePickup(1252,1,PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1],-1);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
bombexplotimer = SetTimerEx("bombexplode",300000,0,"i",playerid);
BombStatus = 1;
Bombactivated=1;
bombdrahtchoosen = 1;
bombdraht1 = 0;
bombdraht2 = 1;
bombdraht3 = 0;
bombdraht4 = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessage(i,COLOR_RED,"BOMBENALARM: Es wurde eine Bombe gelegt!");
bombzone = GangZoneCreate(PlayerExplosionX[1]-random(60), PlayerExplosionY[1]-random(60), PlayerExplosionX[1]+random(60), PlayerExplosionY[1]+random(60));
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
}
}
}
case 2://grün
{
GetPlayerPos(playerid, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Bombe wurde gelegt! Du hast den GRÜNEN Draht genommen!");
bombe = CreatePickup(1252,1,PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1],-1);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
bombexplotimer = SetTimerEx("bombexplode",300000,0,"i",playerid);
BombStatus = 1;
Bombactivated=1;
bombdrahtchoosen = 1;
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 1;
bombdraht4 = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessage(i,COLOR_RED,"BOMBENALARM: Es wurde eine Bombe gelegt!");
bombzone = GangZoneCreate(PlayerExplosionX[1]-random(60), PlayerExplosionY[1]-random(60), PlayerExplosionX[1]+random(60), PlayerExplosionY[1]+random(60));
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
}
}
}
case 3://blau
{
GetPlayerPos(playerid, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Bombe wurde gelegt! Du hast den BLAUEN Draht genommen!");
bombe = CreatePickup(1252,1,PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1],-1);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
bombexplotimer = SetTimerEx("bombexplode",300000,0,"i",playerid);
BombStatus = 1;
Bombactivated=1;
bombdrahtchoosen = 1;
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessage(i,COLOR_RED,"BOMBENALARM: Es wurde eine Bombe gelegt!");
bombzone = GangZoneCreate(PlayerExplosionX[1]-random(60), PlayerExplosionY[1]-random(60), PlayerExplosionX[1]+random(60), PlayerExplosionY[1]+random(60));
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
}
}
}
}
}
Okay danke aber wenn ich /defuse mache, wird zwar das bomben Pickup gelöscht aber nach 10min c.a explodiert die Bombe..
if(strcmp(cmd, "/defuse", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]))
{
if(IsACop(playerid))
{
if(Bombactivated==1)
{
//Bombtimer(10,playerid);
ShowMenuForPlayer(Menu:BOMBD,playerid);
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD1,"Du bist nicht befugt!");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD1,"Du bist nicht bei der Bombe!");
}
}
Function Bombtimer(time,playerid)
{
new string[8];
format(string,sizeof(string),"%d",time);
GameTextForPlayer(playerid,string,1000,4);
if(time>0)
{
time--;
bombtimer = SetTimerEx("Bombtimer",1000,0,"ii",time,playerid);
}
else
{
DestroyObject(bombe);
SetTimer("Abkling", 120000 , 0);
KillTimer(bombtimer);
KillTimer(bombexplotimer);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessageToAll(COLOR_BM,string);
GameTextForPlayer(i,"Bombe entschaerft!",1000,4);
GangZoneStopFlashForPlayer(i,bombzone);
GangZoneHideForPlayer(i,bombzone);
GangZoneDestroy(bombzone);
DestroyPickup(bombe);
Bombactivated=0;
}
}
}
}