Jump to content

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


SmoKing

Recommended Posts

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
  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

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

الكود حق النوافذ شغال -_-" من الاصل اقصد النوافذ ظاهره اصلا يعني المفروض تخفيها ! عشان تظهر ! فـ يكون كذا :

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]) 
guiSetVisible(GUIEditor_Image[10],false)  
 guiSetVisible(GUIEditor_Image[7],false)  
guiSetVisible(GUIEditor_Image[4],false)  
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", getRootElement(),  
function (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 
) 

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 

اذا يبي يزود يستخدم

elseif 

:fadein:

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(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[5] = guiCreateStaticImage(204,18,451,558,"win1.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[6] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win2.png",false,GUIEditor_Image[6]) 
guiSetVisible(GUIEditor_Image[3],false) 
guiSetVisible(GUIEditor_Image[5],false) 
guiSetVisible(GUIEditor_Image[7],false) 
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", getRootElement(), 
function (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Image[2]) then 
showCursor(false) 
  guiSetVisible(GUIEditor_Image[3],true) 
  elseif(source == GUIEditor_Image[4]) then 
showCursor(false) 
  guiSetVisible(GUIEditor_Image[5],true) 
  elseif(source == GUIEditor_Image[6]) then 
showCursor(false) 
  guiSetVisible(GUIEditor_Image[7],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(204,18,451,558,"win.png",false,GUIEditor_Image[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[5] = guiCreateStaticImage(204,18,451,558,"win1.png",false,GUIEditor_Image[4]) 
GUIEditor_Image[6] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) 
GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win2.png",false,GUIEditor_Image[6]) 
guiSetVisible(GUIEditor_Image[3],false) 
guiSetVisible(GUIEditor_Image[5],false) 
guiSetVisible(GUIEditor_Image[7],false) 
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", getRootElement(), 
function (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Image[2]) then 
showCursor(false) 
  guiSetVisible(GUIEditor_Image[3],true) 
  elseif(source == GUIEditor_Image[4]) then 
showCursor(false) 
  guiSetVisible(GUIEditor_Image[5],true) 
  elseif(source == GUIEditor_Image[6]) then 
showCursor(false) 
  guiSetVisible(GUIEditor_Image[7],true) 
    end 
end 
) 

جربتة بـ لوحة عادية واشتغل ( = !!؟

المشكلة من عندكك ! واذا احد شايف ان الكود فية خطأ يـتفضل يطرحة ويعدلة [=

Link to comment
غيرت الصوره ولا ضبط

سوية لك مثال شفه وطبق عليه ورد لي خبر

wndone = guiCreateWindow(450, 157, 312, 243, "For Help", false) 
guiWindowSetSizable(wndone, false) 
showCursor(true) 
  
btn = guiCreateButton(25, 88, 56, 29, "btn help", false, wndone) 
guiSetProperty(btn, "NormalTextColour", "FFAAAAAA") 
  
btntow = guiCreateButton(145, 88, 56, 29, "btn help tow", false, wndone) 
guiSetProperty(btntow, "NormalTextColour", "FFAAAAAA") 
  
  
wndtow = guiCreateWindow(447, 407, 316, 205, "wnd tow", false) 
guiWindowSetSizable(wndtow, false) 
 guiSetVisible(wndtow,false) 
  
wndtre = guiCreateWindow(0, 0, 316, 205, "wnd tre", false) 
guiWindowSetSizable(wndtre, false) 
 guiSetVisible(wndtre,false) 
  
  
function open(button, state, absoluteX, absoluteY) 
  if (source == btn) then 
showCursor(true) 
  guiSetVisible(wndtow,true) 
  guiSetVisible(wndone,false) 
  elseif (source == btntow) then 
showCursor(true) 
  guiSetVisible(wndtow,false) 
  guiSetVisible(wndone,false) 
  guiSetVisible(wndtre,true) 
end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), open) 

Link to comment
image1 = guiCreateStaticImage(0,0,105,599,"bar.png", false) 
image2 = guiCreateStaticImage(21,38,77,117,"lea.png", false, image1) 
image3 = guiCreateStaticImage(20,229,69,131,"mem.png", false, image1) 
image4 = guiCreateStaticImage(21,424,76,156,"cw.png", false, image1) 
  
image5 = guiCreateStaticImage(218,23,412,550,"win.png", false) 
guiSetVisible(image5,false) 
image6 = guiCreateStaticImage(218,23,412,550,"win1.png", false) 
guiSetVisible(image6,false) 
image7 = guiCreateStaticImage(218,23,412,550,"win2.png", false) 
guiSetVisible(image7,false) 
image8 = guiCreateStaticImage(363,23,119,28,"leaw.png", false) 
guiSetVisible(image8,false) 
image9 = guiCreateStaticImage(363,23,119,28,"memw.png", false) 
guiSetVisible(image9,false) 
image10 = guiCreateStaticImage(363,23,119,28,"cww.png", false) 
guiSetVisible(image10,false) 
  
function open() 
    guiSetVisible(image1,not guiGetVisible(image1)) 
    showCursor(guiGetVisible(image1)) 
    guiSetInputEnabled(guiGetVisible(image1)) 
  guiSetVisible(image5,false) 
  guiSetVisible(image6,false) 
  guiSetVisible(image7,false) 
  guiSetVisible(image8,false) 
  guiSetVisible(image9,false) 
  guiSetVisible(image10,false) 
end 
bindKey("F1","down",open) 
  
function open(button, state, absoluteX, absoluteY) 
  if (source == image2) then 
showCursor(true) 
  guiSetVisible(image5,true) 
  guiSetVisible(image6,false) 
  guiSetVisible(image7,false) 
  guiSetVisible(image8,true) 
  guiSetVisible(image9,false) 
  guiSetVisible(image10,false) 
  elseif (source == image3) then 
showCursor(true) 
  guiSetVisible(image5,false) 
  guiSetVisible(image6,true) 
  guiSetVisible(image7,false) 
  guiSetVisible(image8,false) 
  guiSetVisible(image9,true) 
  guiSetVisible(image10,false) 
  elseif (source == image4) then 
showCursor(true) 
  guiSetVisible(image5,false) 
  guiSetVisible(image6,false) 
  guiSetVisible(image7,true) 
  guiSetVisible(image8,false) 
  guiSetVisible(image9,false) 
  guiSetVisible(image10,true) 
end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), open) 

