22.04.2012, 19:51
Hey I wanna define songs Like if I do /radio 1 that 1 = song called Dare mama from tupac,
how to define liek this code :
Just that this song is #1,
So it's better to do like /playglobal songid
how to define liek this code :
Код:
CMD:tupacmary(playerid, params[])
{
new string[128];
if(playerVariables[playerid][pAdminLevel] >= 3)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, "http://www.symphonyofnoise.com/binv2/ListenRap/06.Tupac-HailMairy.mp3");
}
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
format(string, sizeof(string), "Music Admin: %s has started the Song Tupac - Hail mary", szPlayerName);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
return 1;
}
So it's better to do like /playglobal songid

