Jump to content

GetClosestPlayer ( With Virtualworld and Distance detection )


(SE)SoNNy

Recommended Posts

Functie:

GetClosestPlayer( playerid, checkvw = false, Float:range = FLOAT_INFINITY )

 
Exemplu:

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
 
Instructiuni: Pune acest fisier in folderul "include" din pawno.

#include a_samp and #include foreach

poti sa-l folosesti in script astfel:

#include GCP

 
Foreach Include: http://forum.sa-mp.com/showthread.php?t=92679

Edited by SoNNy.sys
  • Upvote 1

server.php

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.