14.04.2014, 08:03
Function:
Example:
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
you can include it like this:
Foreach Include: https://sampforum.blast.hk/showthread.php?tid=92679
pawn Код:
GetClosestPlayer( playerid, checkvw = false, Float:range = FLOAT_INFINITY )
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
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
pawn Код:
#include GCP