07.11.2012, 11:29
I'm probably miles off as I am on lunch at work without a samp server to test but see if that helps?
I didnt have the mind to think about the y axis but works similar i'm sure
Код:
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 }