mirror of
https://codeberg.org/spire/autoexec.git
synced 2026-06-03 18:24:06 +02:00
fix mode check in warning
This commit is contained in:
parent
7f10c0ee64
commit
b523fb4271
1 changed files with 2 additions and 2 deletions
|
|
@ -241,11 +241,11 @@ public void CheckPlayerCount(int team) {
|
|||
GetConVarString(CvarMode, gamemode, sizeof(gamemode));
|
||||
|
||||
if (!warned[team]) {
|
||||
if (strcmp(gamemode, "9v9") && playerCount != 9) {
|
||||
if (strcmp(gamemode, "9v9") == 0 && playerCount != 9) {
|
||||
warned[team] = true;
|
||||
PrintToChatAll("Warning, config is set to 9v9 but you readied up with %d players", playerCount);
|
||||
GameRules_SetProp("m_bTeamReady", 0, _ , team, true);
|
||||
} else if (strcmp(gamemode, "6v6") && playerCount != 6) {
|
||||
} else if (strcmp(gamemode, "6v6") == 0 && playerCount != 6) {
|
||||
warned[team] = true;
|
||||
GameRules_SetProp("m_bTeamReady", 0, _ , team, true);
|
||||
PrintToChatAll("Warning, config is set to 6v6 but you readied up with %d players", playerCount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue