register_statsfwd

This commit is contained in:
Lukasz Wlasinksi
2004-07-23 23:18:50 +00:00
parent 2a57fa02ca
commit afce6de801
15 changed files with 135 additions and 27 deletions

View File

@ -70,8 +70,17 @@ native custom_wpn_shot( index,wid );
native get_custom_wpnname( wId,name[],len );
/*
* Usefull forwards
* Forwards
*/
forward grenade_throw( index,greindex,wId );
enum {
CSF_DAMAGE = 0,
CSF_DEATH,
}
/* You must register client_* forwards using register_statsfwd native */
native register_statsfwd( ftype )
forward client_damage( attacker,victim,damage,wpnindex,hitplace,TA );
forward client_death( killer,victim,wpnindex,hitplace,TK );
forward grenade_throw( index,greindex,wId );

View File

@ -1,7 +1,10 @@
#include <amxmodx>
#include <csstats>
public plugin_init() {
register_plugin("Stats Test","0.1","SidLuke")
register_statsfwd( CSF_DAMAGE )
register_statsfwd( CSF_DEATH )
}
public client_damage( attacker,victim,damage,wpnindex,hitplace,TA ){