Raised This Month: $ Target: $400
 0% 

Traceline problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bcKq
Member
Join Date: Dec 2012
Location: Tczew, Poland
Old 11-07-2013 , 11:58   Traceline problem
Reply With Quote #1

Hey, I've got this code
PHP Code:
public TraceLine(Float:vecStart[3], Float:vecEnd[3], ignoreMidtrace)
{
    if( !
is_user_connected(id) )
    {
        return;
    }
    
    new 
trafienie get_tr2(traceTR_iHitgroup);    
    if(
trafienie == HIT_HEAD)
    {
        
g_bHeadShot[id] = true;
        
client_print(idprint_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?
__________________
This is my signature.
bcKq is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode