In class and nothing better to do. BTW this is the wrong forum...
This just tracks heath damage done. you might need 'eventscripts_noisy 1' in your autoexec.cfg so that player_hurt.cfg will fire.
server.cfg
Code:
es_xsetinfo dmg_health 0
es_keygroupcreate damage
player_connect.cfg
Code:
es_keycreate damage event_var(userid)
player_disconnect.cfg
Code:
es_keydelete damage event_var(userid)
player_spawn.cfg
Code:
es_keydelete damage event_var(userid)
es_keycreate damage event_var(userid)
player_hurt.cfg
Code:
es_keygetvalue dmg_health damage event_var(attacker) event_var(userid)
es_math dmg_health + event_var(dmg_health)
es_keysetvalue damage event_var(attacker) event_var(userid) server_var(dmg_health)
player_death.cfg
Code:
es_keygetvalue dmg_health damage event_var(attacker) event_var(userid)
es_setinfo dmg_weapon event_var(es_attackerweapon)
//change the "weapon_" to "with "
es_string dmg_weapon replace weapon_ "with "
es ma_msay 5 event_var(es_username) event_var(es_attackername) killed you server_var(dmg_weapon), \nhe still has event_var(es_attackerhealth)HP and event_var(es_attackerarmor)AP \nYou did server_var(dmg_health) damage to him
__________________