car sound - 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: car sound (
/showthread.php?tid=106574)
car sound -
leuthrick - 04.11.2009
hey,
i will make with a command a sound from the car(music).
but how can i let hear all players that stay close by the car.
sorry for my bad english
thanks
leuthrick
Re: car sound -
saiberfun - 04.11.2009
Quote:
Originally Posted by leuthrick
hey,
i will make with a command a sound from the car(music).
but how can i let hear all players that stay close by the car.
sorry for my bad english
thanks
leuthrick
|
lol bad english but as far as i understood u want to let music play near a car?
then ud need to check Under OnVehicleStream in if the vehicle id = the id of the car u want to play music from then play the sound for em
then make a timer which checks all players if they are near the car(IsPlayerInRangeOfPoint with carpos)
and if they aren't near stop it.
Re: car sound -
leuthrick - 04.11.2009
do u mean IsVehicleStreamedIn?
and how do i use IsVehicleStreamedIn?
i dont understand it on
https://sampwiki.blast.hk/
i cant found OnVehicleStream in
https://sampwiki.blast.hk/
thanks