mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Add a centerprint message when joining a team that is full
This commit is contained in:
parent
418985f90b
commit
8fb3856ea6
1 changed files with 5 additions and 3 deletions
|
@ -11565,13 +11565,15 @@ qboolean Player::CheckCanSwitchTeam(teamtype_t team)
|
|||
}
|
||||
|
||||
if (pNewTeam->m_players.NumObjects() > numTeamPlayers) {
|
||||
const char* message = gi.LV_ConvertString("That team has enough players. Choose the team that has the lowest number of players.");
|
||||
|
||||
gi.SendServerCommand(
|
||||
edict - g_entities,
|
||||
"print \"" HUD_MESSAGE_WHITE "%s\n\"",
|
||||
gi.LV_ConvertString(
|
||||
"That team has enough players. Choose the team that has the lowest number of players."
|
||||
)
|
||||
gi.LV_ConvertString(message)
|
||||
);
|
||||
|
||||
gi.centerprintf(edict, message);
|
||||
return qfalse;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue