team balance
#8

Quote:
Originally Posted by ViruZZzZ_ChiLLL
First : You can only bump per 12 hour if nobody
has replied to your help. Please do so refer here :
http://forum.sa-mp.com/index.php?topic=67900.0

Second : Try this :
pawn Код:
new Team1, Team2; // On top

public OnPlayerSpawn(playerid)
{
 if(Team1 == 5) return ForceClassSelection(playerid); // It means that if there is 5 players in the team he will be forced to select class again
 if(Team2 == 5) return ForceClassSelection(playerid);

 if(gTeam[playerid] == BlueTeam){
 Team1 ++;}
 if(gTeam[playerid] == RedTeam){
 Team2 ++;}
 return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
 if(gTeam[playerid] == BlueTeam){
 Team1 --;}
 if(gTeam[playerid] == RedTeam){
 Team2 --;}
 return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
 if(gTeam[playerid] == BlueTeam){
 Team1 --;}
 if(gTeam[playerid] == RedTeam){
 Team2 --;}
 return 1;
}
Note : This is just an example.
I don't know either if this will work.
may be should edit OnPlayerSpawn to OnPlayerRequestSpawn?
Reply


Messages In This Thread
team balance - by oOhossamOo - 19.06.2010, 01:42
Re: team balance - by oOhossamOo - 19.06.2010, 02:54
Re: team balance - by KDlivest954 - 19.06.2010, 03:35
Re: team balance - by oOhossamOo - 19.06.2010, 04:48
Re: team balance - by oOhossamOo - 19.06.2010, 07:19
Re: team balance - by ViruZZzZ_ChiLLL - 19.06.2010, 07:35
Re: team balance - by oOhossamOo - 19.06.2010, 11:33
Re: team balance - by oOhossamOo - 20.06.2010, 17:36

Forum Jump:


Users browsing this thread: 2 Guest(s)