I can't recollect but I think round start and round end logevents are sometimes called two times in a row, sending two groups of infos... I'm not sure, but I think it depends on team score changes...
Anyway I didn't want to get so much into that problem so I added some code like this
Code:
register_logevent("roundEnd", 2, "1=Round_End")
in plugin_init
Code:
public roundEnd()
{
if (g_Repeat == 1)
return PLUGIN_CONTINUE
//blablah what you wanna do in function
g_Repeat = 1
set_task(4.0, "delRepeatFlag")
return PLUGIN_CONTINUE
}
public delRepeatFlag()
g_Repeat = 0
I know... Crude, yet effective!
__________________