IsPlayerFacingPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IsPlayerFacingPlayer (
/showthread.php?tid=143632)
IsPlayerFacingPlayer -
Nakash - 23.04.2010
How to check the player you are facing your crosshair to?
if(IsPlayerFacingPlayer(playerid,
NEWPLAYER, 7.0))
Re: IsPlayerFacingPlayer -
Onyx09 - 23.04.2010
well not sure
Код:
new float:Angle;
GetPlayerFacingAngle(NEWPLAYER, Angle);
if(IsPlayerFacingPlayer(playerid, NEWPLAYER, Angle))
im just guessing lol :P
Re: IsPlayerFacingPlayer -
Adil - 23.04.2010
Use this
INC.
Re: IsPlayerFacingPlayer -
Nakash - 23.04.2010
Quote:
Originally Posted by Adil
|
It detects only his head :[
Re: IsPlayerFacingPlayer -
Nakash - 23.04.2010
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.
Re: IsPlayerFacingPlayer -
Nakash - 24.04.2010
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.
Re: IsPlayerFacingPlayer -
Nakash - 24.04.2010
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..