Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //SISTEMA DE RADIO FEITO POR BRINKESS
- //BOM PROVEITO
- #include <a_samp>
- #define RADIOS 1
- #define Amarelo 0xEBFF00AA
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/Radios", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,RADIOS,DIALOG_STYLE_LIST,"Radios","Funk\nRock\nRap\nSertanejo\nDesligar Radio","Selecionar","Cancelar");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == RADIOS){
- if(response){
- if(listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid,"http://170.75.146.178:12206");
- SendClientMessage(playerid,Amarelo,"Radio Funk selecionada!");
- }
- if(listitem == 1)
- {
- PlayAudioStreamForPlayer(playerid,"http://82.117.200.90:9160");
- SendClientMessage(playerid,Amarelo,"Radio Rock selecionada!");
- }
- if(listitem == 2)
- {
- PlayAudioStreamForPlayer(playerid,"http://184.154.89.186:9944");
- SendClientMessage(playerid,Amarelo,"Radio Rap selecionada!");
- }
- if(listitem == 3)
- {
- PlayAudioStreamForPlayer(playerid,"http://72.10.168.122:8080/radiosu.mp3");
- SendClientMessage(playerid,Amarelo,"Radio Sertanejo selecionada!");
- }
- if(listitem == 4)
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid,Amarelo,"Radio Desligada!");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement