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

Wysłany: 2020-11-26, 10:11


Haverrak12







Wiek: 32
Na forum: 2160 dni
Posty: 8
Nick w MP: hahaha



Respekt: 50

Ostrzeżeń: 60%
Witam! jak pod??czy? funkcje kamera do panelu logowania?

w sensie ?eby by?y lataj?ce kamery zamiast zdj?cia w tle.
czyli jako?:


function kamera()          --    <----tfunkcje
    smoothMoveCamera(1356.8913574219, -1731.793457031322.5792007446291357.8726806641, -1731.726684570322.3989410400391509.1263427734, -1755.795410156346.90890121461508.873046875, -1754.876464843846.6066703796398500)
    setTimer(function()
        smoothMoveCamera(1533.6107177734, -1646.715209960949.9715003967291533.5344238281, -1647.626586914149.5670242309571480.8005371094, -1695.697998046937.5923004150391480.783203125, -1696.670166015637.3585472106938500)
    end85001)
end



   Image guiCreateStaticImage0019201200"/login-panel/login_bg.jpeg"false )
        guiSetEnabled (Imagefalse)     --    <------ do tego po?aczyzeby nie 

wy?wietla?o si? zdj?cie tylko kamery

Je?eli kto? zrozumia? o co mi chodzi to prosz? o pomoc

dodam jeszcze ze to jest na osobnych plikach xd



function kamera()          --    <----tfunkcje
    smoothMoveCamera(1356.8913574219, -1731.793457031322.5792007446291357.8726806641, -1731.726684570322.3989410400391509.1263427734, -1755.795410156346.90890121461508.873046875, -1754.876464843846.6066703796398500)
    setTimer(function()
        smoothMoveCamera(1533.6107177734, -1646.715209960949.9715003967291533.5344238281, -1647.626586914149.5670242309571480.8005371094, -1695.697998046937.5923004150391480.783203125, -1696.670166015637.3585472106938500)
    end85001)
end









Client z logowania
wdwLogin_Pannel = {}
tabPannel_Main = {}
tab_Login = {}
tab_Register = {}
local sWidth,sHeight guiGetScreenSize()
local offsetY 70

