diff --git a/src/zr/playerclasses/healthregen.inc b/src/zr/playerclasses/healthregen.inc index 2408af1..40b8b86 100644 --- a/src/zr/playerclasses/healthregen.inc +++ b/src/zr/playerclasses/healthregen.inc @@ -38,13 +38,10 @@ ClassHealthRegenInitialize(client, Float:interval, amount, max) ClassHealthRegenStart(client, Float:interval) { - // Kill the timer if it exist. - if (tHealthRegen[client] != INVALID_HANDLE) - { - KillTimer(tHealthRegen[client]); - tHealthRegen[client] = INVALID_HANDLE; - } + // Stop timer if it already exist. + ClassHealthRegenStop(client); + // Create new timer. tHealthRegen[client] = CreateTimer(interval, ClassHealthRegenTimer, client, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE); } diff --git a/src/zr/volfeatures/volfeatures.inc b/src/zr/volfeatures/volfeatures.inc index c75bb41..437b02a 100644 --- a/src/zr/volfeatures/volfeatures.inc +++ b/src/zr/volfeatures/volfeatures.inc @@ -140,12 +140,12 @@ new Float:VolPlayerCountDown[MAXPLAYERS + 1][ZR_VOLUMES_MAX]; * * Note: Some features may have its own timer for actions on players. */ -new Handle:hVolUpdateTimer; +new Handle:hVolUpdateTimer = INVALID_HANDLE; /** * The handle for a timer that do count down on trigger delays. */ -new Handle:hVolTriggerTimer; +new Handle:hVolTriggerTimer = INVALID_HANDLE; /** * Cached interval value for trigger timer.