how to make this ? - 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: how to make this ? (
/showthread.php?tid=219219)
how to make this ? -
MrIncredible - 31.01.2011
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
Re: how to make this ? -
MrIncredible - 31.01.2011
so? sddddddd
Re: how to make this ? -
Marricio - 01.02.2011
i dont... understand.
Re: how to make this ? -
MrIncredible - 01.02.2011
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?
Re: how to make this ? -
Marricio - 01.02.2011
use randoms
Re: how to make this ? -
MrIncredible - 01.02.2011
hm, well they might spawn at the same exact coordinates, i thought about random spawns but..
Re: how to make this ? -
Marricio - 01.02.2011
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);
}
Re: how to make this ? -
admantis - 01.02.2011
pawn Код:
SetPlayerPos(playerid,x+random(5),y-random(5),z);
Much easier.
Re: how to make this ? -
MrIncredible - 01.02.2011
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?!?
Re: how to make this ? -
MrIncredible - 01.02.2011
hem, so what's the problem? how i do it?