From b5056b71a8bef193e6a9e3918a5c5bd2ce238fb2 Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 1 Mar 2024 19:45:26 +0100 Subject: [PATCH] loading days file on mapstart instead of pluginstart --- ZombieRiot/scripting/unloze_zr.sp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ZombieRiot/scripting/unloze_zr.sp b/ZombieRiot/scripting/unloze_zr.sp index d0522e1a..cf7037b5 100644 --- a/ZombieRiot/scripting/unloze_zr.sp +++ b/ZombieRiot/scripting/unloze_zr.sp @@ -113,7 +113,7 @@ public Plugin myinfo = url = "www.unloze.com" }; -public void OnPluginStart() +public void loadDays() { char localPath[256]; BuildPath(Path_SM, localPath, sizeof(localPath), "configs/unloze_zr/daystitle.txt"); @@ -127,7 +127,10 @@ public void OnPluginStart() count++; } CloseHandle( fileHandle ); +} +public void OnPluginStart() +{ //processstring LoadTranslations("common.phrases.txt"); @@ -1059,6 +1062,7 @@ public void OnMapStart() LoadClasses(); LoadExtraSettings(); loadWeapons(); + loadDays(); } //just checking the knife when they spawn is appereantly not good enough. this is just repeating what Timer_StopProtection does.