Hey, I've got this code
PHP Code:
public TraceLine(Float:vecStart[3], Float:vecEnd[3], ignoreM, id, trace)
{
if( !is_user_connected(id) )
{
return;
}
new trafienie = get_tr2(trace, TR_iHitgroup);
if(trafienie == HIT_HEAD)
{
g_bHeadShot[id] = true;
client_print(id, print_chat, "Strzal w Glowe");
}
}
but it does client_print if I AIM on the head of enemy, not when I HIT him.
How can I do that it registers only when I hit someone in the head?
__________________