Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getClosestPlayerIdUnit() {
- dist := 4
- p := getStreamedInPlayersInfo()
- if(!p)
- return -1
- lpos := getCoordinates()
- if(!lpos)
- return -1
- id := -1
- For i, o in p
- {
- 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")
- {
- t:=getDist(lpos,o.POS)
- if(t<dist)
- {
- dist := t
- id := i
- }
- }
- }
- return id
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement