Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function needtaxi(x, y, z)
- players = getElementsByType ("player")
- taxi = ""
- zoneName = getZoneName(x,y,z)
- for k,v in ipairs(players) do
- local accountname = ""
- if (isGuestAccount(getPlayerAccount(v)) == false) then
- accountname = getAccountName (getPlayerAccount(v))
- if isObjectInACLGroup ("user." .. accountname, aclGetGroup("taxi")) then
- if (taxi == "") then
- taxi = getPlayerName(v)
- outputChatBox( "Klient wezwal taksowke do "..zoneName, v, 255, 255, 0)
- outputChatBox( " Jedz do miejsca wzkazanego na mapie. " .. tostring ( taxi ), v, 255, 255, 0)
- else
- taxi = taxi .. ", " .. getPlayerName(v)
- end
- end
- end
- end
- end
- function needtaxi(plr)
- outputChatBox("Wezwales taksówke, czekaj na nią w miejscu!", plr)
- local x,y,z = getElementPosition( plr )
- needtaxi(x,y,z)
- end
- addCommandHandler("taxi", needtaxii)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement