PDA

View Full Version : Stop music streaming command


alvin6
22/06/2019, 09:56 PM
Hey there
I created a radio on my server but i want a command for player to stop music when he dont want to listen radio can anyone help please

BadJih
22/06/2019, 09:58 PM
show us the code

BadJih
22/06/2019, 10:00 PM
anyways, use

stock StopStream(playerid)
{
StopAudioStreamForPlayer(playerid);
}


==> StopStream(playerid);

alvin6
22/06/2019, 10:02 PM
Thank you

GeorgeLimit
23/06/2019, 04:17 AM
if use zcmd use this :

CMD:stopmusic(playerid, params[])
{
StopAudioStreamForPlayer(playerid);
return 1;
}

if not use zmcd use this :

if(!strcmp(cmdtext, "/stopmusic", true))
{
StopAudioStreamForPlayer(playerid);
return 1;
}
return 0;