function open_log_reg_pannel()
    if not(isElement(wdwLogin_Pannel)) then
        fadeCamera(false)
        
        local sound math.random1)
        if sound == 1 then
            local bgMusic playSound 'login-panel/2.mp3'true )
            if bgMusic then
                setSoundVolumebgMusic0.4 )
                setElementData(localPlayer"muzykaLogowanie"1)
            end
            setElementData(localPlayer"bgMusic"bgMusic false)
        else
            local bgMusic playSound 'login-panel/2-2.mp3'true )
            if bgMusic then
                setSoundVolumebgMusic0.4 )
                setElementData(localPlayer"muzykaLogowanie"2)
            end
            setElementData(localPlayer"bgMusic"bgMusic false)
        end
        
        showChat(false)
        showCursor(true)
        guiSetInputEnabled(true)
        local Width,Height 350,350
        local X = (sWidth/2) - (Width/2)
        local Y = (sHeight/2) - (Height/2)







                Image guiCreateStaticImage0019201200"/login-panel/login_bg.jpeg"false )
        guiSetEnabled (Imagefalse)     --    <------ do tego





        Login_img guiCreateStaticImageX120350350"/login-panel/login_window.png"false )
        guiSetEnabled (Login_imgfalse)

        --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        bLogin guiCreateStaticImage2334930144"/login-panel/login.png"false )
        addEventHandler("onClientGUIClick",bLogin,onClickBtnLogin)
        addEventHandler"onClientMouseEnter",bLogin,LoginSH)
        addEventHandler("onClientMouseLeave",bLogin,SErem)

        tUsername guiCreateEdit(20,220,310,35,"",false)
        tPassword guiCreateEdit(20,295,310,35,"",false)
        guiEditSetMaxLength tUsername,25)
        guiEditSetMaxLength tPassword,25)
        guiEditSetMasked tPasswordtrue )
        guiSetPropertytPassword'MaskCodepoint''8226' )

        addEventHandler("onClientGUIChanged"tUsernameresetLogButtons)
        addEventHandler("onClientGUIChanged"tPasswordresetLogButtons)
        addEventHandler"onClientGUIAccepted"tUsernamestartLoggingIn)
        addEventHandler"onClientGUIAccepted"tPasswordstartLoggingIn)

        lbl_about_legth guiCreateLabel(142,42,184,18,"",false)
        guiLabelSetColor(lbl_about_legth,253,255,68)
        guiLabelSetVerticalAlign(lbl_about_legth,"center")
        guiLabelSetHorizontalAlign(lbl_about_legth,"center",false)

        checkbox_save guiCreateCheckBox(230,275,100,20,"(Zapami?taj mnie!)",false,false)
        guiSetFont(checkbox_save,"default-small")

        login_tab_error_msg guiCreateLabel(X,325,364,31,"Error_login_tab",false)
        guiLabelSetColor(login_tab_error_msg,255,0,0)
        guiLabelSetVerticalAlign(login_tab_error_msg,"center")
        guiLabelSetHorizontalAlign(login_tab_error_msg,"center",false)
        guiSetFont(login_tab_error_msg,"default-bold-small")

        login_tab_authen_msg guiCreateLabel(X,325,364,31,"Authen_login_tab",false)
        guiLabelSetColor(login_tab_authen_msg,0,255,0)
        guiLabelSetVerticalAlign(login_tab_authen_msg,"center")
        guiLabelSetHorizontalAlign(login_tab_authen_msg,"center",false)
        guiSetFont(login_tab_authen_msg,"default-bold-small")


        --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        shSignup guiCreateStaticImage2340130144"/login-panel/signup.png"false ) -- A gomb
        addEventHandler("onClientGUIClick",shSignup,OnBtnRegister)
        addEventHandler"onClientMouseEnter",shSignup,SignupSH)
        addEventHandler("onClientMouseLeave",shSignup,SErem)

        lbl_reg_top_info guiCreateLabel(70,388+offsetY,500,30,"",false)
        guiLabelSetColor(lbl_reg_top_info,255,234,55)
        guiLabelSetVerticalAlign(lbl_reg_top_info,"center")
        guiLabelSetHorizontalAlign(lbl_reg_top_info,"center",false)
        guiSetFont(lbl_reg_top_info,"default-bold-small")
        guiSetVisible(lbl_reg_top_info,false)

        edit_account_name guiCreateEdit(20,215,310,35,"",false)
        guiEditSetMaxLength edit_account_name,25)
        guiSetVisible(edit_account_name,false)
        addEventHandler("onClientGUIChanged"edit_account_nameresetRegButtons)

        edit__reg_tab_password guiCreateEdit(20,290,310,35,"",false)
        guiEditSetMaxLength edit__reg_tab_password,25)
        guiEditSetMasked edit__reg_tab_passwordtrue )
        guiSetProperty(edit__reg_tab_password'MaskCodepoint''8226')
        guiSetVisible(edit__reg_tab_password,false)
        addEventHandler("onClientGUIChanged"edit__reg_tab_passwordresetRegButtons)

        edit__reg_tab_Repassword guiCreateEdit(20,365,310,35,"",false)
        guiEditSetMaxLength edit__reg_tab_Repassword,25)
        guiEditSetMasked edit__reg_tab_Repasswordtrue )
        guiSetProperty(edit__reg_tab_Repassword'MaskCodepoint''8226')
        guiSetVisible(edit__reg_tab_Repassword,false)
        guiSetEnabled (edit__reg_tab_Repasswordtrue)
        addEventHandler("onClientGUIChanged"edit__reg_tab_RepasswordresetRegButtons)

        edit__reg_tab_email guiCreateEdit(20,435,310,35,"",false)
        guiEditSetMaxLength edit__reg_tab_email,100)
        --guiEditSetMasked edit__reg_tab_emailtrue )
        guiSetVisible(edit__reg_tab_email,false)
        guiSetEnabled (edit__reg_tab_emailtrue)
        addEventHandler("onClientGUIChanged"edit__reg_tab_emailresetRegButtons)

        --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        shRegister2 guiCreateStaticImage182401+6+offsetY14345"/login-panel/register.png"false )--guiCreateStaticImage2340930144"/login-panel/register2.png"false )
        addEventHandler("onClientGUIClick",shRegister2,onClickBtnRegister)
        addEventHandler"onClientMouseEnter",shRegister2,Register2SH)
        addEventHandler("onClientMouseLeave",shRegister2,SErem)
        guiSetVisible(shRegister2,false)

        shCancel guiCreateStaticImage23401+6+offsetY14345"/login-panel/cancel.png"false ) -- A gomb
        addEventHandler("onClientGUIClick",shCancel,onClickCancel)
        addEventHandler"onClientMouseEnter",shCancel,CancelSH)
        addEventHandler("onClientMouseLeave",shCancel,SErem)
        guiSetVisible(shCancel,false)

                        showCursor(true)

        guiSetText(login_tab_error_msg"")
        guiSetText(login_tab_authen_msg"")


        local usernamepassword loadLoginFromXML()
        if username ~= "" then
            guiCheckBoxSetSelected checkbox_savetrue )
            guiSetText tUsernametostring(username))
            guiSetText tPasswordtostring(password))
        else
            guiCheckBoxSetSelected checkbox_savefalse )
            guiSetText tUsernametostring(username))
            guiSetText tPasswordtostring(password))
        end
    end
end

function LoginSH ()
    guiStaticImageLoadImage(bLogin"/login-panel/sh.png" )
end

function SignupSH ()
    guiStaticImageLoadImage(shSignup"/login-panel/signup2.png" )
end

function Register2SH ()
    guiStaticImageLoadImage(shRegister2"/login-panel/shr.png" )
end

function CancelSH ()
    guiStaticImageLoadImage(shCancel"/login-panel/cancel2.png" )
end

function SErem ()
guiStaticImageLoadImage(bLogin"/login-panel/login.png" )
guiStaticImageLoadImage(shSignup"/login-panel/signup.png" )
guiStaticImageLoadImage(shRegister2"/login-panel/register.png" )
guiStaticImageLoadImage(shCancel"/login-panel/cancel.png" )
end

--[[
function start_cl_resource()
    open_log_reg_pannel()
end
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),start_cl_resource)
]]

function loadLoginFromXML()
    local xml_save_log_File xmlLoadFile ("/login-panel/rememberme.xml")
    if not xml_save_log_File then
        xml_save_log_File xmlCreateFile("/login-panel/rememberme.xml""login")
    end
    local usernameNode xmlFindChild (xml_save_log_File"username"0)
    local passwordNode xmlFindChild (xml_save_log_File"password"0)
    local usernamepassword usernameNode and exports.global:decryptString(xmlNodeGetValue(usernameNode), localPlayer) or ""passwordNode and exports.global:decryptString(xmlNodeGetValue(passwordNode), localPlayer) or ""
    xmlUnloadFile xml_save_log_File )
    return usernamepassword
end

function saveLoginToXML(usernamepassword)
    local xml_save_log_File xmlLoadFile ("/login-panel/rememberme.xml")
    if not xml_save_log_File then
        xml_save_log_File xmlCreateFile("/login-panel/rememberme.xml""login")
    end
    if (username ~= ""then
        local usernameNode xmlFindChild (xml_save_log_File"username"0)
        local passwordNode xmlFindChild (xml_save_log_File"password"0)
        if not usernameNode then
            usernameNode xmlCreateChild(xml_save_log_File"username")
        end
        if not passwordNode then
            passwordNode xmlCreateChild(xml_save_log_File"password")
        end
        xmlNodeSetValue (usernameNodeexports.global:encryptString(usernamelocalPlayer))
        xmlNodeSetValue (passwordNodeexports.global:encryptString(passwordlocalPlayer))
    end
    xmlSaveFile(xml_save_log_File)
    xmlUnloadFile (xml_save_log_File)
end
addEvent("saveLoginToXML"true)
addEventHandler("saveLoginToXML"getRootElement(), saveLoginToXML)



function resetSaveXML()
    local xml_save_log_File xmlLoadFile ("/login-panel/rememberme.xml")
    if xml_save_log_File then
        fileDelete ("/login-panel/rememberme.xml")
        xmlUnloadFile xml_save_log_File )
    end
