20.10.2009, 03:04
Код:
//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; }