SA-MP Forums Archive
I need help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: I need help! (/showthread.php?tid=294454)



GetClosestPoint - Lazoking - 01.11.2011

I am looking for a function which takes Closest position.


Re: I need help! - RichyB - 01.11.2011

Closest point of where?
Do you mean if for example, there are 4 locations and you get the players position and it gets whether the player is closer to Location 1, or 2, 3, or 4? For example?
Umm do you have Xfire or add joshjbosh@hotmail.com on MSN and I can help.
Just describe to me how you would use it.


Re: I need help! - CJ101 - 01.11.2011

If im reading right, your trying to get the nearest points of where a player is? Do it like this.

Код:
New Float:X,Float:Y,Float:z;
GetPlayerPos(playerid,X,Y,Z);



Re: I need help! - UndergroundPlaya - 01.11.2011

Like what are you tring to make?


Re: I need help! - Lazoking - 02.11.2011

Quote:
Originally Posted by cj101
Посмотреть сообщение
If im reading right, your trying to get the nearest points of where a player is? Do it like this.

Код:
New Float:X,Float:Y,Float:z;
GetPlayerPos(playerid,X,Y,Z);
Yeah I mean to get the nearest points of where a player is.

GetPlayerPos isn't


Re: I need help! - TheLazySloth - 03.11.2011

GetPlayerDistanceFromPoint(playerid, Float:X, Float:Y, Float:Z);


Re: I need help! - Lazoking - 03.11.2011

and how do I find the nearest position?