03.04.2011, 15:21
Okay, I got this for now.
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?
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;
}