Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_players>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Music System By NeXoR");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Music System By NeXoR");
- print("--------------------------------------\n");
- return true;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/music", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x00ff99ff, "{FF0000}This command can be used only for RCON Administrators.");
- ShowPlayerDialog(playerid,17,DIALOG_STYLE_LIST,"Music System By NeXoR.","PSY - Gentleman\nPSY - Gangnam Style\nGusttavo Lima - Balada Boa\nMichel Telo - Bara Bara Bara\nMacklemore - Thrift Shop\nFlo Rida - Whistle\nFlo Rida - Wild Ones\nDon Omar - Danza Kudro\nPitbull - International Love\nWill I Am - Scream and Shout\nStromae - Alors On Dance\nDavid Guetta - She Wolf","Play","Cancel");
- }
- if(strcmp(cmdtext,"/StopMusic",true)==0) return StopAudioStreamForPlayer(playerid);
- if(!strcmp(cmdtext, "/gentleman", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k002.kiwi6.com/hotlink/l1245bz226/psy_-_gentleman.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Gentleman",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/balada", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k002.kiwi6.com/hotlink/80tujm46k7/gustavo_lima_-_balada_boa_tcherere_tch_tch_.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Balada Boa",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/bara", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k002.kiwi6.com/hotlink/ub9ck140qm/michel_telo_bara_bara_bere_bere_2012_hd.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Bara Bara Bara",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/thrift", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k002.kiwi6.com/hotlink/tzaafx7yiy/macklemore_-_thrift_shop_ft._wanz_lyrics.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Thrift Shop",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/gangnam", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k007.kiwi6.com/hotlink/tewzvg24y7/psy_-_gangnam_style_-----_m_v.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Gangnam Style",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/whistle", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k002.kiwi6.com/hotlink/envtg6c3gp/flo_rida_-_whistle_official_video_.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Whistle",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/wild", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k002.kiwi6.com/hotlink/pbsga714fz/flo_rida_-_wild_ones_ft._sia_official_v.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Wild Ones",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/danza", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k007.kiwi6.com/hotlink/02i5m92ryr/don_omar_-_danza_kuduro_ft._lucenzo.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Danza Kudro",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/ilove", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k007.kiwi6.com/hotlink/1pl0qb910r/pitbull_featuring_chris_brown_-_international_love.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : International Love",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/scream", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k002.kiwi6.com/hotlink/1f4fr5l5bp/will.i.am_-_scream_and_amp_shout_ft._britn.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Scream And Shout",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/alors", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k007.kiwi6.com/hotlink/8c99e3soi6/stromae_-_alors_on_danse.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : Alos On Dance",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- if(!strcmp(cmdtext, "/wolf", true))
- {
- new string[256];
- for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
- PlayAudioStreamForPlayer(i,"http://k007.kiwi6.com/hotlink/3nw737vr3w/david_guetta_-_she_wolf_falling_to_piec.mp3");
- format(string,sizeof(string),"{FF0000} AudioStream : The Administrator %s Started the global playback of the song : She Wolf",GetName(playerid));
- SendClientMessageToAll(0xFFFF00C8,string);
- return 1;
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 17 && response)
- {
- switch(listitem)
- {
- case 0:{
- OnPlayerCommandText(playerid,"/gentleman");
- }case 1:{
- OnPlayerCommandText(playerid,"/gangnam");
- }case 2:{
- OnPlayerCommandText(playerid,"/balada");
- }case 3:{
- OnPlayerCommandText(playerid,"/bara");
- }case 4:{
- OnPlayerCommandText(playerid,"/thrift");
- }case 5:{
- OnPlayerCommandText(playerid,"/whistle");
- }case 6:{
- OnPlayerCommandText(playerid,"/wild");
- }case 7:{
- OnPlayerCommandText(playerid,"/danza");
- }case 8:{
- OnPlayerCommandText(playerid,"/ilove");
- }case 9:{
- OnPlayerCommandText(playerid,"/scream");
- }case 10:{
- OnPlayerCommandText(playerid,"/alors");
- }case 11:{
- OnPlayerCommandText(playerid,"/wolf");
- }
- }
- return 1;
- }
- return 1;
- }
- stock GetName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
Advertisement
Add Comment
Please, Sign In to add comment