Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Fenster = {}
- local Knopf = {}
- local Label = {}
- local Edit = {}
- local Bild = {}
- local function createGui()
- if(Guivar == 1) then return end -- Check
- Guivar = 1 -- setze Variable auf 1
- showCursor(true) -- Mauszeiger anzeigen
- guiSetInputMode("no_binds_when_editing")
- local sWidth, sHeight = guiGetScreenSize()
- local dWidth, dHeight = guiGetScreenSize()
- local wWidth, wHeight = guiGetScreenSize()
- local Width,Height = 783,614 -- ""
- local X = (sWidth/2) - (Width/2) -- ""
- local Y = (sHeight/2) - (Height/2) -- ""
- local kWidth,kHeight = 757,184 -- ""
- local X1 = (dWidth/2) - (Width/2) -- ""
- local Y1 = (dHeight/2) - (Height/2) -- ""
- local lWidth,lHeight = 763,5 -- ""
- local X2 = (wWidth/2) - (Width/2) -- ""
- local Y2 = (wHeight/2) - (Height/2) -- ""
- Fenster[1] = guiCreateWindow(X,Y,Width, Height,"Loginpanel",false)
- Bild[1] = guiCreateStaticImage(X1,Y1,kWidth,kHeight,"img/banner.png",false,Fenster[1])
- Bild[2] = guiCreateStaticImage(X2,Y2,lWidth,lHeight,"img/member_aus.png",false,Fenster[1])
- Knopf[1] = guiCreateButton(9,523,762,37,"Register & Login",false,Fenster[1])
- Knopf[2] = guiCreateButton(9,569,762,36,"Credits",false,Fenster[1])
- Edit[1] = guiCreateEdit(232,302,323,31,"",false,Fenster[1])
- Label[1] = guiCreateLabel(241,240,278,60,"Username:",false,Fenster[1])
- guiLabelSetColor(Label[1],255,255,0)
- guiLabelSetHorizontalAlign(Label[1],"center",false)
- guiSetFont(Label[1],"sa-header")
- Edit[2] = guiCreateEdit(232,432,323,31,"",false,Fenster[1])
- Label[2] = guiCreateLabel(241,353,278,60,"Password:",false,Fenster[1])
- guiLabelSetColor(Label[2],255,255,0)
- guiSetFont(Label[2],"sa-header")
- addEventHandler("onClientGUIClick", Knopf[1], function() -- dann den Registrieren Knopf
- local text1, text2 = guiGetText(Edit[1]), guiGetText(Edit[2])
- if(text1 == "") or (text2 == "") then return end
- triggerServerEvent("onDatenbankCheck", gMe, text1, text2) -- Event triggern
- end, false)
- addEventHandler("onClientGUIClick", Knopf[2], function() -- dann den Registrieren Knopf
- triggerServerEvent("onCredits", gMe)
- end, false)
- end
Advertisement
Add Comment
Please, Sign In to add comment