SA-MP Forums Archive
/locate ID - 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: /locate ID (/showthread.php?tid=107064)



/locate ID - Striker_Moe - 07.11.2009

Just asking, how can I get a playeridґs zone/location? For example - Tierra Robada.


Re: /locate ID - Correlli - 07.11.2009

You need a zone script (search for "mabako zone script").


Re: /locate ID - Redgie - 07.11.2009

For that sort of thing you would need to design or find a function or script that splits SA into the locations it came programmed with.

If you designed it yourself, you would need to map out the areas and then assign each one to the correct name, and insert it into your script. Then use a command like IsPlayerInArea(...) to determine if they are in the correct one.