register_statsfwd
This commit is contained in:
@ -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 );
|
||||
|
@ -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 ){
|
||||
|
Reference in New Issue
Block a user