SA-MP Forums Archive
[HELP] Anti Car Spawner (only in some places) - 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: [HELP] Anti Car Spawner (only in some places) (/showthread.php?tid=649332)



[HELP] Anti Car Spawner (only in some places) - spyro9696 - 07.02.2018

Hello, I've some parkour maps, but I would like to put the function that players, only in these maps, can't spawn any vehicles.
How can I do this?


Re: [HELP] Anti Car Spawner (only in some places) - JasonRiggs - 07.02.2018

Check if the player is in range of this areas when he /createveh,


Re: [HELP] Anti Car Spawner (only in some places) - wallen - 07.02.2018

Just create a global variable that detects if the player is or not in these types of maps like IsPlayerInParkour1[playerid] = 1; then check on your car command the variable if he's in or out the map.


Re: [HELP] Anti Car Spawner (only in some places) - Mugala - 08.02.2018

you can made this in many ways, for example JasonRiggs's or wallen's ways, also u can put the script which will check the player's position at OnPlayerUpdate, than it respawns or destroys vehicle.