Posts: 1,429
Threads: 321
Joined: Oct 2010
Reputation:
0
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
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
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.