Random spawn in a square area
#2

This is pretty simple, you can just

PHP код:
SetPlayerPos(playerid,X+random(X1),Y+random(Y1),z
Where X and Y is the starting point of your desired square and where (X + X1) and (Y + Y1) results in the ending point of your desired square.
Reply


Messages In This Thread
Random spawn in a square area - by KamoTo - 03.07.2017, 04:25
Re: Random spawn in a square area - by Toroi - 03.07.2017, 04:28
Re: Random spawn in a square area - by KamoTo - 03.07.2017, 04:40

Forum Jump:


Users browsing this thread: 1 Guest(s)