Loops
#2

Okay, I got this for now.

pawn Код:
new Float:RandomSpawn[][4] =
{
    {2193.1692,-1143.9407,1029.7969,180.0461},
    {2221.2100,-1148.9974,1025.7969,3.0111}
};
pawn Код:
COMMAND:joinbase(playerid, params[])
{
    new rand = random(sizeof(RandomSpawn));
    SetPlayerInterior(playerid, 15);
    SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
    SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
    return 1;
}
Now it is random, but does anyone has a code like, it will balance the team, by that I mean it will join the team with lowest amount of players?
Reply


Messages In This Thread
Loops - by xir - 03.04.2011, 14:31
Re: Loops - by xir - 03.04.2011, 15:21
Re: Loops - by admantis - 03.04.2011, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)