SA-MP Forums Archive
[Include] Get Nearest - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Get Nearest (/showthread.php?tid=321575)

Pages: 1 2


Re: Get Nearest - T0pAz - 28.02.2012

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
Simple make use of the GetPlayerPos' return value:
pawn Код:
if(GetPlayerPos(i, ox, oy, oz) && i != playerid) {
    // Player is connected, do stuff..
}
I will make a test and see if it's efficient or not.


Re: Get Nearest - wups - 28.02.2012

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
I will make a test and see if it's efficient or not.
I don't understand what's to test here? You just use one function less.


Re: Get Nearest - T0pAz - 28.02.2012

Quote:
Originally Posted by wups
Посмотреть сообщение
I don't understand what's to test here? You just use one function less.
I still need to test it for bugs.