Making a 2Teams (Variables) Balancer
#9

Код:
//top
new team_count_A;
new team_count_B;

//OnPlayerRequestSpawn
if ( team_count_A > team_count_B )
{
  //deny team A and set to team B
}
else if ( team_count_B > team_count_A )
{
  //deny team B and set to team A
}
else
{
  //set them to the one they picked
}

//OnPlayerSpawn

If(gTeam=TEAM_COP)
{
//add the value "1" to the variable new team_count_A;
}
else if(gTeam=TEAM_PRIS)
{
//add the value "1" to the variable new team_count_B;
}

//OnPlayerDisconnect

If(gTeam=TEAM_COP)
{
//subtractthe value "1" to the variable new team_count_A;
}
else if(gTeam=TEAM_PRIS)
{
//subtract the value "1" to the variable new team_count_B;
}
Reply


Messages In This Thread
Making a 2Teams (Variables) Balancer - by aspire5630 - 18.10.2009, 22:14
Re: Making a 2Teams (Variables) Balancer - by Donny_k - 19.10.2009, 02:31
Re: Making a 2Teams (Variables) Balancer - by aspire5630 - 19.10.2009, 14:50
Re: Making a 2Teams (Variables) Balancer - by aspire5630 - 19.10.2009, 21:10
Re: Making a 2Teams (Variables) Balancer - by saiberfun - 19.10.2009, 21:16
Re: Making a 2Teams (Variables) Balancer - by kman - 19.10.2009, 21:17
Re: Making a 2Teams (Variables) Balancer - by aspire5630 - 19.10.2009, 21:24
Re: Making a 2Teams (Variables) Balancer - by saiberfun - 19.10.2009, 22:20
Re: Making a 2Teams (Variables) Balancer - by Enzo_Ferrari_V12 - 20.10.2009, 03:04
Re: Making a 2Teams (Variables) Balancer - by saiberfun - 20.10.2009, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)