[Tutorial] How to make Auto Stream Player and cmds on/off manually
#1

Hello, In these days i saw much people asking about how to make auto stream player and CMDs to turn it Manually.
So let's begin.
Part 1:
First of all you need to go to the top of the script and add those includes/defines
pawn Code:
#include <a_samp>
#include <zcmd>
#define COLOR_RED "Add the color define here search for it"
#define COLOR_LIGHTBLUE "Here too"
OnPlayerConnect
pawn Code:
public OnPlayerConnect(playerid)
{
               PlayAudioStreamerForPlayer(playerid,"//Set your shoutcast IRL here."www.shoutcast.com");
               SendClientMessage(playerid,COLOR_LIGHTBLUE,"
Enjoy Listening To Our Radio Station[Your radio name]");
            return 1;
}
"PART 2:"
in this part we will add the music tune ON/OFF manually if the player wants that REMEMBER YOU NEED ZCMD.
pawn Code:
CMD:radioon(playerid, params[])
{
               PlayAudioStreamerForPlayer(playerid,"///Your Shoutcast here you know. www.shoutcast.com");
               SendClientMessage(playerid,COLOR_LIGHTBLUE,"Enjoy listening to our radio station");
return 1;
}
CMD:radiooff(playerid, params[])
{
       StopAudioStreamForPlayer(playerid);
       SendClientMessage(playerid,COLOR_RED,"Radio Stoped...");
       return 1;
}
So, Congratz your Radio added to the server enjoy!
if you got any probleme just PM me.
Sorry for my bad english, i'm Tunisian.
Reply


Messages In This Thread
How to make Auto Stream Player and cmds on/off manually - by MarkNelson - 07.07.2016, 03:12
Re: How to make Auto Stream Player and cmds on/off manually - by DomagojSellug - 25.10.2016, 21:06
Re: How to make Auto Stream Player and cmds on/off manually - by GoldenLion - 26.10.2016, 11:18
Re: How to make Auto Stream Player and cmds on/off manually - by SyS - 26.10.2016, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)