new weh[MAX_VEHICLES];CMD:bekapcsol(playerid){new vehid = GetPlayerVehicleID(playerid);if(IsPlayerInAnyVehicle(playerid)){ if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1) { weh[vehid] = 1; PlayAudioStreamForPlayer(playerid, \"watafaka.com/234.mp3\"); for(new i;i<MAX_PLAYERS;i++) if(IsPlayerInVehicle(i, vehid)) return SendClientMessage(i,-1,\"Rádió bekapcsolva!\");}else return SendClientMessage(playerid,-1,\"Nem te vezetsz!\");}else return SendClientMessage(playerid,-1,\"Nem ülsz kocsiban!\");return 1;}CMD:kikapcsol(playerid){new vehid = GetPlayerVehicleID(playerid);if(IsPlayerInAnyVehicle(playerid)){ if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1) { weh[vehid] = 0; StopAudioStreamForPlayer(playerid); for(new i;i<MAX_PLAYERS;i++) if(IsPlayerInVehicle(i, vehid)) return SendClientMessage(i,-1,\"Rádió kikapcsolva!\");}else return SendClientMessage(playerid,-1,\"Nem te vezetsz!\");}else return SendClientMessage(playerid,-1,\"Nem ülsz kocsiban!\");return 1;}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){if(weh[vehicleid] == 1){ SendClientMessage(playerid,-1,\"Szól a kocsiba a zene!\");} return 1;}
~ Valamint az sem lenne hátrány ha pl nyitvahagyják a kocsi ajtaját de nem kapcsolták ki benne a zenét akkor az bizonyos távolságig hallatszik, de ez már csak +.
new weh[MAX_VEHICLES];CMD:bekapcsol(playerid){ new vehid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1) { weh[vehid] = 1; PlayAudioStreamForPlayer(playerid, \"watafaka.com/234.mp3\"); for(new i;i<MAX_PLAYERS;i++) if(IsPlayerInVehicle(i, vehid)) return SendClientMessage(i,-1,\"Rádió bekapcsolva!\"); } else return SendClientMessage(playerid,-1,\"Nem te vezetsz!\"); } else return SendClientMessage(playerid,-1,\"Nem ülsz kocsiban!\"); return 1;}CMD:kikapcsol(playerid){ new vehid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1) { weh[vehid] = 0; StopAudioStreamForPlayer(playerid); for(new i;i<MAX_PLAYERS;i++) if(IsPlayerInVehicle(i, vehid)) return SendClientMessage(i,-1,\"Rádió kikapcsolva!\"); } else return SendClientMessage(playerid,-1,\"Nem te vezetsz!\"); } else return SendClientMessage(playerid,-1,\"Nem ülsz kocsiban!\"); return 1;}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){ if(weh[vehicleid] == 1) { PlayAudioStreamForPlayer(playerid, \"watafaka.com/234.mp3\"); SendClientMessage(playerid,-1,\"Szól a kocsiba a zene!\"); } return 1;}public OnPlayerExitVehicle(playerid, vehicleid){ if(weh[vehicleid] == 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { for(new i;i<MAX_PLAYERS;i++) if(IsPlayerInVehicle(i, vehid)) return StopAudioStreamForPlayer(i); } else if(weh[vehicleid] == 1) { StopAudioStreamForPlayer(playerid); } return 1;}
PlayAudioStreamForPlayer(playerid, \"watafaka.com/234.mp3\");
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, \"{EEEE11}Rádió\", \"Mr2 Petõfi\\nDisco\'s Hit Rádió\\nClass FM\\nLegend FM\\nJustMusic FM\\nDió Rádió - Gyöngyös\\nRádióFace\\nRádió 1\\nRock-R\\nRise FM\\nVlagyivosztok FM\", \"Választ\", \"Kilép\");