Jump to content

مساعدة ممكن بلليززز ساعدوني


Recommended Posts

عندي مشكلة بلوحة تسجيل

            wnd = guiCreateStaticImage(45, 8, 718, 544, "files/1.png",false) 
  
            english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) 
            guiSetFont(english,"default-bold-small") 
    guiSetVisible(wnd,false) 
            setTimer(function() 
            guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 1000, 0) 
            arabic = guiCreateButton(621, 372, 125, 125, "Ar",true,wnd) 
            guiSetFont(arabic,"default-bold-small") 
            setTimer(function() 
            guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 1000, 0) 
            user_2 = guiCreateLabel(463, 310, 177, 29, "Username", false, wnd) 
            function Color ( ) 
            guiLabelSetColor (user_2, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
            end 
            setTimer ( Color, 1000, 0 ) 
            guiLabelSetHorizontalAlign(user_2,"center",false) 
            guiSetFont(user_2,"default-bold-small") 
            setElementData(user_2, "tooltip-text", "اسم حسابك", false) -- أضافة الكلام للزر 
            setElementData(user_2, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط 
            setElementData(user_2, "tooltip-background", "#666666", false) -- تغيير لون الخلفية 
            setElementData(user_2, "default-bold", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط 
            user_l = guiCreateLabel(115, 310, 177, 29, "Username",false,wnd) 
            function Color ( ) 
            guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
            end 
            setTimer ( Color, 1000, 0 ) 
            guiLabelSetHorizontalAlign(user_l,"center",false) 
            guiSetFont(user_l,"default-bold-small") 
            setElementData(user_l, "tooltip-text", "اسم حسابك", false) -- أضافة الكلام للزر 
            setElementData(user_l, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط 
            setElementData(user_l, "tooltip-background", "#666666", false) -- تغيير لون الخلفية 
            setElementData(user_l, "default-bold", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط 
            user1 = guiCreateEdit(476, 345, 159, 28, "", false, wnd) 
            setTimer(function() 
            guiSetProperty(user1, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 1000, 0) 
            user = guiCreateEdit(126, 343, 159, 28, "",false,wnd) 
            setTimer(function() 
            guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 1000, 0) 
            pass_2 = guiCreateLabel(462, 379, 177, 29, "Password", false,wnd) 
            function Color ( ) 
            guiLabelSetColor (pass_2, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
            end 
            setTimer ( Color, 1000, 0 ) 
            guiLabelSetHorizontalAlign(pass_2,"center",false) 
            guiSetFont(pass_2,"default-bold-small") 
            setElementData(pass_2, "tooltip-text", "كلمة سر حسابك", false) -- أضافة الكلام للزر 
            setElementData(pass_2, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط 
            setElementData(pass_2, "tooltip-background", "#666666", false) -- تغيير لون الخلفية 
            setElementData(pass_2, "default-bold", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط 
            pass_l = guiCreateLabel(115, 378, 177, 29, "Password",false,wnd) 
            function Color ( ) 
            guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
            end 
            setTimer ( Color, 1000, 0 ) 
            guiLabelSetHorizontalAlign(pass_l,"center",false) 
            guiSetFont(pass_l,"default-bold-small") 
            setElementData(pass_l, "tooltip-text", "كلمة سر حسابك", false) -- أضافة الكلام للزر 
            setElementData(pass_l, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط 
            setElementData(pass_l, "tooltip-background", "#666666", false) -- تغيير لون الخلفية 
            setElementData(pass_l, "default-bold", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط 
            pass1 = guiCreateEdit(475, 413, 159, 28, "", false,wnd) 
            setTimer(function() 
            guiSetProperty(pass1, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 100, 0) 
            guiEditSetMasked(pass1,true) 
            pass = guiCreateEdit(127, 414, 159, 28, "",false,wnd) 
            setTimer(function() 
            guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 100, 0) 
            guiEditSetMasked(pass,true) 
            remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) 
            guiSetFont(remember,"default-bold-small") 
            setTimer(function() 
            guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 1000, 0) 
            reg = guiCreateButton(470, 461, 175, 40, "Register",false,wnd) 
            guiSetFont(reg,"default-bold-small") 
            setTimer(function() 
            guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 1000, 0) 
            login = guiCreateButton(118, 466, 175, 40, "Login",false,wnd) 
            guiSetFont(login,"default-bold-small") 
            setTimer(function() 
            guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
                end, 1000, 0) 
  
  
            centerWindow(wnd) 
            triggerServerEvent("onGetSave",localPlayer) 
      
            addEvent("onPutSave",true) 
            addEventHandler("onPutSave",root, 
                function (puser,ppass) 
                    guiSetText(user,puser) 
                    guiSetText(pass,ppass) 
                end 
            ) 
              
            addEventHandler("onClientGUIClick",root, 
                function () 
                    if ( source == ex ) then 
                        guiSetVisible(wnd,false) 
                        showCursor(false) 
                        guiSetInputEnabled(false) 
                        Show() 
                    elseif ( source == english ) then 
                        guiSetText(user_l,"Username") 
                        guiSetText(pass_l,"Password") 
                        guiSetText(login,"Login") 
                        guiSetText(reg,"Register") 
                        guiSetText(remember,"Remember Me !!") 
                    elseif ( source == arabic ) then 
                        guiSetText(user_l,"اسم المستخدم") 
                        guiSetText(pass_l,"كلمه المرور") 
                        guiSetText(login,"تسجيل الدخول") 
                        guiSetText(reg,"حساب جديد") 
                        guiSetText(remember,"تذكرني") 
                    end 
                end 
            ) 
              
            addEventHandler("onClientGUIClick",root, 
                function () 
                    local user = guiGetText(user) 
                    local pass = guiGetText(pass) 
                    local user1 = guiGetText(user1) 
                    local pass1 = guiGetText(pass1) 
                    if ( source == login ) then 
                        if user ~= "" and pass ~= "" then 
                            if guiCheckBoxGetSelected(remember) then 
                                triggerServerEvent("onRequestLogin",localPlayer,user,pass) 
                            else 
                                triggerServerEvent("onRequestLogin",localPlayer,user,pass) 
                            end 
                        else 
                            outputChatBox("* You Must Write Username Or Password",255,0,0) 
                        end 
                    elseif ( source == reg ) then 
                        if user1 ~= "" and pass1 ~= "" then 
                            triggerServerEvent("onRequestRegister",localPlayer,user1,pass1) 
                        else 
                            outputChatBox("* You Must Write Username Or Password",255,0,0) 
                        end 
                    end 
                end 
            ) 

سيرفر

-- Login handling 
function loginPlayer(username,password) 
    if not (username == "") then 
        if not (password == "") then 
            local account = getAccount ( username, password ) 
            if ( account ~= false ) then 
                logIn (source, account, password) 
                triggerClientEvent (source,"onCl",getRootElement()) 
            else 
                OutPut( "user name or paassward is wrong",source,255,255,0) 
            end 
        else 
            OutPut( "enter password",source,255,255,0) 
        end 
    else 
        OutPut( "enter user name",source,255,255,0) 
    end 
end 
  
-- Registration here 
function registerPlayer(username,password,passwordConfirm) 
    if not (username == "") then 
        if not (password == "") then 
            if not (passwordConfirm == "") then 
                if password == passwordConfirm then 
                    local account = getAccount (username,password) 
                    if (account == false) then 
                        local accountAdded = addAccount(tostring(username),tostring(password)) 
                        if (accountAdded) then 
                            triggerClientEvent(source,"onCl",getRootElement()) 
                            outputChatBox ("#0000FF* #FFFFFFYou have sucessfuly registered! [username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",source,255,255,255,true ) 
                            setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) 
                        else 
                            OutPut( "use another user name",source,255,255,0) 
  
                        end 
                    else 
                        OutPut(  "Choose another user name",source,255,255,0) 
                    end 
                else 
                    OutPut(  "Choose another passwordى",source,255,255,0) 
                end 
            else 
                    OutPut(  "Repeat password",source,255,255,0) 
            end 
        else 
            OutPut(  "error: enter password",source,255,255,0) 
        end 
    else 
        OutPut(   "Enter your account name and password Who would like to register",source,255,255,0) 
    end 
end 
  
addEvent("onRequestLogin",true) 
addEvent("onRequestRegister",true) 
addEventHandler("onRequestLogin",getRootElement(),loginPlayer) 
addEventHandler("onRequestRegister",getRootElement(),registerPlayer) 

بس مشكلة انه مفروض يجي كتابة من يمين الي شمال

بس ماجت وش حل

تر في ملفات تانيه بس مشكله انها مشفره

Edited by Guest
Link to comment

اوفففففففففففففففففففففففففف

جاني تانييييييي

ياولد وقف مو كل شيء مود مسروق

اول انا اخده من نت وتعبت من تعديل علية

شف

    
             
            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    
             
            local sm = {}
            sm.moov = 0
            sm.object1, sm.object2 = nil, nil
             
            local function removeCamHandler ()
                if(sm.moov == 1) then
                    sm.moov = 0
                    removeEventHandler ( "onClientPreRender", getRootElement(), camRender )
                end
            end
 
function anim(tag,animTime,de1,de2,de3,hasta1,hasta2,hasta3,typeAnim)
    local now = getTickCount()
    local endTime = tag + animTime
    local elapsedTime = now - tag
    local duration = endTime - tag
    local progress = elapsedTime / duration
    local a, b, c = interpolateBetween ( de1,de2,de3,hasta1,hasta2,hasta3, progress, typeAnim)
   
    return a, b, c
end        
           
            function camRender ()
                if sm.object1 and isElement(sm.object1) then
                    local x1, y1, z1 = getElementPosition ( sm.object1 )
                    local x2, y2, z2 = getElementPosition ( sm.object2 )
                    setCameraMatrix ( x1, y1, z1, x2, y2, z2 )
                end
            end
             
            function smoothMoveCamera ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time )
                if(sm.moov == 1) then return false end
                sm.object1 = createObject ( 1337, x1, y1, z1 )
                sm.object2 = createObject ( 1337, x1t, y1t, z1t )
                setElementAlpha ( sm.object1, 0 )
                setElementAlpha ( sm.object2, 0 )
                setObjectScale(sm.object1, 0.01)
                setObjectScale(sm.object2, 0.01)
                moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, "InOutQuad" )
                moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, "InOutQuad" )
               
                addEventHandler ( "onClientPreRender", getRootElement(), camRender )
                sm.moov = 1
                setTimer ( removeCamHandler, time, 1 )
                setTimer ( destroyElement, time, 1, sm.object1 )
                setTimer ( destroyElement, time, 1, sm.object2 )
                return true
            end
 
 
 
 
x, y = guiGetScreenSize()
font="default-bold"
fontTam=5
 
spcGam=dxGetTextWidth ("server-SH-3",fontTam,font)  -- اسم سيرفرك بالنجليزي
 
 
 
function intro()
    ahora = getTickCount()
    count=ahora-start
    dxDrawImage(0, 0, x, y, 'fondo.png',0,0,0,tocolor(255,255,255),false)
    sizeX=64*1.21
    sizeY=64*1.21
    varX,varY,varZ = anim(start,1000,spcGam,0,0,0,spcGam,150,"OutBack")
    dxDrawText("server-SH-3",0+x/2-varY/2,y/2-100,varY+x/2-varY/2,y,tocolor(38,205,0,255),fontTam,font,nil,nil,true)   ---- اسم سيرفرك
    dxDrawText("",1+x/-varY/6-dxGetTextWidth ("i",fontTam,font),y/2-100,varY+x/2-varY/2,y,tocolor(255,255,255,255),fontTam,font,nil,nil,false,false,false,true)
    dxDrawText("♥",x/2+varY/2,y/2-100,varY+x/2-varY/2,y,tocolor(255,255,255,255),fontTam,font,nil,nil,false,false,false,true)
    if (count>1500) then
    varX2,varY2,varZ2 = anim(start+1500,1000,0,0,0,200,250,360,"OutBack")
    dxDrawText("اهلا وسهلا بكم في سيرفر عشاق الوناسة",0+x/2-varY/2,y/2-100+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true)   ---- اسم سيرفرك
    dxDrawText("نتمنا  ان ينال السيرفر اعجابكم",0+x/2-varY/2,y/2-80+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true)   ---- اسم سيرفرك  
   dxDrawText("Welcome to sever__SH-3 ...",0+x/2-varY/2,y/2-60+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true)
   end
    if (count>2000) then
        varX2,varY3,varZ3 = anim(start+2000,1000*10,0,0,0,200,250,360*5,"Linear")
    dxDrawImage ( x/2-sizeX/2, y/2+50, sizeX, sizeY, 'img/cargando2.png',180+varZ3)
    dxDrawText("Loading..",12,y/2+60+sizeY+1,x,y,tocolor(0,0,0,85),1.5,font,"center",nil,false,false,false,true)
    dxDrawText("Loading..",10,y/2+60+sizeY,x,y,tocolor(255,255,255,255),1.5,font,"center",nil,false,false,false,true)
    end
end
 
function anim(tag,animTime,de1,de2,de3,hasta1,hasta2,hasta3,typeAnim)
    local now = getTickCount()
    local endTime = tag + animTime
    local elapsedTime = now - tag
    local duration = endTime - tag
    local progress = elapsedTime / duration
    local a, b, c = interpolateBetween ( de1,de2,de3,hasta1,hasta2,hasta3, progress, typeAnim)
   
    return a, b, c
end
 
fileDelete("intro_c.lua")
 
 
 
 
 
local sx, sy = guiGetScreenSize()
 
alpha = 250
MP = "files/1.png"
MX = sx
MY = sy
 
function adjIntro(adj)
    _, times = getTimerDetails(IntroTimer)
    if adj == "M1" then
        MX = (MX*0.95)+5
        MY = (MY*0.95)
        if times == 1 then
            setTimer(function()
                if (alpha <= 250) and not (alpha <= 0) then
                    alpha = alpha - 10
                else
                    IntroTimer = setTimer(adjIntro, 50, 26, "M2")
                end
            end, 50, 26)
        end
    elseif adj == "M2" then
        if (alpha < 250) and (alpha >= 0) then
            alpha = alpha + 10
        end
        MX = (MX/0.95)-5
        MY = (MY/0.95)
        MP = "files/2.png"
        if times == 1 then
            setTimer(function()
                MP = "files/3.png"
                setTimer(function()
                    IntroTimer = setTimer(adjIntro, 50, 26, "M3")
                end, 3500, 1)
            end, 4000, 1)
        end
    elseif adj == "M3" then
            MX = (MX*0.95)+5
            MY = (MY*0.95)
        if times == 1 then
            MP = "files/4.png"
            MX = (MX/0.95)-5
            MY = (MY/0.95)
            setTimer(function()
                setTimer(function()
                    if (alpha <= 250) and not (alpha <= 0) then
                        alpha = alpha - 10
                    else
                        removeEventHandler("onClientRender", root, drawIntro)
                        fadeCamera(true, 6, 0, 0, 0)
                        setCameraMatrix(-1475.5, 831.18, 65.5, -1487.5, 800.18, 65.5)
                        dx = true
                        showCursor(true)
                        guiSetVisible(wnd, true)
                        destroyElement(IntroSong)
                    end
                end, 50, 26)
            end, 3500, 1)
        end
    end
end
 
function drawIntro()
    dxDrawImage(sx/2-(MX/2), sy/2-(MY/2), MX, MY, MP, 0, 0, 0, tocolor(255, 255, 255, alpha))
end
 
function main()
    fadeCamera(false, 0)
    showChat(false)
    IntroSong = playSound("files/Intro.mp3")
    showPlayerHudComponent("all", false)
    start = getTickCount()
    addEventHandler("onClientRender",getRootElement(),intro)
    setTimer ( function()
    removeEventHandler("onClientRender",getRootElement(),intro)
    IntroTimer = setTimer(adjIntro, 50, 26, "M1")
    addEventHandler("onClientRender", root, drawIntro)
    triggerEvent("onFinishIntro",getRootElement())
    setCameraMatrix(-1475.5, 831.18, 65.5, -1487.5, 800.18, 65.5)
   
    guiSetInputEnabled(true)
 
    setElementDimension(localPlayer,0)
 
    setElementData(localPlayer,"new",false)
 
    outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true)
   
    end, 5000, 1 )
end
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),main)
 
 
            wnd = guiCreateStaticImage(45, 8, 718, 544, "files/1.png",false)
 
            english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd)
            guiSetFont(english,"default-bold-small")
    guiSetVisible(wnd,false)
            setTimer(function()
            guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255)))
                end, 1000, 0)
            arabic = guiCreateButton(621, 372, 125, 125, "Ar",true,wnd)
            guiSetFont(arabic,"default-bold-small")
            setTimer(function()
            guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255)))
                end, 1000, 0)
            user_2 = guiCreateLabel(463, 310, 177, 29, "Username", false, wnd)
            function Color ( )
            guiLabelSetColor (user_2, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
            end
            setTimer ( Color, 1000, 0 )
            guiLabelSetHorizontalAlign(user_2,"center",false)
            guiSetFont(user_2,"default-bold-small")
            setElementData(user_2, "tooltip-text", "اسم حسابك", false) -- أضافة الكلام للزر
            setElementData(user_2, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط
            setElementData(user_2, "tooltip-background", "#666666", false) -- تغيير لون الخلفية
            setElementData(user_2, "default-bold", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط
            user_l = guiCreateLabel(115, 310, 177, 29, "Username",false,wnd)
            function Color ( )
            guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
            end
            setTimer ( Color, 1000, 0 )
            guiLabelSetHorizontalAlign(user_l,"center",false)
            guiSetFont(user_l,"default-bold-small")
            setElementData(user_l, "tooltip-text", "اسم حسابك", false) -- أضافة الكلام للزر
            setElementData(user_l, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط
            setElementData(user_l, "tooltip-background", "#666666", false) -- تغيير لون الخلفية
            setElementData(user_l, "default-bold", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط
            user1 = guiCreateEdit(476, 345, 159, 28, "", false, wnd)
            setTimer(function()
            guiSetProperty(user1, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255)))
                end, 1000, 0)
            user = guiCreateEdit(126, 343, 159, 28, "",false,wnd)
            setTimer(function()
            guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255)))
                end, 1000, 0)
            pass_2 = guiCreateLabel(462, 379, 177, 29, "Password", false,wnd)
            function Color ( )
            guiLabelSetColor (pass_2, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
            end
           
Link to comment

شف اخوي انت تجيب مودات جاهزه من النت وتقول عدلوها لي وضبطوها كذا ماينفع

معك شي سويته بنفسك او سويته بمساعدة الاخرين او احتجت مساعده الأخرين كذا راح يساعدوك

اما انك تجيب مود جاهز من النت وكله اخطاء او ناقص ما اتوقع في احد راح يساعدك لانه ماراح يفضي وقته عشان شي غبي

اتمنى تتقبل مروري

Link to comment

شف الحين مود مافي شيء

خلاص طيب شيل جاهز

انا الحين

ابي اعرف كيف

اخلي كلام ييجي من يمين الي شمال زي تسجيل الي في سيرفر الوزارة

يجي من شمال الي يمين ممكن انا قلت لكم كدا من زمان

بس انتم ماتفهمون

قلتو في اخطاء قلنا ماشيء بس الي ابيه كيف اسوي كلام يجي من شمال الي يسار ممكن

طبي مو صعب انا مو قلت عدلوهاااا

كل الي قلته كيف اسويها فياريت مساعدة

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...