} else if(lockteams) {
sprint( self, "^7The game has already begun, you must wait until the next map to be able to join a team.\n");
} else if( argv(1) == "red" ) {
- ClientKill_TeamChange(COLOR_TEAM1);
+ if(self.team != COLOR_TEAM1 || self.deadflag != DEAD_NO)
+ ClientKill_TeamChange(COLOR_TEAM1);
+ else
+ sprint( self, "^7You already are on that team.\n");
} else if( argv(1) == "blue" ) {
- ClientKill_TeamChange(COLOR_TEAM2);
+ if(self.team != COLOR_TEAM2 || self.deadflag != DEAD_NO)
+ ClientKill_TeamChange(COLOR_TEAM2);
+ else
+ sprint( self, "^7You already are on that team.\n");
} else if( argv(1) == "yellow" ) {
- ClientKill_TeamChange(COLOR_TEAM3);
+ if(self.team != COLOR_TEAM3 || self.deadflag != DEAD_NO)
+ ClientKill_TeamChange(COLOR_TEAM3);
+ else
+ sprint( self, "^7You already are on that team.\n");
} else if( argv(1) == "pink" ) {
- ClientKill_TeamChange(COLOR_TEAM4);
+ if(self.team != COLOR_TEAM4 || self.deadflag != DEAD_NO)
+ ClientKill_TeamChange(COLOR_TEAM4);
+ else
+ sprint( self, "^7You already are on that team.\n");
} else if( argv(1) == "auto" ) {
ClientKill_TeamChange(-1);
} else {