Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local accounts = {}
- local sx, sy = guiGetScreenSize()
- function awake()
- fadeCamera(true, 5)
- setCameraMatrix(2500, -2500, 200, 0, 0, 0)
- setFarClipDistance(1000)
- setPlayerHudComponentVisible ("all", false)
- setPlayerHudComponentVisible ("crosshair", true)
- showCursor(true)
- end
- awake()
- function callLogin()
- accounts.username = guiCreateEdit(sx/2-150, sy/2-60, 300, 30, "", false)
- accounts.password = guiCreateEdit(sx/2-150, sy/2-20, 300, 30, "", false)
- guiEditSetMasked (accounts.password, true)
- accounts.login = guiCreateButton(sx/2-150, sy/2+20, 150, 30, "Bejelentkezés", false)
- accounts.register = guiCreateButton(sx/2, sy/2+20, 150, 30, "Regisztráció", false)
- end
- callLogin()
- function login()
- --TODO
- end
- addEventHandler("onClientGUIClick", accounts.login, login)
- function register()
- --TODO
- end
- addEventHandler("onClientGUIClick", accounts.register, register)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement