I think this is how you'd do it:
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_plugin("wootsa" , "0.1" , "v3x");
register_forward(FM_TraceLine , "forward_traceline" , 1);
}
public forward_traceline(Float:v1[3] , Float:v2[3] , noMonsters , id) {
if(!is_user_alive(id))
return FMRES_IGNORED;
new hitid = get_tr(TR_pHit);
if(!is_user_alive(hitid))
return FMRES_IGNORED;
new hp = pev(hitid , pev_health);
new speed = pev(hitid , pev_speed);
// set_hudmessage( .. );
new message[101];
format(message , 100 , "HP: %d^nSpeed: %d" , hp , speed);
show_hudmessage(id , message);
return FMRES_IGNORED;
}
You can use other modules to retrieve other information about the player if you need to.
__________________