Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUIEditor_Window = {}
- GUIEditor_Button = {}
- GUIEditor_Label = {}
- GUIEditor_Edit = {}
- GUIEditor_Window[1] = guiCreateWindow(498,249,385,196,"Witamy na Serwerze Alive-RP",false)
- guiSetVisible(GUIEditor_Window[1], false)
- GUIEditor_Button[1] = guiCreateButton(26,148,157,33,"Zaloguj",false,GUIEditor_Window[1])
- GUIEditor_Button[2] = guiCreateButton(210,148,150,33,"Rejestruj",false,GUIEditor_Window[1])
- GUIEditor_Label[1] = guiCreateLabel(32,53,42,23,"Nick:",false,GUIEditor_Window[1])
- guiSetFont(GUIEditor_Label[1],"clear-normal")
- GUIEditor_Label[2] = guiCreateLabel(32,91,42,23,"Hasło:",false,GUIEditor_Window[1])
- guiSetFont(GUIEditor_Label[2],"clear-normal")
- GUIEditor_Edit[1] = guiCreateEdit(106,47,239,28,"",false,GUIEditor_Window[1])
- GUIEditor_Edit[2] = guiCreateEdit(106,86,239,28,"",false,GUIEditor_Window[1])
- function showPanel() --Otwieranie Panelu
- guiSetVisible(GUIEditor_Window[1], true)
- guiSetInputMode ("no_binds")
- showCursor(true)
- end
- addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), showPanel)
- function hidePanel() --Zamykanie Panelu
- guiSetVisible(GUIEditor_Window[1], false)
- showCursor(false)
- end
- addCommandHandler("logowanie.z", hidePanel)
- function testujemy () --Test
- local nick = guiGetText(GUIEditor_Edit[1]) --Pobranie Nicku z Okna
- local haslo = guiGetText(GUIEditor_Edit[2]) --Pobranie Hasła z Okna
- outputChatBox("Nick: "..nick.." Hasło: "..haslo)
- end
- addEventHandler("onClientGUIClick", GUIEditor_Button[1], testujemy)
Add Comment
Please, Sign In to add comment