02.01.2015, 16:26
Hey,
i want to create random spawns. Therefor I created this array:
I put all the coords i have in this array. ( For /spawn1, /spawn2 )
As you can see the "1" is an ID which is given to the coords. If I type "spawn1" i want spawn at a random position -> Where ID = 1
If I type "spawn2" i want so spawn at a random position -> Where ID = 2
I hope you understand what i mean.
-Happy new year
i want to create random spawns. Therefor I created this array:
Код:
new r_spawn[][] = { {1,x,y,z,r}, {1,x,y,z,r}, {2,x,y,z,r}, {5,x,y,z,r}, ... {ID,x,y,z,r} };
As you can see the "1" is an ID which is given to the coords. If I type "spawn1" i want spawn at a random position -> Where ID = 1
If I type "spawn2" i want so spawn at a random position -> Where ID = 2
I hope you understand what i mean.
-Happy new year