Raised This Month: $ Target: $400
 0% 

Check if it is a player (aiming)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 11-14-2010 , 11:12   Re: Check if it is a player (aiming)
Reply With Quote #1

Wow, works perfect. Can you show me an example with that please? So that I can check also other entities easily.

PHP Code:
stock bool:is_aiming_at_player(index)
{
    new 
targettempclassname[32];
    
    
get_user_aiming(indextargettemp);
    
    
pev(targetpev_classnameclassname31);
    
    if ( 
equal(classname"player") ) 
        return 
true;
        
    return 
false;

bibu is offline
Reply



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 11:28.


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