SA-MP Forums Archive
How to know which city player in - 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: How to know which city player in (/showthread.php?tid=656463)



How to know which city player in - TuNiSiAnO1 - 16.07.2018

What is the best way to know that


Re: How to know which city player in - Hreesang - 17.07.2018

Use your search button, bro, you will find lot of helps.
But okay, no problem, here is a Filterscript, try to learn something from the Filterscript:
https://sampforum.blast.hk/showthread.php?tid=161741


Re: How to know which city player in - denNorske - 17.07.2018

Create approximate areas by using coordinates and perhaps Incognito's Streamer Plugin to define dynamic areas (or make your own function, works too) - then create a logic that parses the coordinates of the player and compares them to the values in the areas you've created. Name the areas and so on - that I would say is a simple way.

You can even make it simpler by creating squares/rectangles if you want, but that will also decrease accuracy in the city borders.