diff --git a/ZombieRiot/scripting/unloze_zr.sp b/ZombieRiot/scripting/unloze_zr.sp index 3b793da1..1bf556f8 100644 --- a/ZombieRiot/scripting/unloze_zr.sp +++ b/ZombieRiot/scripting/unloze_zr.sp @@ -292,7 +292,7 @@ public Action ApplySettings(Event event, const char[] name, bool dontBroadcast) if (l_iWeapon != -1 && i != 2) { RemovePlayerItem(client, l_iWeapon); - } + } } } @@ -1190,8 +1190,18 @@ public Action RetrieveWaveSettings(int wave) 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]; - 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);