[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


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)