[lua]
function DeveloperMode()
if getElementData(localPlayer,"player:admin") == false then
outputChatBox("* Nie posiadasz uprawnie?.", 255, 0, 0)
return
end
if getDevelopmentMode() == false then
setDevelopmentMode ( true )
else
setDevelopmentMode ( false )
end
end
addCommandHandler("devmode", DeveloperMode)
addCommandHandler("showmode", DeveloperMode)
local sx, sy = guiGetScreenSize()
function putPlayerInPosition(timeslice)
local cx,cy,cz,ctx,cty,ctz = getCameraMatrix()
ctx,cty = ctx-cx,cty-cy
timeslice = timeslice*0.1
local tx, ty, tz = getWorldFromScreenPosition(sx / 2, sy / 2, 10)
if isChatBoxInputActive() or isConsoleActive() or isMainMenuActive () or isTransferBoxActive () then return end
if getKeyState("lctrl") then timeslice = timeslice*4 end
if getKeyState("lalt") then timeslice = timeslice*0.25 end
local mult = timeslice/math.sqrt(ctx*ctx+cty*cty)
ctx,cty = ctx*mult,cty*mult
if getKeyState("2") then abx,aby = abx+ctx,aby+cty end
if getKeyState("w") then abx,aby = abx+ctx,aby+cty end
if getKeyState("s") then abx,aby = abx-ctx,aby-cty end
if getKeyState("a") then abx,aby = abx-cty,aby+ctx end
if getKeyState("d") then abx,aby = abx+cty,aby-ctx end
if getKeyState("space") then abz = abz+timeslice end
if getKeyState("lshift&quo... |