[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
#2

I don't know why are there no replies, anyways, good work! REP+'ed you!
Reply
#3

Hey have a look here: https://sampforum.blast.hk/showthread.php?tid=570981
Reply
#4

Sorry but you aren't explaining anything and what you wrote about is completely basic thing that all other threads like this says.In other words i will call this tutorial as the introduction to scripting in ZCMD include.
And 50 % of this section is "spammed" with this concept.when you make a tutorial try to think that is it is made before and listen to yourself and what you are doing and what is its concept in raw form.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)