@wopox3 is only for those who are not familiar with it and for x circumstances do not want to use it, the functions it performs can be recreated with the default modules to some extent if possible... of course, It is assumed that if you are running a re version, it would not be necessary, you can easily opt for the API.
putting up with both conditions would be doubling the work, I would only do it if I was bored
PHP Code:
#if !defined use_reapi
register_logevent("logevent_round_end", 2, "1=Round_End")
#else
RegisterHookChain(RG_RoundEnd, "RoundEnd_Post", .post = true)
#endif
__________________