Quote:
Originally Posted by OciXCrom
Simply get both players' aiming entity and see if they are equal.
PHP Code:
new iEnt[2], iBody get_user_aiming(id, iEnt[0], iBody) get_user_aiming(id2, iEnt[1], iBody)
if(is_user_connected(iEnt[0]) && is_user_connected(iEnt[1]) && iEnt[0] == iEnt[1]) { // both players are aiming at each other }
|
Pardon me...
But, isn't your code will only operate if both 'id' and 'id2' are aiming at the same entity( not each other )?
For instant, I thought PRoSToTeM@'s lines should work if they are aiming each other?