Posts: 1,419
Threads: 264
Joined: Jan 2009
Reputation:
0
27.01.2011, 19:54
(
Последний раз редактировалось bartje01; 27.01.2011 в 20:59.
)
Hey guys. How to use teambalance with gTeam?
I /searched already.
Can't find anything that can help me
/emberrased.
Posts: 1,419
Threads: 264
Joined: Jan 2009
Reputation:
0
Anyone?
EDIT:
Ow shit. I just bumped this to fast. I thought there was like a day passed again.
Sorry guys. I'm not sure where my mind is lately
Larsey123IsMe
Unregistered
pawn Код:
new TeamPlayers[ <Amount of teams here> ];
public OnPlayerRequestSpawn(playerid)
{
for(new teams; teams < [Team Amount]; teams++)
{
if(teams == GetPlayerTeam(playerid)) continue; //Or gTeam[playerid], or w/e you use.
if(TeamPlayers[Player Team Variable] > TeamPlayers[teams] + 3)
{
SendClientMessage(playerid, COLOR_RED, "You can't join this team as it would unbalance the game!");
return 0;
}
}
}
//By Hiddos
Posts: 301
Threads: 11
Joined: Jan 2011
Reputation:
0
show us your line number 31