how to make this ?
#1

ok, there are 15 ppl in one team, and how to no spawn them at the same place, but spawn them like this ?

* *
* *
* *

either like this or like this



*
* *
* *
And so on and so worth.. eh? how do i do that? for example, if this place is taken, put the other player there.. you know
Reply
#2

so? sddddddd
Reply
#3

i dont... understand.
Reply
#4

ok so the first player spawns at 0,3,5 (x,y,z) and then the second player will spawn at 3,4,6(x,y,z) how to do that?
Reply
#5

use randoms
Reply
#6

hm, well they might spawn at the same exact coordinates, i thought about random spawns but..
Reply
#7

but what?

pawn Код:
switch(random(6))//change 6 to any you want
{
       case 0: SetPlayerPos(playerid,X,Y,Z);
       case 1: SetPlayerPos(playerid,X,Y,Z);
       case 2: SetPlayerPos(playerid,X,Y,Z);
       case 3: SetPlayerPos(playerid,X,Y,Z);
       case 4: SetPlayerPos(playerid,X,Y,Z);
       case 5: SetPlayerPos(playerid,X,Y,Z);
}
Reply
#8

pawn Код:
SetPlayerPos(playerid,x+random(5),y-random(5),z);
Much easier.
Reply
#9

well, i like how you guys made it, but look, i want it to be like this:
_____________________first random player here
2nd player ____________________________3rd random player
4th here_____________________________________________5 th here

this will work only if i get the coordiantes of the 1st player, well how do i get who will spawn first?!?
Reply
#10

hem, so what's the problem? how i do it?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)