Random Spawns, Need help please.
#7

pawn Code:
SpawnPlayerInMinigun(playerid)
{
  const MAX_POSITIONS = 12;
  static Float:Minigunspawns[MAX_POSITIONS][4] =
  {
    {2606.2012,2725.6223,23.8222,13.2314},
    {2590.4138,2719.8047,10.8203,180.1702},
    {2619.6592,2708.9177,25.8222,195.3502},
    {2591.0515,2800.7275,10.8203,89.1443},
    {2592.0317,2724.0625,10.9844,39.3620},
    {2653.7820,2723.7656,19.3222,287.7489},
    {2542.4048,2807.4819,10.8203,329.6895},
    {2618.5669,2721.3716,36.5386,80.9590},
    {2648.2996,2731.5466,10.8203,307.8025},
    {2556.0271,2710.1548,10.9844,56.4777},
    {2626.6411,2840.9756,10.8203,70.1659},
    {2595.8225,2800.8164,10.8203,270.0378}
  }, Current_Cell;
  if(Current_Cell == MAX_POSITIONS)
    return (Current_Cell = 0), SpawnPlayerInMinigun(playerid);
  if(!SetPlayerFacingAngle(playerid, Minigunspawns[Current_Cell][3])) return false;
  SetPlayerPos(playerid, Minigunspawns[Current_Cell][0], Minigunspawns[Current_Cell][1], Minigunspawns[Current_Cell][2]);
  Current_Cell++;
  return true;
}
Its not random (the one before wasnt too :S) Its like that
Example:
Player1 = Pos1
Player2 = Pos2
...
Player12 = Pos12
Player13 = Pos1
And Pos1 is always the position after the last taken
Reply


Messages In This Thread
Random Spawns, Need help please. - by Outbreak - 19.02.2009, 20:58
Re: Random Spawns, Need help please. - by Nero_3D - 19.02.2009, 21:13
Re: Random Spawns, Need help please. - by Outbreak - 19.02.2009, 23:46
Re: Random Spawns, Need help please. - by Nimphious - 19.02.2009, 23:48
Re: Random Spawns, Need help please. - by Outbreak - 19.02.2009, 23:56
Re: Random Spawns, Need help please. - by Outbreak - 20.02.2009, 14:25
Re: Random Spawns, Need help please. - by Nero_3D - 20.02.2009, 16:28
Re: Random Spawns, Need help please. - by Outbreak - 20.02.2009, 21:27

Forum Jump:


Users browsing this thread: 3 Guest(s)