Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. function needtaxi(x, y, z)
  2. players = getElementsByType ("player")
  3. taxi = ""
  4. zoneName = getZoneName(x,y,z)
  5. for k,v in ipairs(players) do
  6. local accountname = ""
  7. if (isGuestAccount(getPlayerAccount(v)) == false) then
  8. accountname = getAccountName (getPlayerAccount(v))
  9.  
  10. if isObjectInACLGroup ("user." .. accountname, aclGetGroup("taxi")) then
  11. if (taxi == "") then
  12. taxi = getPlayerName(v)
  13. outputChatBox( "Klient wezwal taksowke do "..zoneName, v, 255, 255, 0)
  14. outputChatBox( " Jedz do miejsca wzkazanego na mapie. " .. tostring ( taxi ), v, 255, 255, 0)
  15. else
  16. taxi = taxi .. ", " .. getPlayerName(v)
  17. end
  18. end
  19. end
  20. end
  21. end
  22.  
  23. function needtaxi(plr)
  24. outputChatBox("Wezwales taksówke, czekaj na nią w miejscu!", plr)
  25. local x,y,z = getElementPosition( plr )
  26. needtaxi(x,y,z)
  27.  
  28. end
  29. addCommandHandler("taxi", needtaxii)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement