You can use pstat_score or conline to detect kills, [shameless plug]especially if you have tools.cfg.[/shameless plug]
The "3" in there is the trashhold of the distance from 0 the frag score is when the script kicks in for that player (+3 or -3 = 3 frags or 3 teamkills).
As of now, that just shows how to detect that a specific player is fragging. When it is triggered, it will spam your console until the fragger leaves (or the frags score goes to zero).
A similar, slightly more complex method can use conline to detect frags and teamkills (in case the perpetrator tries to balance the two to remain near zero).
Look at the MPL stats script for an example of how conline is used to do this.
[SELECT ALL] Code:
add2conloop [loop i (curplayers) [if (>= (absval (at (pstat_score (at (validcumlist) $i)) 1)) 3) [echo (at (validcnumlist) $i) is a killer!] []]]
As of now, that just shows how to detect that a specific player is fragging. When it is triggered, it will spam your console until the fragger leaves (or the frags score goes to zero).
A similar, slightly more complex method can use conline to detect frags and teamkills (in case the perpetrator tries to balance the two to remain near zero).
Look at the MPL stats script for an example of how conline is used to do this.