Please help me with playstreamforplayer!
#1

Well i dont understand how to make a command wich would play my audio stream i have a shoutcast server but for the rest i just dont know if anyone would like to help me with it (like give a pawn code) i would appreciate it.
P.S. my audio stream is : dutchbeastz.listen2myradio.com
Reply
#2

https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
Reply
#3

Quote:
Originally Posted by newbienoob
View Post
I know i watched that already...
i dont really know how to make a .pls
Reply
#4

You mean like this:

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/play radio", cmdtext, true) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "dutchbeastz.listen2myradio.com");
        return 1;
     }
Reply
#5

Quote:
Originally Posted by TheDominator
View Post
You mean like this:

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/play radio", cmdtext, true) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "dutchbeastz.listen2myradio.com");
        return 1;
     }
Yes thank you!
Reply
#6

How to create a stop command?
*noob*
Reply
#7

https://sampwiki.blast.hk/wiki/StopAudioStreamForPlayer

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stop radio", cmdtext, true) == 0)
    {
        StopAudioStreamForPlayer(playerid);
        return 1;
     }
Reply
#8

Thanks all!
Reply
#9

Oke trying it
Reply
#10

Code:
CMD:milanium1(playerid, params[])
{
	PlayAudioStreamForPlayer(playerid, "http://k005.kiwi6.com/hotlink/aqly2x8ar6/booster_original_mix.mp3");
	SCM(playerid, COLOR_GREEN, "Booster - Milan");
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)