end
addEvent("resetSaveXML"true)
addEventHandler("resetSaveXML"getRootElement(), resetSaveXML)

function onClickBtnLogin(button,state)
    if(button == "left" and state == "up"then
        if (source == bLoginthen
            startLoggingIn()
        end
    end
end

local loginClickTimer nil
function startLoggingIn()
    if not getElementData(localPlayer"clickedLogin"then
        setElementData(localPlayer"clickedLogin"true)
        if isTimer(loginClickTimerthen
            killTimer(loginClickTimer)
        end
        loginClickTimer setTimer(setElementData10001localPlayer"clickedLogin"nil)

        username guiGetText(tUsername)
        password guiGetText(tPassword)
            if guiCheckBoxGetSelected checkbox_save ) == true then
                checksave true
            else
                checksave false
            end
        playSoundFrontEnd )
        guiSetEnabled(bLoginfalse)
        guiSetAlpha(bLogin0.3)
        triggerServerEvent("accounts:login:attempt"getLocalPlayer(), usernamepasswordchecksave)
        authen_msg("Logowanie""Wysy?anie zapytania do serwera...")
    else
        Error_msg("Login""Slow down..")
    end
end

function hideLoginPanel(keepBG)
    guiSetVisible(shSignupfalse)
    guiSetVisible(bLoginfalse)
    guiSetVisible(tPasswordfalse)
    guiSetVisible(tUsernamefalse)
    guiSetVisible(checkbox_savefalse)
    guiSetVisible(Login_imgfalse)
    guiSetVisible(login_tab_authen_msgfalse)
    showCursor(true)
    if not keepBG then
        guiSetVisible(Imagefalse)
        showChat(true)
    end

    removeEventHandler("onClientGUIClick",bLogin,onClickBtnLogin)
end
addEvent("hideLoginPanel"true)
addEventHandler("hideLoginPanel"getRootElement(), hideLoginPanel)


function OnBtnRegister ()
    switchToRegisterPanel() -- Disabled registration
    playSoundFrontEnd )
    --guiSetText(login_tab_error_msg"Please register on .net/register.php")
end

function onClickCancel()
    switchToLoginPanel()
    playSoundFrontEnd )
end

function switchToLoginPanel()
    guiSetText(login_tab_error_msg"")
    guiSetText(login_tab_authen_msg"")
    guiSetText(lbl_reg_top_info"")

    guiSetSize(Login_img350,350false)
    guiStaticImageLoadImage(Login_img"login-panel/Login_window.png" )
    guiSetVisible(shRegister2false)
    guiSetVisible(shCancel,false)
    guiSetVisible(lbl_reg_top_info,false)
    guiSetVisible(edit__reg_tab_Repassword,false)
    guiSetEnabled (edit__reg_tab_Repasswordfalse)
    guiSetVisible(edit__reg_tab_email,false)
    guiSetEnabled (edit__reg_tab_emailfalse)
    guiSetVisible(edit__reg_tab_password,false)
    guiSetVisible(edit_account_name,false)
    guiSetVisible(shSignuptrue)
    guiSetVisible(bLogintrue)
    guiSetVisible(tPasswordtrue)
    guiSetVisible(tUsernametrue)
    guiSetVisible(checkbox_savetrue)
    showCursor(true)
end

