View Single Post
Kotoamatsukami
Member
Join Date: Jan 2017
Location: Malaysia
Old 03-02-2017 , 03:50   Re: Detect if player1 and player2 is aiming each other?
Reply With Quote #8

Quote:
Originally Posted by Craxor View Post
if( get_user_team( id1 ) != get_user_team( id2 ) )
Thank you, sir.
I know how to distinguish the stance by using the cs_get_user_team native.
What I am trying to explain is actually how I can properly/exactly catch the index of the enemy( as I don't have a specific index( id2 ) for the enemy in my function...), is it simply by making the new 'id2'?
PHP Code:
new id2Ent], body
get_user_aiming
id2Ent], body 
Will these lines will automatically store the enemy's index into 'id2' ?
Sorry for any inconvenient...

Last edited by Kotoamatsukami; 03-02-2017 at 04:26.
Kotoamatsukami is offline