Raised This Month: $ Target: $400
 0% 

Hit/Knife in back/rear ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 06-21-2014 , 17:06   Re: Hit/Knife in back/rear ?
Reply With Quote #6

PHP Code:
public OnTraceAttack(iVictimiAttackerFloat:flDamageFloat:vecDirection[3], iTrHandlebitsDamageType)
{
    if(
bitsDamageType == (DMG_BULLET|DMG_NEVERGIB// specific knife damage mask
    
&& is_user_alive(iAttacker// some dmgs can be done while user is dead, so you are checking if attacker it's player also
    
&& get_user_weapon(iAttacker) == CSW_KNIFE
    
&& flDamage == 192.0)
    {
        
client_print(0print_chat"Hey! I've attacked you from behind 6969")
    }

__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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 21:12.


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