There is definitely an issue with the event.
I have tried hooking win sounds, end round event and target bombed.
Non of them work even with a delay on the function that switches players.
But if I die from the bomb, and call the exact same function from console with a command, it works!
Teh fuck am I doing wrong here!?
It obviously works when you are alive so I don't know what's going on..
I even tested the events and they work, it just does not run the change team correctly.
But how can I do this with a command then!?
Beats me I think I give up.
Any odd idea on a workaround?
Thanks.
edit: I came up with my own horrible solution to the problem, but it
actually works:
edit2: I'm an idiot, what if T kill all CTs...
PHP Code:
public newRound()
{
set_task(get_cvar_num("mp_c4timer") , "SwapTeams")
}
It is not great by any means but it beats spending hours testing like this and finding nothing.
At least I got my stuff updated to the latest version so I'm glad for that.
Also thanks for your feedback it has been great.