function switchToLoginPanel()
    guiSetText(login_tab_error_msg"")
    guiSetText(login_tab_authen_msg"")
    guiSetText(lbl_reg_top_info"")

    guiSetSize(Login_img350,350false)
    guiStaticImageLoadImage(Login_img"login-panel/Login_window.png" )
    guiSetVisible(shRegister2false)
    guiSetVisible(shCancel,false)
    guiSetVisible(lbl_reg_top_info,false)
    guiSetVisible(edit__reg_tab_Repassword,false)
    guiSetEnabled (edit__reg_tab_Repasswordfalse)
    guiSetVisible(edit__reg_tab_email,false)
    guiSetEnabled (edit__reg_tab_emailfalse)
    guiSetVisible(edit__reg_tab_password,false)
    guiSetVisible(edit_account_name,false)
    guiSetVisible(shSignuptrue)
    guiSetVisible(bLogintrue)
    guiSetVisible(tPasswordtrue)
    guiSetVisible(tUsernametrue)
    guiSetVisible(checkbox_savetrue)
    showCursor(true)
    if sHeight <= 600 and getElementData(localPlayer"switched"then
        local xguiGetPosition(Login_imgfalse)
        guiSetPosition(Login_imgxy+120false)
    end
end

function switchToRegisterPanel()
    guiSetText(login_tab_error_msg"")
    guiSetText(login_tab_authen_msg"")
    guiSetText(lbl_reg_top_info"")

    guiSetSize(Login_img350,421false)
    guiStaticImageLoadImage(Login_img"login-panel/register_window.png" )
    guiSetVisible(shRegister2true)
    guiSetVisible(shCancel,true)
    guiSetVisible(lbl_reg_top_info,true)
    guiSetVisible(edit__reg_tab_Repassword,true)
    guiSetEnabled (edit__reg_tab_Repasswordtrue)
    guiSetVisible(edit__reg_tab_password,true)
    guiSetVisible(edit_account_name,true)
    guiSetVisible(edit__reg_tab_email,true)
    guiSetEnabled (edit__reg_tab_emailtrue)
    guiSetVisible(shSignupfalse)
    guiSetVisible(bLoginfalse)
    guiSetVisible(tPasswordfalse)
    guiSetVisible(tUsernamefalse)
    guiSetVisible(checkbox_savefalse)
    showCursor(true)
    if sHeight <= 600 then
        local xguiGetPosition(Login_imgfalse)
        guiSetPosition(Login_imgxy-120false)
        if not getElementData(localPlayer"switched"then
            xguiGetPosition(shRegister2false)
            guiSetPosition(shRegister2xy-120false)
            xguiGetPosition(shCancelfalse)
            guiSetPosition(shCancelxy-120false)
            xguiGetPosition(lbl_reg_top_infofalse)
            guiSetPosition(lbl_reg_top_infoxy-120false)
            xguiGetPosition(edit__reg_tab_Repasswordfalse)
            guiSetPosition(edit__reg_tab_Repasswordxy-120false)
            xguiGetPosition(edit__reg_tab_passwordfalse)
            guiSetPosition(edit__reg_tab_passwordxy-120false)
            xguiGetPosition(edit_account_namefalse)
            guiSetPosition(edit_account_namexy-120false)
            xguiGetPosition(edit__reg_tab_emailfalse)
            guiSetPosition(edit__reg_tab_emailxy-120false)
        end
    end
    setElementData(localPlayer"switched"true)
end

function onClickBtnRegister(button,state)
    username guiGetText(edit_account_name)
    password guiGetText(edit__reg_tab_password)
    passwordConfirm guiGetText(edit__reg_tab_Repassword)
    email guiGetText(edit__reg_tab_email)
    registerValidation(usernamepasswordpasswordConfirm,email)

    --playSoundFrontEnd )
    guiSetEnabled(shRegister2false)
    guiSetAlpha(shRegister20.3)
end

function registerValidation(usernamepasswordpasswordConfirmemail)
    if not username or username == "" or not password or password == "" or not passwordConfirm or passwordConfirm == "" or not email or email == ""  then
        guiSetText(lbl_reg_top_info"Wype?nij wszystkie pola.")
        guiLabelSetColor lbl_reg_top_info2550)
        playSoundFrontEnd )
    elseif string.len(username) < 3 then
        guiSetText(lbl_reg_top_info"Nazwa u?ytkownika musi mie? 3 znaki lub wi?cej.")
        guiLabelSetColor lbl_reg_top_info2550)
        playSoundFrontEnd )
    elseif string.len(username) >= 15 then
        guiSetText(lbl_reg_top_info"Nazwa u?ytkownika musi by? kr?tsza ni? 20 znak?w.")
        guiLabelSetColor lbl_reg_top_info2550)
        playSoundFrontEnd )
    elseif string.find(password"'") or string.find(password'"'then
        guiSetText(lbl_reg_top_info"Has?o nie mo?e zawiera? ' lub "..'"')
        guiLabelSetColor lbl_reg_top_info2550)
        playSoundFrontEnd )
    elseif string.len(password) < 8 then
        guiSetText(lbl_reg_top_info"Has?o musi sk?ada? si? z 8 lub wi?cej znak?w.")
        guiLabelSetColor lbl_reg_top_info2550)
        playSoundFrontEnd )
    elseif password ~= passwordConfirm then
        guiSetText(lbl_reg_top_info"Nieprawid?owe has?o!")
        guiLabelSetColor lbl_reg_top_info2550)
        playSoundFrontEnd )
    elseif string.match(username,"%W"then
        guiSetText(lbl_reg_top_info"Znaki \"!@#$\"%'^&*()\" nie s? dozwolone.")
        guiLabelSetColor lbl_reg_top_info2550)
        playSoundFrontEnd )
    else
        local validEmailreason exports.global:isEmail(email)
        if not validEmail then
            guiSetText(lbl_reg_top_inforeason)
            guiLabelSetColor lbl_reg_top_info2550)
            playSoundFrontEnd )
        else
            triggerServerEvent("accounts:register:attempt",getLocalPlayer(),username,password,passwordConfirmemail)
            authen_msg("Rejestracja""Wysy?anie zapytania do serwera...")
        end
    end
