diff --git a/SpamNotification/scripting/SpamNotification.sp b/SpamNotification/scripting/SpamNotification.sp index bf965c80..f01dfe67 100644 --- a/SpamNotification/scripting/SpamNotification.sp +++ b/SpamNotification/scripting/SpamNotification.sp @@ -36,6 +36,7 @@ public void OnPluginStart() g_cMessagePosition.AddChangeHook(ConVarChange); g_cMessageColor.AddChangeHook(ConVarChange); g_cMessageCooldown.AddChangeHook(ConVarChange); + g_cMessageText.AddChangeHook(ConVarChange); MessageSync = CreateHudSynchronizer(); @@ -68,9 +69,6 @@ public void GetConVars() ColorStringToArray(ColorValue, MessageColor); - char MessageValue[512]; - g_cMessageText.GetString(MessageValue, sizeof(MessageValue)); - if (MessageTimer != INVALID_HANDLE && CloseHandle(MessageTimer)) MessageTimer = INVALID_HANDLE;