From 72e76e4f09c7be2609f10ea11ad7e92646f0f341 Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 24 Feb 2024 22:00:59 +0100 Subject: [PATCH] just renaming the hostname --- ZombieRiot/scripting/unloze_zr.sp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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);