Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <core>
- #include <float>
- public OnPlayerConnect(playerid)
- {
- PlayAudioStreamForPlayer(playerid, 0, 0, 0, 0, 1112014848, 0);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext)
- {
- if(!strcmp(cmdtext, "/music", true))
- {
- return ShowPlayerDialog(playerid, 993, 2, 236, 312, 1612, 1644);
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- PlayAudioStreamForPlayer(playerid, 1672, 0, 0, 0, 1112014848, 0);
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnDialogResponse(arg0, arg1, arg2, arg3)
- {
- switch(arg1) {
- case 993:
- if(arg2)
- {
- switch(arg3) {
- case 0:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 1876, 0, 0, 0, 1112014848, 0);
- case 1:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 2084, 0, 0, 0, 1112014848, 0);
- case 2:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 2364, 0, 0, 0, 1112014848, 0);
- case 3:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 2632, 0, 0, 0, 1112014848, 0);
- case 4:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 2900, 0, 0, 0, 1112014848, 0);
- case 5:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 3228, 0, 0, 0, 1112014848, 0);
- case 6:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 3504, 0, 0, 0, 1112014848, 0);
- case 7:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 3832, 0, 0, 0, 1112014848, 0);
- case 8:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 4036, 0, 0, 0, 1112014848, 0);
- case 9:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 4240, 0, 0, 0, 1112014848, 0);
- case 10:
- StopAudioStreamForPlayer(arg0);
- PlayAudioStreamForPlayer(arg0, 4456, 0, 0, 0, 1112014848, 0);
- case 11:
- StopAudioStreamForPlayer(arg0);
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment