Raised This Month: $ Target: $400
 0% 

Player attacked from behind?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 08-16-2012 , 13:25   Re: Player attacked from behind?
Reply With Quote #6

PHP Code:
            new Float:AngleA[3], Float:AngleV[3]
            
            
entity_get_vector(attackerEV_VEC_v_angleAngleA)
            
entity_get_vector(victimEV_VEC_v_angleAngleV)
            new 
a1a2
            a1 
floatround(AngleA[1])
            
a2 floatround(AngleV[1])

            new 
angle a2 a1
            
            
if (((angle 70) && (angle > -70)) || ((angle 310 && angle 360)) || ((angle < -310 && angle > -360)))
            {
                
CODE HERE
            

What about now?

Last edited by Gadzislaw007; 08-16-2012 at 13:45.
Gadzislaw007 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 05:49.


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