Is Point right or left from player
#2

I'm probably miles off as I am on lunch at work without a samp server to test but see if that helps?

Код:
if(ang > 90 && ang < 270){ //player is facing southways
    if(pointx < X) //left in north //right in south
    if(pointx > X) //right in north //Left in South
}
else {//player is facing northways
    if(pointx < X) //left in north //right in south
    if(pointx > X) //right in north //Left in South
}
I didnt have the mind to think about the y axis but works similar i'm sure
Reply


Messages In This Thread
Is Point right or left from player - by Azazelo - 06.11.2012, 19:30
Re: Is Point right or left from player - by adsy - 07.11.2012, 11:29

Forum Jump:


Users browsing this thread: 2 Guest(s)