Код:
CMD:song(playerid, params[])
{
new songtext[128], option;
if(PlayerInfo[playerid][pAdmin] < 1337) return SCM(playerid, COLOR_GREY, "unauthorized");
if(sscanf(params,"s", option)) return SCM(playerid, COLOR_GREY, "Usage: /song [songs 1-15]");
{
if(!strcmp(option, "1", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323034/avicii-vs-nicky-romero-i-could-be-the-one-lyrics-mp3");
format(string,sizeof(string),"[Song] Now playing Avicii - I could be the one");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "2", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323036/capital-cities-safe-and-sound-original-mp3");
format(string,sizeof(string),"[Song] Now playing Capital cities - Safe and sound");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "3", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323037/david-guetta-she-wolf-falling-to-pieces-ft-sia-mp3");
format(string,sizeof(string),"[Song] Now playing David Guetta - She wolf");
SCM(playerid,COLOR_GREEN,string);
return 1;
{
if(!strcmp(option, "4", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323039/chris-brown-beautiful-people-ft-benny-benassi-lyrics-on-screen-hq_hd-mp3");
format(string,sizeof(string),"[Song] Now playing Chris Brown - Beautiful people");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "5", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323131/dizzee-rascal-dirtee-cash-mp3");
format(string,sizeof(string),"[Song] Now playing Dizzee Rascal - Dirtee cash");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "6", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323132/drake-headlines-lyrics-mp3");
format(string,sizeof(string),"[Song] Now playing Drake - Headlines");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "7", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323133/eminem-space-bound-mp3");
format(string,sizeof(string),"[Song] Now playing Eminem - Space Bound");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "8", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323134/fall-out-boy-light-em-up-lyrics-mp3");
format(string,sizeof(string),"[Song] Now playing Fall Out Boy - Light em up");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "9", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323135/imagine-dragons-radioactive-mp3");
format(string,sizeof(string),"[Song] Now playing Imagine Dragons - Radioactive");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "10", true))
{
PlayAudioStreamForPlayer(playerid, "http://www.tunescoop.com/play/313931323136/jack-holiday-mike-candys-the-riddle-anthem-original-mix-mp3");
format(string,sizeof(string),"[Song] Now playing Jack Holiday -Riddle Anthem");
SCM(playerid,COLOR_GREEN,string);
return 1;
}
if(!strcmp(option, "off", true))
{
StopAudioStreamForPlayer(playerid);
format(string,sizeof(string),"[Song] Songs now {FF0000}OFF");
SCM(playerid,COLOR_GREEN,string);
}
return 1;
}
}
Thanks, worked. Didn't see that.