if(strcmp(cmdtext,"/sirene",true)==0)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid,24) || IsPlayerInFrac(playerid,4) || IsPlayerInFrac(playerid,7))
{
new vid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vid) == 560)
{
if(sirenean[vid] == false)
{
ShowPlayerDialog(playerid,DIALOG_SIRENEAN,DIALOG_STYLE_MSGBOX,"Sirene","Möchtest du eine Sirene an dieses Fahrzeug anbauen ?","Ja","Nein");
return 1;
}
else if(sirenean[vid] == true)
{
ShowPlayerDialog(playerid,DIALOG_SIRENEAUS,DIALOG_STYLE_MSGBOX,"Sirene","Möchtest du die Sirene dieses Fahrzeuges abbauen ?","Ja","Nein");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keinem Sultan!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Staatsbeamter!");
return 1;
}
}
if(dialogid== DIALOG_SIRENEAN)
{
if(response == 0)
{
return 1;
}
if(response == 1)
{
new vid = GetPlayerVehicleID(playerid);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
sirene[vid] = CreateObject(19419,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[vid],vid,0.0,0.0,0.85,0,0,0);
sirene2[vid] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene2[vid],vid,0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
sirene3[vid] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene3[vid],vid,-0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
sirene4[vid] = CreateObject(19292,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene4[vid],vid,0,0.9,0.4,0,0,0);//Vorne Mitte
sirenean[vid] = true;
SendClientMessage(playerid,0xFF0000,"Du hast die Sirene angebaut!");
return 1;
}
}
Hay Liebe Leute!
Ich habe ein Problem die Sirene kann man zwar anbaun aber wen man aussteigt ist sie wider weg?