local Sx={}
Sx.timer=nil
addCommandHandler("taxi", function(plr,cmd)
if isTimer(Sx.timer) then
outputChatBox("* Wezwania taxi mo?emy wysy?a? co 2 minuty!",plr, 255, 0, 0)
return
end
outputChatBox("* Wezwa?e?(a?) taxi, st?j w miejscu i czekaj.", plr,244,219,8)
setElementData(plr,"msg",true)
Sx.timer=setTimer(setElementData, 120000 , 1, plr, "msg", false)
for i,v in ipairs(getElementsByType("player")) do
if getElementData(v,"player:duty") ~= "TSA" then return end
local x,y,z=getElementPosition(plr)
local zone1=getZoneName(x,y,z)
local zone2=getZoneName(x,y,z,true)
outputChatBox("* Gracz "..getPlayerName(plr).." potrzebuje taxi!. Znajduj? si? na ulicy "..zone1.." w "..zone2.."", v, 60,255,0)
return
end
end)