SA-MP Forums Archive
Help Please - 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: Help Please (/showthread.php?tid=266795)



Help Please - ZachZ - 06.07.2011

I need help with this.

Say I did /work and I had jobs for them and the jobs were random locations. Now I want 5 Random Locations to Spawn in a Dialog when you do /work. How would you do that?


Re: Help Please - grand.Theft.Otto - 06.07.2011

This will help you:

https://sampwiki.blast.hk/wiki/Random
https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog


Re: Help Please - ZachZ - 06.07.2011

Okay. Also when I do /work how would I be able to see the closest jobs to me?


Re: Help Please - grand.Theft.Otto - 06.07.2011

You can use IsPlayerInRangeOfPoint and you would use your job locations for the coordinates I guess, use

https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog

for help on how to show the dialog.