random places pickup=? - 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: random places pickup=? (
/showthread.php?tid=661767)
random places pickup=? -
nbx2000 - 14.12.2018
Is it possible to do pickup weaps that appear in random places in my minigame?
Re: random places pickup=? -
DIRTYBYT3 - 14.12.2018
Yes its possible
Re: random places pickup=? -
nbx2000 - 14.12.2018
example please
Re: random places pickup=? -
Kaliber - 14.12.2018
You can not generate them completly random, because u dont know the Z-coordinate.
Sure with Map Andreas you could find it, but still then you need a border + check if it is on a roof or in water...etc
So it is easier to go to random places, get the coords, pack it in an array and get with the random function some coords out of the array (but be aware, that r doesnt come twice, you have to check it).
So its not that easy, but possible in both ways.