How do I stream Shoutcast Server for use in Vehicles Only? - 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do I stream Shoutcast Server for use in Vehicles Only? (
/showthread.php?tid=276933)
How do I stream Shoutcast Server for use in Vehicles Only? -
seanny - 15.08.2011
Hello, I found a tutorial for streaming shoutcast, But it Only shows how to make it so the player can listen to it at anytime, But I want one where the player can only listen to it if he/she is in a vehicle.
Thanks
Re: How do I stream Shoutcast Server for use in Vehicles Only? -
=WoR=Varth - 16.08.2011
https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle
Re: How do I stream Shoutcast Server for use in Vehicles Only? -
Scenario - 16.08.2011
You can use Incognito's audio plugin to stream the audio, then set a variable when a player is in a vehicle and when they leave the vehicle, destroy the variable (or set it to 0). That would be better than using "IsPlayerInAnyVehicle," depending on how you wish to code such a system.