A teleport command that can take you to several random co ordinates
#1

Exactly what the title says, I want to make a teleport command (which I know how to) but it will be taking the player to a DM arena, which I don't want them to spawn in one place, so I want them to spawn in several place in the arena.
Reply
#2

I made that... use randomspawns. theres an tutorial out there
Reply
#3

First of all take the coordinates of the random spawns
then you can work with cases like

Код:
new locations = random(10);

switch(locations)
{
    case 1: { SetPlayerPos(playerid, firstx , firsty, firstz ); }
    case 2: { SetPlayerPos(playerid, Secondx, Secondy, Secondz);
    case 3: ..........
    ......
   ......
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)