just renaming the hostname

This commit is contained in:
jenz 2024-02-24 22:00:59 +01:00
parent ab55282282
commit 72e76e4f09

View File

@ -1190,8 +1190,18 @@ public Action RetrieveWaveSettings(int wave)
return Plugin_Handled; return Plugin_Handled;
} }
int total_days = 23;
for (int i = 0; i < sizeof(g_cDaysTitles); i++)
{
if (strlen(g_cDaysTitles[i]) == 0)
{
total_days = i;
break;
}
}
char hostname[512]; char hostname[512];
Format(hostname, sizeof(hostname), "UNLOZE | Zombie Riot | Ranking | Day %i: %s", wave, g_cDaysTitles[wave - 1]); Format(hostname, sizeof(hostname), "UNLOZE | [ZRiot: Day %i/%i] %s | Ranking", wave, total_days, g_cDaysTitles[wave - 1]);
ServerCommand("hostname \"%s\"", hostname); ServerCommand("hostname \"%s\"", hostname);