Jump to content

طلب كود


yazan

Recommended Posts

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

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) 
GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) 
GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) 
GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) 
GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/yazan.png",false,GUIEditor_Window[1]) 
  
  
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F2","down",open) 
  

Link to comment

ممكن تصحيح

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) 
GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) 
GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) 
GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) 
GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/mtalogo.png",false,GUIEditor_Window[1]) 
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F3","down",open) 
  
 elseif ( source == GUIEditor_Button[1] ) then 
setElementPosition ( thePlayer, command, username, password ) 
local account = getAccount ( username, password ) 
if ( account ~= false ) then 
logIn ( thePlayer, account, password ) 
elseif ( source == GUIEditor_Button[2] ) then 
 registerPlayer ( source, commandName, password ) 
if ( password ~= "" and password ~= nil ) then 
    local accountAdded = addAccount( getPlayerName(source), password ) 
if ( accountAdded ) then 
setElementPosition, registerPlayer ) 
  

Link to comment
ممكن تصحيح
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) 
GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) 
GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) 
GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) 
GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/mtalogo.png",false,GUIEditor_Window[1]) 
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F3","down",open) 
  
 elseif ( source == GUIEditor_Button[1] ) then 
setElementPosition ( thePlayer, command, username, password ) 
local account = getAccount ( username, password ) 
if ( account ~= false ) then 
logIn ( thePlayer, account, password ) 
elseif ( source == GUIEditor_Button[2] ) then 
 registerPlayer ( source, commandName, password ) 
if ( password ~= "" and password ~= nil ) then 
    local accountAdded = addAccount( getPlayerName(source), password ) 
if ( accountAdded ) then 
setElementPosition, registerPlayer ) 
  

خرابيط كله :lol:

شوف الموضوع حطيتة لك فوق كل شيء جاهز ذذ بس عددل الكلنت خذ الفنكشن onClientGUIClick .

كامل وعدلة لـ كودك :mrgreen:

Link to comment

-- Client 
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) 
GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) 
GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) 
GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) 
GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/yazan.png",false,GUIEditor_Window[1]) 
  
  
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F2","down",open) 
  
  
 addEventHandler("onClientGUIClick",root, 
    function () 
        local user = guiGetText(GUIEditor_Memo[1]) 
        local pass = guiGetText(GUIEditor_Memo[2]) 
        if ( source == GUIEditor_Button[1] ) then 
            if string.len(user) > 0 and string.len(pass) > 0 then 
                triggerServerEvent("onLogin",localPlayer,user,pass) 
            end 
        elseif ( source == GUIEditor_Button[2] ) then 
            if string.len(user) > 0 and string.len(pass) > 0 then 
                triggerServerEvent("onRegister",localPlayer,user,pass) 
            end 
        end 
    end 
) 

-- Server  
  
addEvent("onLogin",true) 
addEventHandler("onLogin",root, 
    function (user,pass) 
        local acc = getAccount(user,pass) 
        if ( acc ) then 
            logIn(source,acc,pass) 
        else 
            outputChatBox("* Worng Username Or Password",source,255,0,0) 
        end 
    end 
) 
  
addEvent("onRegister",true) 
addEventHandler("onRegister",root, 
    function (user,pass) 
        local acc = getAccount(user,pass) 
        if ( acc ) then 
            outputChatBox("* This Account is Already Exist",source,255,0,0) 
        else 
            addAccount(user,pass) 
            outputChatBox("* You,re User : " .. user,source,255,255,255) 
            outputChatBox("* You,re Pass : " .. pass,source,255,255,255) 
        end 
    end 
) 
  
  

وانت مسوي ميمو ماسويت ايديت ممكن يحصل مشاكل ما اعتقد بس عادهـ ايديت :lol:

يحتاج ادمنية السكربت resource.Name

Link to comment
مو شغال اعطيطها صلحيه ادمن و حطيط كلنت +سيرفر و ميتا شغال و بس نفس لوحه امور رز غلط

اللوحة لحسة شوي ماتقدر تسويها على نفس لوحتك لانة سهله -_-" ! :| ؟

انت كذا معطيه اكواد مود كامل من لوحة شخص اخر :lol:

كذا عليهه هو اللوحة بس @@"

:lol:

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...