PHP код:
if(dialogid == DIALOG_SIREN2 && response)
{
switch(listitem)
{
case 0:
{
new VID = GetPlayerVehicleID(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411) {
if(hassiren[VID] == 1) {
DestroyObject(siren[VID]);
//} //-----------------------Removedhere
hassiren[VID] = 1; //
siren[VID] = CreateObject( 19419,0,0,0,0,0,0,80 ); // <infernus>
AttachObjectToVehicle( siren[VID], VID, 0.010000, -0.060000, 0.689999, 0.000000, 0.000000, 0.000000 ); // <1>
}
}
} // added it here
Try this and do the same to the other codes as well.