Link to comment

image1 = guiCreateStaticImage(0,0,105,599,"bar.png", false) 
guiSetVisible(image1,false) 
image2 = guiCreateStaticImage(21,38,77,117,"lea.png", false, image1) 
image3 = guiCreateStaticImage(20,229,69,131,"mem.png", false, image1) 
image4 = guiCreateStaticImage(21,424,76,156,"cw.png", false, image1) 
  
image5 = guiCreateStaticImage(218,23,412,550,"win.png", false) 
guiSetVisible(image5,false) 
image6 = guiCreateStaticImage(218,23,412,550,"win1.png", false) 
guiSetVisible(image6,false) 
image7 = guiCreateStaticImage(218,23,412,550,"win2.png", false) 
guiSetVisible(image7,false) 
image8 = guiCreateStaticImage(363,23,119,28,"leaw.png", false) 
guiSetVisible(image8,false) 
image9 = guiCreateStaticImage(363,23,119,28,"memw.png", false) 
guiSetVisible(image9,false) 
image10 = guiCreateStaticImage(363,23,119,28,"cww.png", false) 
guiSetVisible(image10,false) 
  
function open() 
    guiSetVisible(image1,not guiGetVisible(image1)) 
    showCursor(guiGetVisible(image1)) 
    guiSetInputEnabled(guiGetVisible(image1)) 
  guiSetVisible(image5,false) 
  guiSetVisible(image6,false) 
  guiSetVisible(image7,false) 
  guiSetVisible(image8,false) 
  guiSetVisible(image9,false) 
  guiSetVisible(image10,false) 
end 
bindKey("F1","down",open) 
  
function oppen(button, state, absoluteX, absoluteY) 
  if (source == image2) then 
showCursor(true) 
  guiSetVisible(image5,true) 
  guiSetVisible(image6,false) 
  guiSetVisible(image7,false) 
  guiSetVisible(image8,true) 
  guiSetVisible(image9,false) 
  guiSetVisible(image10,false) 
  elseif (source == image3) then 
showCursor(true) 
  guiSetVisible(image5,false) 
  guiSetVisible(image6,true) 
  guiSetVisible(image7,false) 
  guiSetVisible(image8,false) 
  guiSetVisible(image9,true) 
  guiSetVisible(image10,false) 
  elseif (source == image4) then 
showCursor(true) 
  guiSetVisible(image5,false) 
  guiSetVisible(image6,false) 
  guiSetVisible(image7,true) 
  guiSetVisible(image8,false) 
  guiSetVisible(image9,false) 
  guiSetVisible(image10,true) 
end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), oppen) 
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...