Hallo!
I'm using "TK Manager" by Stevo.TVR. It's working perfect in my CS GO server.
BUT, players can gain points for team kills, but for team wounds they don't. It shound count for every 10 (in my server) team wounds 1 point.
That's the error log:
PHP Code:
L 11/16/2016 - 18:45:19: SourceMod error session started
L 11/16/2016 - 18:45:19: Info (map "de_inferno") (file "errors_20161116.log")
L 11/16/2016 - 18:45:19: [SM] Exception reported: Invalid hook callback specified for game event "player_hurt"
L 11/16/2016 - 18:45:19: [SM] Blaming: tkmanager.smx
L 11/16/2016 - 18:45:19: [SM] Call stack trace:
L 11/16/2016 - 18:45:19: [SM] [0] UnhookEvent
L 11/16/2016 - 18:45:19: [SM] [1] Line 155, /home/forums/content/files/4/2/7/5/9/33356.attach::OnConVarChanged
L 11/16/2016 - 18:45:28: Error log file session closed.
Cvar: sm_tk_numtw = CreateConVar("sm_tk_numtw", "10", "Number of team wounds to add 1 TK point (0 to disable team wound detection)", _, true, 0.0);
And that's the problem line, i think:
PHP Code:
public OnConVarChanged(Handle:convar, const String:oldValue[], const String:newValue[])
{
if(convar == sm_tk_numtw)
{
new oldVal = StringToInt(oldValue), newVal = StringToInt(newValue);
if(oldVal <= 0 && newVal > 0)
{
HookEvent("player_hurt", Event_PlayerHurt);
}
else if(newVal <= 0 && oldVal > 0)
{
UnhookEvent("player_hurt", Event_PlayerHurt);
}
}
}
The thing is that i don't know how to fix it, i'm not a scripter, i can just read and understand them.
Thank you already!