[Include] GetClosestPlayer ( With Virtualworld and Distance detection )
#1

Function:
pawn Код:
GetClosestPlayer( playerid, checkvw = false, Float:range = FLOAT_INFINITY )
Example:
pawn Код:
new targetid = GetClosestPlayer( playerid, .checkvw = true, .range = 2.0 ); // This will get the closest player in a range of 2.0 meters with the save virtual world
PasteBin: http://pastebin.com/1Gt0E8ss

Instructions: Put this file in the "include" folder of your pawn compiler and after that include it in your main script after
pawn Код:
#include a_samp and #include foreach
you can include it like this:
pawn Код:
#include GCP
Foreach Include: https://sampforum.blast.hk/showthread.php?tid=92679
Reply
#2

Quote:
Originally Posted by xF4Life
Посмотреть сообщение
Useful FS, nice.
It's not an FS !

OT :
This is very simple but Many people will find it useful
Thanks for sharing !
Reply
#3

******' code.
Reply
#4

Sorry mate... i didn't knew it I have this function since the last summer from somebody else... ! I apologize..
Reply
#5

UP
Reply
#6

Quote:
Originally Posted by nGen.SoNNy
Посмотреть сообщение
Sorry mate... i didn't knew it I have this function since the last summer from somebody else... ! I apologize..
Then what's the point in releasing such an include without crediting them?
Reply
#7

What a Bump ...
Reply
#8

Quote:
Originally Posted by iFarbod
Посмотреть сообщение
What a Bump ...
So? It's a release even if it was 6 Years old i could still bump it if i needed to ask a question or somthing.
Reply
#9

I have a question about the range...

that really stupid option... this take the closest player that not meter the range... if that will be 999999 range or 15000 range the returning id will be the same.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)