SA-MP Forums Archive
Listening carradio by the player out of the car - 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)
+--- Thread: Listening carradio by the player out of the car (/showthread.php?tid=629342)



Listening carradio by the player out of the car - monisoft - 25.02.2017

Hello
I want to be clear if the player near the car when the car radio volume to hear it anyway please help me how to do this.


Re: Listening carradio by the player out of the car - Toroi - 25.02.2017

You can use a streamer for this. https://sampforum.blast.hk/showthread.php?tid=102865

pawn Код:
native STREAMER_TAG_AREA CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);

native AttachDynamicAreaToVehicle(STREAMER_TAG_AREA areaid, vehicleid, Float:offsetx = 0.0, Float:offsety = 0.0, Float:offsetz = 0.0);

forward OnPlayerEnterDynamicArea(playerid, STREAMER_TAG_AREA areaid);

native IsPlayerInDynamicArea(playerid, STREAMER_TAG_AREA areaid, recheck = 0);
If you know what you are doing, these functions will do the trick.


Re: Listening carradio by the player out of the car - monisoft - 25.02.2017

thank you troydere