Both codes seems ok, you may have badly named the event callback (public function name).
Anyway, it's better to wait for new round to reset values when you catch the reset message, restart can be set to 60 seconds for example, or you can get multiple message before the round is actually restarted.
PHP Code:
#include <amxmodx>
new bool:g_bIsRestarting
public plugin_init()
{
register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
register_event("TextMsg", "Event_TextMsg_Restart", "a", "2&#Game_C", "2&#Game_w")
}
public Event_HLTV_New_Round()
{
if( g_bIsRestarting )
{
g_bIsRestarting = false
// Reset your values here
}
}
public Event_TextMsg_Restart()
{
g_bIsRestarting = true
}
__________________