Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-11-08, 03:47


LordKamis







Wiek: 26
Na forum: 4481 dni
Posty: 107

Piwa: 190

Respekt: 60

Witam chce aby kto? doda? do panelu logowania t?o


--CENTERWINDOw--

function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end

--DESIGN--

        gridloginone = guiCreateGridList(0.02, 0.10, 0.61, 0.87, true, loginwin)

        edit_user_login = guiCreateEdit(0.18, 0.24, 0.64, 0.12, "", true, gridloginone)
        edit_pass_login = guiCreateEdit(0.18, 0.50, 0.64, 0.12, "", true, gridloginone)
        userlabel = guiCreateLabel(0.39, 0.17, 0.32, 0.07, "NICK :", true, gridloginone)
        passlabel = guiCreateLabel(0.39, 0.43, 0.32, 0.07, "HAS?O :", true, gridloginone)
        loginbtn = guiCreateButton(0.04, 0.72, 0.91, 0.23, "LOGOWANIE ", true, gridloginone)

        gridlogintwo = guiCreateGridList(0.64, 0.10, 0.34, 0.87, true, loginwin)

        infomemo = guiCreateMemo(0.03, 0.02, 0.95, 0.52, "W?a?cicielem serwera jest -----------LordKamis-------------Zaloguj si? lub zarejestruj. Serwer w budowie.", true, gridlogintwo)
        guiMemoSetReadOnly(infomemo, true)
        loginmain = guiCreateButton(0.03, 0.55, 0.95, 0.14, "LOGOWANIE", true, gridlogintwo)
        registermain = guiCreateButton(0.03, 0.70, 0.95, 0.14, "REJESTRACJA", true, gridlogintwo)
        updatesmain = guiCreateButton(0.03, 0.85, 0.95, 0.14, "REGULAMIN", true, gridlogintwo)    
        showCursor(true)
        
        function closelogin (player)
guiSetVisible(loginwin, false)
guiSetVisible(regwin, false)
showCursor(false)
end
addEvent("closeLoginPanel",true)
addEventHandler("closeLoginPanel",getRootElement(),closelogin)


function onLoginKlink ()
    local username = guiGetText(edit_user_login)
    local password = guiGetText(edit_pass_login)
    if username ~= "" and password ~= "" then
        triggerServerEvent("login",getLocalPlayer(),getLocalPlayer(),username,password)
                playSoundFrontEnd ( 1 )
    end
end
addEventHandler("onClientGUIClick",loginbtn,onLoginKlink,false)

function regmainclick ()
    guiSetVisible (loginwin,false)
        guiSetVisible (regwin,true)
        playSoundFrontEnd ( 38 )
end
addEventHandler("onClientGUIClick",registermain,regmainclick,false)

function upwinclick ()
    guiSetVisible (loginwin,false)
        guiSetVisible (updatewin,true)
        playSoundFrontEnd ( 38 )
end
addEventHandler("onClientGUIClick",updatesmain,upwinclick,false)

------------------------------------------------------------------------------------------------------



        regwin = guiCreateWindow(0.29, 0.28, 0.41, 0.40, "Nazwa serwe", true)
        guiWindowSetSizable(regwin, false)
        guiSetAlpha(regwin, 0.75)
        guiSetVisible(regwin, false)
        guiWindowSetMovable(regwin, false)
        centerWindow(regwin)



        gridloginone = guiCreateGridList(0.02, 0.10, 0.61, 0.87, true, regwin)

        reg_user_edit = guiCreateEdit(0.18, 0.16, 0.63, 0.12, "", true, gridloginone)
        userlabelreg = guiCreateLabel(0.38, 0.11, 0.28, 0.06, "  NICK:", true, gridloginone)
        reg_pass_edit = guiCreateEdit(0.19, 0.37, 0.63, 0.12, "", true, gridloginone)
        passlabelreg = guiCreateLabel(0.38, 0.31, 0.28, 0.06, " HAS?O:", true, gridloginone)
        reg_conf_edit = guiCreateEdit(0.19, 0.57, 0.63, 0.12, "", true, gridloginone)
        conflabeledit = guiCreateLabel(0.37, 0.51, 0.28, 0.06, "HAS?O:", true, gridloginone)
        regbtn = guiCreateButton(0.03, 0.75, 0.94, 0.21, "REJESTRACJA", true, gridloginone)

        gridlogintwo = guiCreateGridList(0.64, 0.10, 0.34, 0.87, true, regwin)

        infomemo = guiCreateMemo(0.03, 0.02, 0.95, 0.52, "W?a?cicielem serwera jest -----------LordKamis-------------Zaloguj si? lub zarejestruj. Serwer w budowie.", true, gridlogintwo)
        guiMemoSetReadOnly(infomemo, true)
        loginmain = guiCreateButton(0.03, 0.55, 0.95, 0.14, "LOGOWANIE", true, gridlogintwo)
        registermain = guiCreateButton(0.03, 0.70, 0.95, 0.14, "REJESTRACJA", true, gridlogintwo)
        updatesmain = guiCreateButton(0.03, 0.85, 0.95, 0.14, "REGULAMIN", true, gridlogintwo)    

        guiWindowSetMovable(regwin, false)
        centerWindow(regwin)

        
        function logmainclick ()
    guiSetVisible (regwin,false)
        guiSetVisible (loginwin,true)
        playSoundFrontEnd ( 38 )
