View Single Post
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-09-2022 , 10:23   Re: Separate plugin only for the Roundtimer fix after change map
Reply With Quote #17

Quote:
Originally Posted by DJEarthQuake View Post
PHP Code:
#include <amxmodx>
new g_ForceRoundTimer

public plugin_init()
{
    
register_plugin("RoundTimer Fix""1.0"".sρiηX҉.")
    
g_ForceRoundTimer get_user_msgid("ShowTimer")
}

public 
client_putinserver(id)
{
    if(
is_user_connected(id))
    {
        
set_task(0.5,"@RoundTimerFix",id)
    }
}

@
RoundTimerFix(id)
{
    
emessage_begin(MSG_ONE_UNRELIABLEg_ForceRoundTimer_id);
    
emessage_end();

Github. (slightly longer version that pauses itself on maps with C4 detected)

Noticed bug sometimes still happens for example if the bomb explodes on round end event. and auto change map. but a restart fixes it.

can it be made so its extremely persistent? so in changemap it tries to refresh it or something?
Ark_Procession is offline