a global variable, hook round end event set the varible true, hook round start to set it back to false and add a check for that variable in the function
what I just said in code terms:
PHP Code:
#include <amxmodx>
new bool:g_bRoundEnded = false
public plugin_init()
{
register_logevent("event_roundStart", 2, "1=Round_Start")
register_logevent("event_roundEnd", 2, "1=Round_End")
}
public event_roundEnd() g_bRoundEnded = true
public event_roundStart() g_bRoundEnded = false
public your_function()
{
if(g_bRoundEnded)
return PLUGIN_CONTINUE
// code here, will be executed if round is still playing
return PLUGIN_CONTINUE
}
__________________