end

function registerComplete(usernamepwemail)
    guiSetText(tUsernameusername)
    guiSetText(tPasswordpw)
    playSoundFrontEnd(13)
    displayRegisterConpleteText(usernameemail)
end
addEvent("accounts:register:complete",true)
addEventHandler("accounts:register:complete",getRootElement(),registerComplete)

function displayRegisterConpleteText(username)
    local GUIEditor = {
        button = {},
        window = {},
        label = {}
    }

    local extend 50
    local yoffset 200
    GUIEditor.window[1] = guiCreateWindow(667381357189+extend"Gratulacje! Twoje konto zosta?o stworzone!"false)
    exports.global:centerWindow(GUIEditor.window[1])
    local xguiGetPosition(GUIEditor.window[1], false)
    guiSetPosition(GUIEditor.window[1], xy+yoffsetfalse)
    guiSetAlpha(GUIEditor.window[1], 1)
    guiWindowSetMovable(GUIEditor.window[1], false)
    guiWindowSetSizable(GUIEditor.window[1], false)
    guiSetProperty(GUIEditor.window[1], "AlwaysOnTop""True")

    GUIEditor.label[1] = guiCreateLabel(825339121+extend"Twoje konto '"..username.."' Jest ju? gotowe!\n\nOdwied? naszego discorda: https://discord.gg/hTe5MXGjKd "..username.."\n\nZ powa?aniem, Ekipa Fox Life RolePlay\""falseGUIEditor.window[1])
    guiLabelSetHorizontalAlign(GUIEditor.label[1], "left"true)
    GUIEditor.button[1] = guiCreateButton(10153+extend33726"Wci?nij ten przycisk, by zako?czy? skopiowa? adres strony do schowka."falseGUIEditor.window[1])
    addEventHandler("onClientGUIClick"GUIEditor.button[1], function()
        if source == GUIEditor.button[1then
            if isElement(GUIEditor.window[1]) then
                destroyElement(GUIEditor.window[1])
                GUIEditor nil
                switchToLoginPanel()
                setClipboard("https://discord.gg/hTe5MXGjKd"..username)
            end
        else
            cancelEvent()
        end
    end)
end

function Error_msg(TabText)
showCursor(true)
    if Tab == "Login" then
        playSoundFrontEnd 4)
        guiSetVisible(shSignuptrue)
        guiSetVisible(bLogintrue)
        guiSetVisible(tPasswordtrue)
        guiSetVisible(tUsernametrue)
        guiSetVisible(checkbox_savetrue)
        guiSetVisible(Login_imgtrue)

        guiSetText(login_tab_authen_msg"")
        guiSetText(login_tab_error_msgtostring(Text))
        --setTimer(function() guiSetText(login_tab_error_msg""end,3000,1)
    else
        playSoundFrontEnd 4)
        guiSetText(lbl_reg_top_infotostring(Text))
        guiLabelSetColor lbl_reg_top_info2550)
    end
end
addEvent("set_warning_text",true)
addEventHandler("set_warning_text",getRootElement(),Error_msg)

function authen_msg(TabText)
showCursor(true)
    if Tab == "Login" then
        --playSoundFrontEnd 12)
        guiSetVisible(shSignuptrue)
        guiSetVisible(bLogintrue)
        guiSetVisible(tPasswordtrue)
        guiSetVisible(tUsernametrue)
        guiSetVisible(checkbox_savetrue)
        guiSetVisible(Login_imgtrue)

        guiSetText(login_tab_error_msg"")
        guiSetText(login_tab_authen_msgtostring(Text))
        --setTimer(function() guiSetText(login_tab_authen_msg""end,3000,1)
    else
        --playSoundFrontEnd 12 )
        guiSetText(lbl_reg_top_infotostring(Text))
        guiLabelSetColor lbl_reg_top_info255255255 )
    end
end
addEvent("set_authen_text",true)
addEventHandler("set_authen_text",getRootElement(),authen_msg)


function hideLoginWindow()
    showCursor(false)
    showChat(true)
    hideLoginPanel()
    removeEventHandler("onClientGUIClick",bLogin,onClickBtnLogin)
end
addEvent("hideLoginWindow"true)
addEventHandler("hideLoginWindow"getRootElement(), hideLoginWindow)

function CursorError ()
showCursor(false)
end
addCommandHandler("showc"CursorError)

function resetRegButtons ()
    guiSetEnabled(shRegister2true)
    guiSetAlpha(shRegister21)
end

function resetLogButtons()
    guiSetEnabled(bLogintrue)
    guiSetAlpha(bLogin1)
end

fileDelete("login-panel/client.lua")


Ostatnio zmieniony przez Wilq 2020-11-26, 13:09, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-11-26, 13:09


Wilq







Wiek: 24
Na forum: 4429 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

No to masz funkcje

Więcej informacji znajdziesz w Wikipedii MTA:

smoothMoveCamera

i u?ywasz jej kiedy pokazujesz graczowi panel logowania - za pierwszy razem.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-11-26, 13:15


Haverrak12







Wiek: 32
Na forum: 2160 dni
Posty: 8
Nick w MP: hahaha



Respekt: 50

Ostrzeżeń: 60%
"Wilq" napisał/a:

No to masz funkcje

Więcej informacji znajdziesz w Wikipedii MTA:

smoothMoveCamera

i u?ywasz jej kiedy pokazujesz graczowi panel logowania - za pierwszy razem.


a gdzie by to wklei?? dasz przyk?ad?

Postaw piwo autorowi tego posta
 

 
Tagi: smoothmovecamera :: pytanie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » smoothMoveCamera pytanie Odpowiedz do tematu

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