Hi,
Kann man in diesen Bfehel noch einfügen das so ein Ton kommt wie wenn man ein lspd car fährt und die sirene anschaltet?
if(strcmp(cmdtext,"/sirene",true) == 0)
{
if(IsPlayerInFrac(playerid,1)|| IsPlayerInFrac(playerid,2) || IsPlayerInFrac(playerid,3) || IsPlayerInFrac(playerid,22))
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
sfl1[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,-1000,0,0,0,100);
sfl2[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,-1000,0,0,0,100);
sfl3[GetPlayerVehicleID(playerid)] = CreateObject(19290,0,0,-1000,0,0,0,100);
sfl4[GetPlayerVehicleID(playerid)] = CreateObject(19290,0,0,-1000,0,0,0,100);
sfl5[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(sfl1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.365000,2.250000,0.049999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.405000,2.250000,0.049999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.270000,2.275000,0.019999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.304999,2.275000,0.019999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl5[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.589999,-0.069999,0.869999,0.000000,0.000000,0.000000);
}
else
{
SendClientMessage(playerid,0xFFFFFFFF,"Du kannst nur an einen Sultan eine Sirene anbringen.");
}
}
else
{
SendClientMessage(playerid,0xFF0000FF,"Du bist kein Beamter" );
}
}
Danke im voraus