Jump to content

مساعدة


Recommended Posts

-_-

if guiGetText(GUIEditor.edit[1]) == "Test" then 
    guiSetVisible(w2, true) 
    guiSetVisible(w1, false) 
    showCursor(true) 
    outputChatBox("Welcome !") 
    else 
    outputChatBox("This Password Are Not Correct") 
end 
  

تحطها يوم يضغط الزر

Link to comment
اانا معطيك بس مثال وانت عاد تكمل

لكن تفاجئت لما حطيته باخر سطر وشغلته :lol::lol::lol::lol:

طيب عطني الكود :/

هات 5 ريال وعطيك الكود :D

ترا ماحنا شغالين عندك

سوي لك افنت ضغط الزر

وحط المثال فيه

وجرب

و :idea:

Link to comment

عطاك مثال ما باقي الا تحطه في حدث

Button = Your button

edit = Your edit

addEventHandler ("onClientGUIClick",Button, 
function () 
if guiGetText(edit) == "Password" then 
    guiSetVisible(wnd, true) 
    showCursor(true) 
          end 
    end,false 
) 
Link to comment
عطاك مثال ما باقي الا تحطه في حدث

Button = Your button

edit = Your edit

addEventHandler ("onClientGUIClick",Button, 
function () 
if guiGetText(edit) == "Password" then 
    guiSetVisible(wnd, true) 
    showCursor(true) 
          end 
    end,false 
) 

طيب دة ماشتغل

GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        mp = guiCreateWindow(237, 157, 352, 292, "Password", false) 
        guiWindowSetSizable(mp, false) 
        guiSetVisible(mp, false) 
        mpe = guiCreateEdit(68, 94, 203, 25, "", false, mp) 
        guiSetProperty(mpe, "NormalTextColour", "FFFF0000") 
        mpb = guiCreateButton(45, 173, 236, 55, "Press Here", false, mp) 
        guiSetProperty(mpb, "NormalTextColour", "FFAAAAAA") 
  
  
        mp2 = guiCreateWindow(54, 161, 166, 278, "Welcome", false) 
        guiWindowSetSizable(mp2, false) 
        guiSetVisible(mp2, false) 
        GUIEditor.button[1] = guiCreateButton(13, 125, 128, 47, "Hello !", false, mp2) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
addEventHandler ("onClientGUIClick",mpd, 
function () 
if guiGetText(mpe) == "Go" then 
    guiSetVisible(mp2, true) 
    showCursor(true) 
          end 
    end,false 
) 
  
  
       guiSetVisible (mp, false)   
function Owv() 
    if guiGetVisible ( mp ) then 
       guiSetVisible ( mp, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( mp, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F1", "down", Owv) 

Link to comment

تأكد أنك ضغط الزرالي اسمه

mpd

GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        mp = guiCreateWindow(237, 157, 352, 292, "Password", false) 
        guiWindowSetSizable(mp, false) 
        guiSetVisible(mp, false) 
        mpe = guiCreateEdit(68, 94, 203, 25, "", false, mp) 
        guiSetProperty(mpe, "NormalTextColour", "FFFF0000") 
        mpb = guiCreateButton(45, 173, 236, 55, "Press Here", false, mp) 
        guiSetProperty(mpb, "NormalTextColour", "FFAAAAAA") 
  
  
        mp2 = guiCreateWindow(54, 161, 166, 278, "Welcome", false) 
        guiWindowSetSizable(mp2, false) 
        guiSetVisible(mp2, false) 
        GUIEditor.button[1] = guiCreateButton(13, 125, 128, 47, "Hello !", false, mp2) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
addEventHandler ("onClientGUIClick",root, 
function () 
if ( source == mpd ) then 
if guiGetText(mpe) == "Go" then 
    guiSetVisible(mp2, true) 
    showCursor(true) 
          end 
    end 
  end 
) 
  
  
       guiSetVisible (mp, false)   
function Owv() 
    if guiGetVisible ( mp ) then 
       guiSetVisible ( mp, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( mp, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F1", "down", Owv) 
Link to comment
تأكد أنك ضغط الزرالي اسمه

mpd

GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        mp = guiCreateWindow(237, 157, 352, 292, "Password", false) 
        guiWindowSetSizable(mp, false) 
        guiSetVisible(mp, false) 
        mpe = guiCreateEdit(68, 94, 203, 25, "", false, mp) 
        guiSetProperty(mpe, "NormalTextColour", "FFFF0000") 
        mpb = guiCreateButton(45, 173, 236, 55, "Press Here", false, mp) 
        guiSetProperty(mpb, "NormalTextColour", "FFAAAAAA") 
  
  
        mp2 = guiCreateWindow(54, 161, 166, 278, "Welcome", false) 
        guiWindowSetSizable(mp2, false) 
        guiSetVisible(mp2, false) 
        GUIEditor.button[1] = guiCreateButton(13, 125, 128, 47, "Hello !", false, mp2) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
addEventHandler ("onClientGUIClick",root, 
function () 
if ( source == mpd ) then 
if guiGetText(mpe) == "Go" then 
    guiSetVisible(mp2, true) 
    showCursor(true) 
          end 
    end 
  end 
) 
  
  
       guiSetVisible (mp, false)   
function Owv() 
    if guiGetVisible ( mp ) then 
       guiSetVisible ( mp, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( mp, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F1", "down", Owv) 

تمت الافادة

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