Jump to content

تعديل كودات .. تمت الإفادهـ


SmoKing

Recommended Posts

شباب انا سويت الاكواد وكل شي بس اذا ضغطت على الصور مايطلع لي اللوحه ابي اذا ضغطت على الصوره يطلع لي لوحه

-- Client side 
  
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,4,105,595,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) --- اذا ضغطت ذي الصوره ابيها تطلع لي win الي تحت 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) --- وهنا كمان زي الي فوق 
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) --- وهنا كمان زي الي فوق 
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
  

ابيها تطلع معها النافذه + الصور leaw - memw - cww

Edited by Guest
Link to comment
  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

اللوحه هي صوره اسمها win

ابيهم كل ماتضغط الي حددتها انا تطلع الصوره نفسها

الوضع معقد بالنسبة لي من كثر الصور انلحست اللي عليك تستخدم /

guiSetVisible 

لـ

اخفاء النوافذ..الخ

او اظهارها

Link to comment

طيب ي برستيج كذا صح

-- Client side 
  
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,4,105,595,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    guiSetVisible(GUIEditor_Image[2],not guiGetVisible(GUIEditor_Image[4])) 
    guiSetVisible(GUIEditor_Image[5],not guiGetVisible(GUIEditor_Image[7])) 
    guiSetVisible(GUIEditor_Image[8],not guiGetVisible(GUIEditor_Image[10])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
  

Link to comment
يب
-- Client side 
  
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,4,105,595,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1])  
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1])  
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
  
  
addEventHandler('onClientGUIClick', root, 
function() 
        if ( source == GUIEditor_Image[2] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
      elseif ( source == GUIEditor_Image[3] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
      elseif ( source == GUIEditor_Image[4] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
      elseif ( source == GUIEditor_Image[5] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
      elseif ( source == GUIEditor_Image[6] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
      elseif ( source == GUIEditor_Image[7] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
      elseif ( source == GUIEditor_Image[8] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
      elseif ( source == GUIEditor_Image[9] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
      elseif ( source == GUIEditor_Image[10] ) then 
        guiSetVisible( GUIEditor_Image[1], true ) 
       end 
end 
) 

Link to comment
-- Client side 
  
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,4,105,595,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1])  
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1])  
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
  
  
addEventHandler('onClientGUIClick', root, 
function() 
        if ( source == GUIEditor_Image[2] ) then 
        guiSetVisible( GUIEditor_Image[3], true ) 
        guiSetVisible( GUIEditor_Image[4], true ) 
      elseif ( source == GUIEditor_Image[5] ) then 
        guiSetVisible( GUIEditor_Image[6], true ) 
        guiSetVisible( GUIEditor_Image[7], true ) 
      elseif ( source == GUIEditor_Image[8] ) then 
        guiSetVisible( GUIEditor_Image[9], true ) 
        guiSetVisible( GUIEditor_Image[10], true ) 
       end 
end 
) 

Link to comment

الرجال قال ارفعه وارسله خآص :|

لو تبي تظغط على صورة وتفتح نافذه استعمل

  
-- client side 
function open(button, state, absoluteX, absoluteY) 
  if (source == btn) then -- اسم الزر او الصورة اللي تبيها تفتح اللوحة 
showCursor(true) -- اظهار الماوس 
  guiSetVisible(اسم النافذه اللي تبيها تظهر,true) -- جعل النافذه تظهر 
end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), open) 
  

واذا تبي تزود حط

else 

Link to comment

ماضبط يتدمير

GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
  
  
function open(button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Image[2]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[4],true) 
  else (source == GUIEditor_Image[5]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[7],true) 
  else (source == GUIEditor_Image[8]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[10],true) 
  
end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), open) 

Link to comment
ماضبط يتدمير
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
  
  
function open(button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Image[2]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[4],true) 
  else (source == GUIEditor_Image[5]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[7],true) 
  else (source == GUIEditor_Image[8]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[10],true) 
  
end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), open) 

GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
  
  
function open(button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Image[2]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[4],true) 
  elseif(source == GUIEditor_Image[5]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[7],true) 
  elseif(source == GUIEditor_Image[8]) then 
  showCursor(true) 
  guiSetVisible(GUIEditor_Image[10],true)  
         end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), open) 

Link to comment
ماضبط

اول كان يشتغل اف1 ويطلع الصور

بس يوم اضغط على الصور مايطلع لوحه ثانيه

الحين مايشتغل لا ذا ولا ذا

مانتبهت انة فية فنكشن بـ نفس الاسم :mrgreen: :

GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
  
  
function oen(button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Image[2]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[4],true) 
  elseif(source == GUIEditor_Image[5]) then 
showCursor(true) 
  guiSetVisible(GUIEditor_Image[7],true) 
  elseif(source == GUIEditor_Image[8]) then 
  showCursor(true) 
  guiSetVisible(GUIEditor_Image[10],true)  
         end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), oen) 

Link to comment
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
addEventHandler('onClientGUIClick', resourceRoot, 
function( button, state, absoluteX, absoluteY ) 
    if (source == GUIEditor_Image[2] ) then 
    guiSetVisible(GUIEditor_Image[4] , true ) 
    showCursor(true) 
    elseif(source == GUIEditor_Image[5]) then 
    guiSetVisible(GUIEditor_Image[7],true) 
    elseif(source == GUIEditor_Image[8]) then 
    guiSetVisible(GUIEditor_Image[10],true)  
  end 
end 
) 
    

Link to comment
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) 
GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) 
  
function open() 
    guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) 
    showCursor(guiGetVisible(GUIEditor_Image[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) 
end 
bindKey("F1","down",open) 
addEventHandler('onClientGUIClick', resourceRoot, 
function( button, state, absoluteX, absoluteY ) 
    if (source == GUIEditor_Image[2] ) then 
    guiSetVisible(GUIEditor_Image[4] , true ) 
    showCursor(true) 
    elseif(source == GUIEditor_Image[5]) then 
    guiSetVisible(GUIEditor_Image[7],true) 
    elseif(source == GUIEditor_Image[8]) then 
    guiSetVisible(GUIEditor_Image[10],true)  
  end 
end 
) 
    

احلف :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...