I've used Crimson Wizard's solution and it works great. Thank you all for your help 
I've created the function through Events in room's settings and filled it just as you've instructed in that other topic.

Quote from: Khris on Wed 20/07/2016 13:40:12
Questor, since you tried the method suggested by me, how did you add room_RepExec()? Because it has to be linked in the room's events or it won't get called.
I've created the function through Events in room's settings and filled it just as you've instructed in that other topic.