Raised This Month: $ Target: $400
 0% 

Check if it is a player (aiming)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-14-2010 , 12:53   Re: Check if it is a player (aiming)
Reply With Quote #1

PHP Code:
public BlockKnifeiEntity )
{
    new 
iPlayer peviEntity pev_owner );
    
    if ( !
IsPlayeriPlayer ) )
        return 
HAM_IGNORED;
        
    return 
is_aiming_at_entityiPlayer "player" ) ? HAM_IGNORED HAM_SUPERCEDE;
}  

bool:is_aiming_at_entityiPlayer , const szEntityClassname[] )
{
    new 
iTarget iTmp szClassname32 ];
    
    
get_user_aimingiPlayer iTarget iTmp );
    
peviTarget pev_classname szClassname charsmaxszClassname ) );
    
    return 
bool:equalszEntityClassname szClassname );

__________________
Bugsy 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