Random Spawns, Need help please.
#2

pawn Code:
const MAX_POSITIONS = 3;
static Float:Positions[MAX_POSITIONS][4] =
{
    {0.0, 0.0, 0.0, 0.0},
    {0.0, 0.0, 0.0, 0.0},
    {0.0, 0.0, 0.0, 0.0}
}, bool:taken[MAX_POSITIONS];
new freePos;
for(; freePos < MAX_POSITIONS; freePos++)
    if(!taken[freePos]) break;
if(freePos == MAX_POSITIONS) return; //no free positions left
SetPlayerPos(playerid, Positions[freePos][0], Positions[freePos][1], Positions[freePos][2]);
SetPlayerFacingAngle(playerid, Positions[freePos][3]);
taken[freePos] = true;
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: 1 Guest(s)