Advertisement
jeehaad

Untitled

Nov 12th, 2015
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. sx_, sy_ = guiGetScreenSize ( )
  2. sx, sy = sx_ / 1280, sy_ / 720
  3.  
  4. show = false
  5.  
  6. button = guiCreateButton(sx*470, sy*395, sx*124, sy*35, "", false)
  7. guiSetAlpha ( button, 0 )
  8. guiSetVisible(button, false)
  9. txt = "Panel By JEHAd"
  10. num = 0
  11. function dx()
  12. RSX = (sy_*0.88)-num
  13. num = num + 5
  14. if num > 220 then
  15. RSX = (sy_*0.3)
  16. end
  17. dxDrawRectangle(sx*320, RSX+5, sx*450, sy*245, tocolor(0, 0, 0, 100), false)
  18. dxDrawRectangle(sx*310, RSX-5, sx*474, sy*35, tocolor(255, 0, 0, 255), false)
  19. dxDrawRectangle(sx*470, RSX+150, sx*124, sy*35, tocolor(20, 200, 20, 255), false)
  20. 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)
  21. 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)
  22. end
  23.  
  24. addEventHandler("onClientGUIClick",root,
  25. function()
  26. if ( source == button ) then
  27. show = false
  28. local teleportX, teleportY, teleportZ = -2441.09668, -617.54840, 132.56168
  29. local teleportX1, teleportY1, teleportZ1 = getElementPosition(getLocalPlayer())
  30. setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ)
  31. outputChatBox("ok")
  32. guiSetVisible(button, false)
  33. showCursor(false)
  34. setTimer(function() setElementPosition(getLocalPlayer(), teleportX1, teleportY1, teleportZ1) end,15000,1)
  35.  
  36. end
  37. end
  38. )
  39. bindKey("F1", "down",
  40. function ()
  41. if show == false then
  42. showCursor(true)
  43. show = true
  44. addEventHandler("onClientRender",root,dx)
  45. guiSetVisible(button, true)
  46. else
  47. showCursor(false)
  48. show = false
  49. removeEventHandler("onClientRender",root,dx)
  50. guiSetVisible(button, false)
  51. end
  52. end
  53. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement