Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- kliens
- local sx = guiGetScreenSize(getLocalPlayer())
- local show = false
- local x,y = guiGetScreenSize()
- local ddx, ddy = guiGetScreenSize()
- function inbox(ddx, ddy, bx, by)
- if isCursorShowing() then
- local mx, my = getCursorPosition()
- mx, my = mx*x, my*y
- bx, by = ddx+bx, ddy+by
- return ddx <= mx and bx >= mx and ddy <= my and by >= my
- end
- end
- function dobozbaKattint(dX, dY, dSz, dM, eX, eY)
- if(eX >= dX and eX <= dX+dSz and eY >= dY and eY <= dY+dM) then
- return true
- else
- return false
- end
- end
- exports["om_blur"]:removeBlur("score")
- function render()
- if show then
- dxDrawRectangle(sx/2-445,sx/2-705,900,510,tocolor(0,0,0,75))
- dxDrawRectangle(sx/2-445,sx/2-180,900,85,tocolor(0,0,0,75))
- dxDrawRectangle(sx/2-450,sx/2-700,900,500,tocolor(0,0,0,75))
- dxDrawRectangle(sx/2-450,sx/2-175,900,75,tocolor(0,0,0,75))
- dxDrawRectangle(sx/2-400,sx/2-162.5,150,50,tocolor(0,0,0,75))
- dxDrawRectangle(sx/2-200,sx/2-162.5,150,50,tocolor(0,0,0,75))
- dxDrawRectangle(sx/2,sx/2-162.5,150,50,tocolor(0,0,0,75))
- dxDrawRectangle(sx/2+200,sx/2-162.5,150,50,tocolor(0,0,0,75))
- dxDrawText("Adatok",sx/2-355,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Adminok",sx/2-160,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Vagyon",sx/2+40,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Beállítások",sx/2+225,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawImage(sx/2-450,sx/2-780,100,100,"files/images/logo/logo.png")
- dxDrawText("once",sx/2-370,sx/2-760,154,154,tocolor(255,255,255,255),2.5,"default-bold")
- dxDrawText("MTA",sx/2-295,sx/2-760,154,154,tocolor(230,67,67,255),2.5,"default-bold")
- if inbox(sx/2-400,sx/2-162.5,150,50) then
- dxDrawRectangle(sx/2-395,sx/2-157.5,140,40,tocolor(230,67,67,150))
- dxDrawText("Adatok",sx/2-355,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- end
- if inbox(sx/2-200,sx/2-162.5,150,50) then
- dxDrawRectangle(sx/2-195,sx/2-157.5,140,40,tocolor(230,67,67,150))
- dxDrawText("Adminok",sx/2-160,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- end
- if inbox(sx/2,sx/2-162.5,150,50) then
- dxDrawRectangle(sx/2+5,sx/2-157.5,140,40,tocolor(230,67,67,150))
- dxDrawText("Vagyon",sx/2+40,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- end
- if inbox(sx/2+200,sx/2-162.5,150,50) then
- dxDrawRectangle(sx/2+205,sx/2-157.5,140,40,tocolor(230,67,67,150))
- dxDrawText("Beállítások",sx/2+225,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- end
- end
- if show and oldal == 0 then
- end
- if show and oldal == 1 then
- dxDrawRectangle(sx/2-395,sx/2-157.5,140,40,tocolor(230,67,67,255))
- dxDrawText("Adatok",sx/2-355,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawRectangle(sx/2+251,sx/2-581,138,266,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2+251,sx/2-610,138,25,tocolor(0,0,0,150))
- dxDrawImage( sx/2+256,sx/2-576,128,256, "files/images/skins/na.jpg")
- dxDrawImage( sx/2+256,sx/2-576,128,256, "files/images/skins/" .. getElementModel( localPlayer ) .. ".jpg")
- dxDrawText("Skined:",sx/2+286,sx/2-610,128,256,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawRectangle(sx/2-400,sx/2-610,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-580,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-550,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-520,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-490,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-460,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-430,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-400,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-370,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-340,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-310,250,25,tocolor(0,0,0,150))
- dxDrawRectangle(sx/2-400,sx/2-280,250,25,tocolor(0,0,0,150))
- dxDrawText("Név:",sx/2-390,sx/2-610,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Kor:",sx/2-390,sx/2-580,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Skin ID:",sx/2-390,sx/2-550,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Account ID:",sx/2-390,sx/2-520,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Prémium egyenleg:",sx/2-390,sx/2-490,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Háziállat neve:",sx/2-390,sx/2-460,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Pénz:",sx/2-390,sx/2-430,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Banki pénz:",sx/2-390,sx/2-400,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Munka:",sx/2-390,sx/2-370,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Játszott idő:",sx/2-390,sx/2-340,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Admin szint:",sx/2-390,sx/2-310,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawText("Admin név:",sx/2-390,sx/2-280,250,25,tocolor(255,255,255,255),1.5,"default-bold")
- end
- if show and oldal == 2 then
- dxDrawRectangle(sx/2-195,sx/2-157.5,140,40,tocolor(230,67,67,255))
- dxDrawText("Adminok",sx/2-160,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- dxDrawRectangle(sx/2-400,sx/2-610,250,25,tocolor(0,0,0,150))
- end
- if show and oldal == 3 then
- dxDrawRectangle(sx/2+5,sx/2-157.5,140,40,tocolor(230,67,67,255))
- dxDrawText("Vagyon",sx/2+40,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- end
- if show and oldal == 4 then
- dxDrawRectangle(sx/2+205,sx/2-157.5,140,40,tocolor(230,67,67,255))
- dxDrawText("Beállítások",sx/2+225,sx/2-150,150,50,tocolor(255,255,255,255),1.5,"default-bold")
- end
- end
- addEventHandler("onClientRender",root,render)
- function dobozKatt(gomb,statusz,xx,yy)
- if show then
- if(gomb == "left" and statusz == "down") then
- if(dobozbaKattint(sx/2-400,sx/2-162.5,150,50, xx, yy)) then
- playSound("files/sounds/click.mp3")
- oldal = 1
- end
- if(dobozbaKattint(sx/2-200,sx/2-162.5,150,50, xx, yy)) then
- playSound("files/sounds/click.mp3")
- oldal = 2
- end
- if(dobozbaKattint(sx/2,sx/2-162.5,150,50, xx, yy)) then
- playSound("files/sounds/click.mp3")
- oldal = 3
- end
- if(dobozbaKattint(sx/2+200,sx/2-162.5,150,50, xx, yy)) then
- playSound("files/sounds/click.mp3")
- oldal = 4
- end
- end
- end
- end
- local time = 0
- function showdash()
- if getTickCount()-time <= 3000 and not show then
- outputChatBox("#E64343[Dashboard] #ffffffKérlek várj #E643433 #ffffffmásodpercet!",255,0,0,true)
- return
- else
- openedTime = getTickCount()
- end
- if show then
- exports["om_blur"]:removeBlur("score")
- showChat(true)
- showCursor(false)
- removeEventHandler("onClientClick",root,dobozKatt)
- show = false
- playSound("files/sounds/switch.mp3")
- oldal = 0
- else
- showChat(false)
- exports["om_blur"]:createBlur("score", 20)
- showCursor(true)
- addEventHandler("onClientClick",root,dobozKatt)
- show = true
- playSound("files/sounds/switch.mp3")
- oldal = 2
- end
- end
- bindKey("f6","down",showdash)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement