Found some examples but they don't seem to work =/
Apparantly some people use HLTV msg for this?
PHP Code:
// Round start
register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
// or
register_logevent("event_RoundStart",2,"1=Round_Start")
// Round end
register_logevent("event_RoundEnd",2,"1=Round_End")
// Test func
public event_RoundStart() {
server_print("Round started!")
}
public event_RoundEnd() {
server_print("Round ended!")
}
The functions are never called..
Does anyone have a solution for this? Is the above code even correct?