Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sx_, sy_ = guiGetScreenSize ( )
- sx, sy = sx_ / 1280, sy_ / 720
- show = false
- button = guiCreateButton(sx*470, sy*395, sx*124, sy*35, "", false)
- guiSetAlpha ( button, 0 )
- guiSetVisible(button, false)
- txt = "Panel By JEHAd"
- num = 0
- function dx()
- RSX = (sy_*0.88)-num
- num = num + 5
- if num > 220 then
- RSX = (sy_*0.3)
- end
- dxDrawRectangle(sx*320, RSX+5, sx*450, sy*245, tocolor(0, 0, 0, 100), false)
- dxDrawRectangle(sx*310, RSX-5, sx*474, sy*35, tocolor(255, 0, 0, 255), false)
- dxDrawRectangle(sx*470, RSX+150, sx*124, sy*35, tocolor(20, 200, 20, 255), false)
- dxDrawText ( txt, sx_*0.34, RSX, (sx*660), 0, tocolor ( 255, 255, 255, 255 ), 1.0, "default-bold", "center", "top", false, false, true, true, false)
- dxDrawText ( "Click here to move by jehad !", sx*940, RSX+155, sx*124, sy*35, tocolor ( 255, 255, 255, 255 ), 1.0, "default-bold", "center", "top", false, false, true, true, false)
- end
- addEventHandler("onClientGUIClick",root,
- function()
- if ( source == button ) then
- show = false
- local teleportX, teleportY, teleportZ = -2441.09668, -617.54840, 132.56168
- local teleportX1, teleportY1, teleportZ1 = getElementPosition(getLocalPlayer())
- setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ)
- outputChatBox("ok")
- guiSetVisible(button, false)
- showCursor(false)
- setTimer(function() setElementPosition(getLocalPlayer(), teleportX1, teleportY1, teleportZ1) end,15000,1)
- end
- end
- )
- bindKey("F1", "down",
- function ()
- if show == false then
- showCursor(true)
- show = true
- addEventHandler("onClientRender",root,dx)
- guiSetVisible(button, true)
- else
- showCursor(false)
- show = false
- removeEventHandler("onClientRender",root,dx)
- guiSetVisible(button, false)
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement