[Solved]Random spawn points
#5

Okay for now I got 7 teleports, and I know I'm not such a great scripter, I just can't find the right place to place the teleport command and such.Could I get some help writing the whole code?
I got this atm:
pawn Код:
new RandomSpawn = random(7);
   
  if (RandomSpawn == 0)
{
  SetPlayerPos(playerid,1314.9265,1274.5889,10.8203);
}
  if (RandomSpawn == 1)
{
  SetPlayerPos(playerid,2593.3086,2825.2039,27.8203);
}
  if (RandomSpawn == 2)
{
  SetPlayerPos(playerid,2689.9150,2790.7878,59.0212);
}

  if (RandomSpawn == 3)
{
  SetPlayerPos(playerid,2725.5459,2682.5300,59.0234);
}

  if (RandomSpawn == 4)
{
  SetPlayerPos(playerid,2605.4829,2714.0332,25.8222);
}

  if (RandomSpawn == 5)
{
  SetPlayerPos(playerid,2693.7769,2696.0540,22.9472);
}

  if (RandomSpawn == 6)
{
  SetPlayerPos(playerid,2505.3228,2687.8430,74.8281);
}

  if (RandomSpawn == 7)
{
  SetPlayerPos(playerid,2631.9949,2835.0886,94.0156);
}
Plus I want the GivePlayerWeapon command on the teleport command, dunno where to place that neither.
Reply


Messages In This Thread
[Solved]Random spawn points - by Dezi - 16.02.2009, 11:12
Re: Random spawn points - by tehcudguy - 16.02.2009, 12:15
Re: Random spawn points - by Dezi - 16.02.2009, 12:32
Re: Random spawn points - by Marcel - 16.02.2009, 12:35
Re: Random spawn points - by Dezi - 16.02.2009, 17:45
Re: Random spawn points - by Dezi - 16.02.2009, 17:48
Re: Random spawn points - by NaS - 16.02.2009, 18:02
Re: Random spawn points - by Dezi - 16.02.2009, 18:04
Re: Random spawn points - by tehcudguy - 16.02.2009, 18:05
Re: Random spawn points - by Dezi - 16.02.2009, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)