Quote:
Originally Posted by 1M1e
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
}
}
__________________