Race random places
#2

Top of your script
pawn Код:
new Float:RandomSpawns[][] =
{
     {    x   ,     y     ,   z    ,  angle  },
     {    x   ,     y     ,   z    ,  angle  },
     {    x   ,     y     ,   z    ,  angle  },
     {    x   ,     y     ,   z    ,  angle  },
     {    x   ,     y     ,   z    ,  angle  },
     {    x   ,     y     ,   z    ,  angle  }
};
then in the code where the player spawns
pawn Код:
new Random = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
Reply


Messages In This Thread
Race random places - by fordawinzz - 30.10.2012, 16:37
Re: Race random places - by [HK]Ryder[AN] - 30.10.2012, 16:41
Re: Race random places - by fordawinzz - 30.10.2012, 16:43
Re: Race random places - by [HK]Ryder[AN] - 30.10.2012, 16:45
Re: Race random places - by fordawinzz - 30.10.2012, 16:48
Re: Race random places - by [HK]Ryder[AN] - 30.10.2012, 16:51
Re: Race random places - by fordawinzz - 30.10.2012, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)