Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define MUSICAID 7561 //id a caso, attenzione ! se lo hai già cambialo.
- #include <zcmd>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Radio sistem");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- CMD:musica(playerid,params[])
- {
- ShowPlayerDialog(playerid, MUSICAID, DIALOG_STYLE_LIST, "Musica", "1. Welcome to the club\2. Celebrate summer\n3. Nessaja techno\n4. Canzone4\n5. Canzone5\n6.Canzone6\n7. Canzone7\n8. Canzone8\n9. Canzone9\n10. Canzone10", "Play", "Chiudi");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == MUSICAID)
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/91992442/Manian%20-%20Welcome%20to%20the%20Club%20(Radio%20Edit).mp3");
- SendClientMessage(playerid, -1, "Stai ascoltando: Welcome to the club");
- }
- if(listitem == 1)
- {
- PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/91992442/Lacuna%20-%20Celebrate%20The%20Summer%20(%20Techno%20Remix%20).mp3");
- SendClientMessage(playerid, -1, "Stai ascoltando: Celebrate summer");
- }
- if(listitem == 2)
- {
- PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/91992442/Sunset%20Project%20Meets%20Tomtrax%20-%20Nessaja%20Techno%20Remix%20.mp3");
- SendClientMessage(playerid, -1, "Stai ascoltando: Nessaja techno");
- }
- if(listitem == 3)
- {
- PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 4");
- SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 4");
- }
- if(listitem == 4)
- {
- PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 5");
- SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 5");
- }
- if(listitem == 5)
- {
- PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 6");
- SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 6");
- }
- if(listitem == 6)
- {
- PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 7");
- SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 7");
- }
- if(listitem == 7)
- {
- PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 8");
- SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 8");
- }
- if(listitem == 8)
- {
- PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 9");
- SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 9");
- }
- if(listitem == 9)
- {
- PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 10");
- SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 10");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment