[Tutorial] How to make Auto Stream Player and cmds on/off manually - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (
https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to make Auto Stream Player and cmds on/off manually (
/showthread.php?tid=611480)
How to make Auto Stream Player and cmds on/off manually -
MarkNelson - 07.07.2016
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.
Re: How to make Auto Stream Player and cmds on/off manually -
DomagojSellug - 25.10.2016
I don't know why are there no replies, anyways, good work! REP+'ed you!
Re: How to make Auto Stream Player and cmds on/off manually -
GoldenLion - 26.10.2016
Hey have a look here:
https://sampforum.blast.hk/showthread.php?tid=570981
Re: How to make Auto Stream Player and cmds on/off manually -
SyS - 26.10.2016
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.