20.10.2012, 11:43
Hey guys, the " PlayAudioStreamForPlayer " is not being called, here are the commands that I have for it,:
They used to work, but now they're not working/not being called.
pawn Код:
CMD:musictest(playerid, params[])
{
PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/oggvorbis.pls");
return 1;
}
CMD:musicplayer(playerid, params[]) //editedd
{
if(strcmp(params, "callmemaybe", true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://www.weebly.com/uploads/1/3/0/7/13072079/carly_rae_jepsen_-_call_me_maybe.mp3");
}
else if(strcmp(params, "station1", true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/oggvorbis.pls");
}
else if(strcmp(params, "station2", true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://main-high.rautemusik.fm/rm.page//listen.pls");
}
else if(strcmp(params, "station3", true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://charthits-high.rautemusik.fm//listen.pls");
}
else if(strcmp(params, "station4", true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://files.sa-mp.im:8000/listen.pls");
}
else if(strcmp(params, "susan", true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://72.26.204.28:6834");
GivePlayerMoney(playerid, 3500+3500);
}
else if(strcmp(params, "susan2", true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://206.217.207.207:6140");
GivePlayerMoney(playerid, 3500+3500);
}
else if(strcmp(params, "off", true) == 0)
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, COLOR_RED, "Audio streaming was stopped.");
}
return 1;
}