07.07.2016, 03:12
(
Last edited by MarkNelson; 25/07/2016 at 10:49 PM.
Reason: Some errors.
)
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
OnPlayerConnect
"PART 2:"
in this part we will add the music tune ON/OFF manually if the player wants that REMEMBER YOU NEED ZCMD.
So, Congratz your Radio added to the server enjoy! ![Smiley](images/smilies/smile.png)
if you got any probleme just PM me.
Sorry for my bad english, i'm Tunisian.
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"
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;
}
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;
}
![Smiley](images/smilies/smile.png)
if you got any probleme just PM me.
Sorry for my bad english, i'm Tunisian.