CMD:szirena(playerid, params[]){if(PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 2 && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pFBIleader] != 2 && PlayerInfo[playerid][pFBItag] != 2 )return SendClientMessage(playerid,FEHER,\"Nem használhatod ezt a parancsot.\");if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, FEHER, \"Nem ülsz jármûben!\");if(GetPlayerVehicleSeat(playerid) != 0)return SendClientMessage(playerid,FEHER,\"Nem vagy a vezetõ ülésnél.\");new VID = GetPlayerVehicleID(playerid);{if(GetVehicleModel(VID) == 421){ if(Siren[VID] == 0) { SirenObject[VID] = CreateObject(18646,0,0,-1000,0,0,0,100); AttachObjectToVehicle(SirenObject[VID], GetPlayerVehicleID(playerid), -0.130000, 0.909999, 0.254999, 0.000000, 0.000000, 0.000000); SendClientMessage(playerid, FEHER, \"Villogó kitéve.\"); Siren[VID] = 1; } else if(Siren[VID] == 1) { Siren[VID] = 0; DestroyObject(SirenObject[VID]); SendClientMessage(playerid, FEHER, \"Villogó levéve.\"); }}if(GetVehicleModel(VID) == 426){ if(Siren[VID] == 0) { SirenObject[VID] = CreateObject(18646,0,0,-1000,0,0,0,100); AttachObjectToVehicle(SirenObject[VID], GetPlayerVehicleID(playerid), -0.164999, 0.774999, 0.374999, 0.000000, 0.000000, 0.000000); SendClientMessage(playerid, FEHER, \"Villogó kitéve.\"); Siren[VID] = 1; } else if(Siren[VID] == 1) { Siren[VID] = 0; DestroyObject(SirenObject[VID]); }}if(GetVehicleModel(VID) == 586){ if(Siren[VID] == 0) { SirenObject[VID] = CreateObject(18646,0,0,-1000,0,0,0,100); AttachObjectToVehicle(SirenObject[VID], GetPlayerVehicleID(playerid), 0.000000, -1.189999, 0.689999, 0.000000, 0.000000, 0.000000); SendClientMessage(playerid, FEHER, \"Villogó kitéve.\"); Siren[VID] = 1; } else if(Siren[VID] == 1) { Siren[VID] = 0; DestroyObject(SirenObject[VID]); SendClientMessage(playerid, FEHER, \"Villogó levéve.\"); }}}return 1;}
CMD:szirena(playerid){if((PlayerInfo[playerid][pLeader] != 1 && 2) && (PlayerInfo[playerid][pMember] != 1 && 2) && (PlayerInfo[playerid][pFBIleader] && PlayerInfo[playerid][pFBItag] != 2)) return SendClientMessage(playerid, -1, \"Nem használhatod ezt a parancsot.\");if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, \"Nem ülsz jármûben!\");if(GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid, -1, \"Nem vagy a vezetõ ülésnél.\");if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 421){if(!Siren[GetPlayerVehicleID(playerid)]){ SirenObject[GetPlayerVehicleID(playerid)] = CreateObject(18646, 0, 0, -1000, 0, 0, 0, 100); AttachObjectToVehicle(SirenObject[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.130000, 0.909999, 0.254999, 0.000000, 0.000000, 0.000000); SendClientMessage(playerid, -1, \"Villogó kitéve.\"); Siren[GetPlayerVehicleID(playerid)] = 1;}else{ Siren[GetPlayerVehicleID(playerid)] = 0; DestroyObject(SirenObject[GetPlayerVehicleID(playerid)]); SendClientMessage(playerid, -1, \"Villogó levéve.\");}}else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 426){ if(!Siren[GetPlayerVehicleID(playerid)]) { SirenObject[GetPlayerVehicleID(playerid)] = CreateObject(18646, 0, 0, -1000, 0, 0, 0, 100); AttachObjectToVehicle(SirenObject[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.164999, 0.774999, 0.374999, 0.000000, 0.000000, 0.000000); SendClientMessage(playerid, -1, \"Villogó kitéve.\"); Siren[GetPlayerVehicleID(playerid)] = 1; } else { Siren[GetPlayerVehicleID(playerid)] = 0; DestroyObject(SirenObject[GetPlayerVehicleID(playerid)]); }else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 586){if(!Siren[GetPlayerVehicleID(playerid)]){ SirenObject[GetPlayerVehicleID(playerid)] = CreateObject(18646, 0, 0, -1000, 0, 0, 0, 100); AttachObjectToVehicle(SirenObject[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.000000, -1.189999, 0.689999, 0.000000, 0.000000, 0.000000); SendClientMessage(playerid, -1, \"Villogó kitéve.\"); Siren[GetPlayerVehicleID(playerid)] = 1; }else{ Siren[GetPlayerVehicleID(playerid)] = 0; DestroyObject(SirenObject[GetPlayerVehicleID(playerid)]); SendClientMessage(playerid, -1, \"Villogó levéve.\");}}return 1;}