How do I stream Shoutcast Server for use in Vehicles Only?
#1

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

https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)