Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getClosestPlayerIdUnit() {
  2.     dist := 4
  3.     p := getStreamedInPlayersInfo()
  4.     if(!p)
  5.         return -1
  6.     lpos := getCoordinates()
  7.     if(!lpos)
  8.         return -1
  9.     id := -1
  10.     For i, o in p
  11.     {
  12. if (getTargetPlayerSkinIdById(i)!="76") and (getTargetPlayerSkinIdById(i)!="265") and (getTargetPlayerSkinIdById(i)!="266") and (getTargetPlayerSkinIdById(i)!="267") and (getTargetPlayerSkinIdById(i)!="280") and (getTargetPlayerSkinIdById(i)!="281") and (getTargetPlayerSkinIdById(i)!="282") and (getTargetPlayerSkinIdById(i)!="283") and (getTargetPlayerSkinIdById(i)!="284") and (getTargetPlayerSkinIdById(i)!="285") and (getTargetPlayerSkinIdById(i)!="288") and (getTargetPlayerSkinIdById(i)!="306") and (getTargetPlayerSkinIdById(i)!="307") and (getTargetPlayerSkinIdById(i)!="309") and (getTargetPlayerSkinIdById(i)!="141") and (getTargetPlayerSkinIdById(i)!="163") and (getTargetPlayerSkinIdById(i)!="164") and (getTargetPlayerSkinIdById(i)!="165") and (getTargetPlayerSkinIdById(i)!="166") and (getTargetPlayerSkinIdById(i)!="286")
  13.        {
  14.         t:=getDist(lpos,o.POS)
  15.         if(t<dist)
  16.         {
  17.             dist := t
  18.             id := i
  19.         }
  20.     }
  21. }
  22.     return id
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement