2004-06-30 17:01:07 +04:00
|
|
|
#include <amxmodx>
|
2004-07-24 03:18:50 +04:00
|
|
|
#include <csstats>
|
2004-06-30 17:01:07 +04:00
|
|
|
|
|
|
|
public plugin_init() {
|
|
|
|
register_plugin("Stats Test","0.1","SidLuke")
|
2004-07-24 03:18:50 +04:00
|
|
|
register_statsfwd( CSF_DAMAGE )
|
|
|
|
register_statsfwd( CSF_DEATH )
|
2004-06-30 17:01:07 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
public client_damage( attacker,victim,damage,wpnindex,hitplace,TA ){
|
|
|
|
client_print(0 /*attacker*/,print_console,"DAMAGE: att:%d vic:%d dmg:%d wpn:%d aim:%d TA:%d",
|
|
|
|
attacker,victim,damage,wpnindex,hitplace,TA)
|
|
|
|
return PLUGIN_CONTINUE
|
|
|
|
}
|
|
|
|
|
|
|
|
public client_death( killer,victim,wpnindex,hitplace,TK ){
|
|
|
|
client_print(0 /*killer*/,print_console,"DEATH: att:%d vic:%d wpn:%d aim:%d TK:%d",
|
|
|
|
killer,victim,wpnindex,hitplace,TK)
|
|
|
|
return PLUGIN_CONTINUE
|
|
|
|
}
|