end
addEventHandler("onClientGUIClick",loginmain,logmainclick,false)

        function updateclick ()
    guiSetVisible (regwin,false)
        guiSetVisible (updatewin,true)
        playSoundFrontEnd ( 38 )
end
addEventHandler("onClientGUIClick",updatesmain,updateclick,false)

function onRegisterKlink ()
    local usernamer = guiGetText(reg_user_edit)
    local passwordr = guiGetText(reg_pass_edit)
    if usernamer ~= "" and passwordr ~= "" then
        triggerServerEvent("register",getLocalPlayer(),getLocalPlayer(),usernamer,passwordr)
                playSoundFrontEnd ( 1 )
    end
end
addEventHandler("onClientGUIClick",regbtn,onRegisterKlink,false)



-----------------------------------------------------------------------------------------------------



        updatewin = guiCreateWindow(0.29, 0.28, 0.41, 0.40, "POLSKI SERWER DRIFTU", true)
        guiWindowSetSizable(updatewin, false)
        guiSetAlpha(updatewin, 0.75)
        guiSetVisible(updatewin, false)
        guiWindowSetMovable(updatewin, false)
        centerWindow(updatewin)

        gridloginone = guiCreateGridList(0.02, 0.10, 0.61, 0.87, true, updatewin)

        updateone = guiCreateLabel(0.09, 0.09, 0.84, 0.10, "1.Nie oszukujemy.", true, gridloginone)
        updatefour = guiCreateLabel(0.09, 0.44, 0.84, 0.10, "4.Dobrze si? bawimy", true, gridloginone)
        updatethree = guiCreateLabel(0.09, 0.32, 0.84, 0.10, "3.Ale trolowa? mo?na (nie jego XD)", true, gridloginone)
        updatetwo = guiCreateLabel(0.09, 0.21, 0.84, 0.10, "2.Nie wkurzamy admina.", true, gridloginone)
        updatefive = guiCreateLabel(0.09, 0.56, 0.84, 0.10, "5.Je?li wiesz jak ulepszy? serwer pisz ?mia?o :)", true, gridloginone)
        updatesix = guiCreateLabel(0.09, 0.68, 0.84, 0.10, "6.Potem wymy?l?", true, gridloginone)
        updateseven = guiCreateLabel(0.09, 0.79, 0.84, 0.10, "", true, gridloginone)

        gridlogintwo = guiCreateGridList(0.64, 0.10, 0.34, 0.87, true, updatewin)

        infomemo = guiCreateMemo(0.03, 0.02, 0.95, 0.52, "W?a?cicielem serwera jest -----------LordKamis-------------Zaloguj si? lub zarejestruj. Serwer w budowie.", true, gridlogintwo)
        loginmain = guiCreateButton(0.03, 0.55, 0.95, 0.14, "LOGOWANIE", true, gridlogintwo)
        registermain = guiCreateButton(0.03, 0.70, 0.95, 0.14, "REJESTRACJA", true, gridlogintwo)
        updatesmain = guiCreateButton(0.03, 0.85, 0.95, 0.14, "REGULAMIN", true, gridlogintwo)    

        
    function logmainuclick ()
    guiSetVisible (updatewin,false)
        guiSetVisible (loginwin,true)
        playSoundFrontEnd ( 38 )
end
addEventHandler("onClientGUIClick",loginmain,logmainuclick,false)

        function regmainuclick ()
    guiSetVisible (updatewin,false)
        guiSetVisible (regwin,true)
        playSoundFrontEnd ( 38 )
end
addEventHandler("onClientGUIClick",registermain,regmainuclick,false)
[/quote][/code]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-08, 09:23


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4568 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Podaj nazwe obrazka do t?a to dodam.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-08, 18:12


LordKamis







Wiek: 26
Na forum: 4481 dni
Posty: 107

Piwa: 190

Respekt: 60

t?o.png

Postaw piwo autorowi tego posta
 

 
Tagi: zdjęcie :: tło
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku