Advertisement
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(328, 272, 355, 207, "Добро пожаловать на сервер", false)
- guiWindowSetSizable(GUIEditor_Window[1], false)
- guiSetAlpha(GUIEditor_Window[1], 0.87)
- GUIEditor_Edit[1] = guiCreateEdit(86, 47, 193, 26, "", false, GUIEditor_Window[1])
- GUIEditor_Edit[2] = guiCreateEdit(86, 101, 193, 26, "", false, GUIEditor_Window[1])
- GUIEditor_Button[1] = guiCreateButton(355, 414, 119, 24, "Вход", false, GUIEditor_Window[1])
- guiSetFont(GUIEditor_Button[1], "default-bold-small")
- GUIEditor_Button[2] = guiCreateButton(539, 414, 119, 24, "Регистрация", false, GUIEditor_Window[1])
- guiSetFont(GUIEditor_Button[2], "default-bold-small")
- GUIEditor_Label[1] = guiCreateLabel(474, 300, 38, 19, "Логин", false, GUIEditor_Window[1])
- guiSetFont(GUIEditor_Label[1], "default-bold-small")
- guiLabelSetColor(GUIEditor_Label[1], 162, 211, 43)
- GUIEditor_Label[2] = guiCreateLabel(474, 354, 75, 18, "Пароль", false, GUIEditor_Window[1])
- guiSetFont(GUIEditor_Label[2], "default-bold-small")
- guiLabelSetColor(GUIEditor_Label[2], 162, 211, 43)
- GUIEditor_Label[3] = guiCreateLabel(343, 443, 325, 19, "Для регистрации аккаунта придумайте логин и пароль", false, GUIEditor_Window[1])
- guiSetAlpha(GUIEditor_Label[3], 0.88)
- guiSetFont(GUIEditor_Label[3], "default-bold-small")
- guiLabelSetColor(GUIEditor_Label[3], 193, 223, 29)
- GUIEditor_Label[4] = guiCreateLabel(367, 410, 315, 19, "Для входа в аккаунт введите логин и пароль", false, GUIEditor_Window[1])
- guiSetAlpha(GUIEditor_Label[4], 0.61)
- guiSetFont(GUIEditor_Label[4], "default-bold-small")
- guiLabelSetColor(GUIEditor_Label[4], 110, 152, 222)
- showCursor(true)
- guiSetInputEnabled(true)
- addEventHandler("onClientGUIClick",getRootElement(),
- function ()
- local user = guiGetText(GUIEditor_Edit[1])
- local pass = guiGetText(GUIEditor_Edit[2])
- if ( source == GUIEditor_Button[1] ) then
- triggerServerEvent("onlogin",getLocalPlayer(),user,pass)
- if ( source == GUIEditor_Button[2] ) then
- triggerServerEvent("onre",getLocalPlayer(),user,pass)
- end
- end
- )
- addEvent("setcol",true)
- addEventHandler("setcol",getRootElement(),
- function ()
- guiSetVisible(GUIEditor_Window[1],false)
- showCursor(false)
- guiSetInputEnabled(false)
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement