IsPlayerFacingPlayer
#1

How to check the player you are facing your crosshair to?

if(IsPlayerFacingPlayer(playerid, NEWPLAYER, 7.0))
Reply
#2

well not sure

Код:
new float:Angle;
GetPlayerFacingAngle(NEWPLAYER, Angle);
if(IsPlayerFacingPlayer(playerid, NEWPLAYER, Angle))

im just guessing lol :P
Reply
#3

Use this INC.
Reply
#4

Quote:
Originally Posted by Adil
Use this INC.
It detects only his head :[
Reply
#5

Sorry for doubleposting, I couldn't have editted my message.
pawn Код:
for(new player2=0; player2<MAX_PLAYERS; player2++)
{
        if(IsPlayerFacingPlayer(playerid, player2, 7.0))
        {

         }
}
I scripted it but it didn't work, I don't know why.
Reply
#6

Quote:
Originally Posted by Kartowka
Sorry for doubleposting, I couldn't have editted my message.
pawn Код:
for(new player2=0; player2<MAX_PLAYERS; player2++)
{
        if(IsPlayerFacingPlayer(playerid, player2, 7.0))
        {

        }
}
I scripted it but it didn't work, I don't know why.
BUMP, 12 hours have been passed.
Reply
#7

Quote:
Originally Posted by Kartowka
Quote:
Originally Posted by Kartowka
Sorry for doubleposting, I couldn't have editted my message.
pawn Код:
for(new player2=0; player2<MAX_PLAYERS; player2++)
{
        if(IsPlayerFacingPlayer(playerid, player2, 7.0))
        {

        }
}
I scripted it but it didn't work, I don't know why.
BUMP, 12 hours have been passed.
Please guys, it's easy..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)