View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-19-2020 , 20:32   Re: help register_event
Reply With Quote #10

Quote:
Originally Posted by 1M1e View Post
still doesn't work
It's not like countdown timer!! Try this:

Code:
public TimeCounter()  {     g_counter--         new Float:iRestartTime = get_pcvar_float(g_Time_Interval) - g_counter     new Float:fSec     fSec = iRestartTime     if (g_counter >= 0) {         set_hudmessage( 255, 0, 0, 0.09, 0.0, 1, 0.0, 1.0, 0.0, 0.0, -1)         show_hudmessage( 0, "%d Sec Remaining To Disable The Respawn Mod", floatround(fSec))     }         if (0< g_counter < 11 && get_pcvar_num(g_Time_Interval) - g_counter !=0)     {         static szNum[32]         num_to_word(get_pcvar_num(g_Time_Interval) - g_counter, szNum, 31)     }     if(g_counter == get_pcvar_num(g_Time_Interval))     {         g_counter = 0     } }
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline