Jump to content

الي عنده خبرة في البرمجة يدخل


Mr.king

Recommended Posts

  • Replies 59
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

اطرح المود واسوية لك ذذ الكلنت اللوحة و وين الزر اللي تبية يغلق اللوحة ذذ
GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
------------------------------------- 
addEventHandler ( "onPlayerJoin", root, 
    function () 
        guiSetVisible ( GUIEditor_Window[1] ,true ) 
        showCursor ( true ) 
        guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) 
    end 
) 
------------------------------------- 
addEventHandler("onClientGUIClick",root, 
function () 
if ( source == GUIEditor_Image[1] ) then 
triggerServerEvent("onClick",localPlayer) 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
       end 
if ( source == GUIEditor_Image[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
triggerServerEvent("onClick1",localPlayer) 
    end 
end 
) 

Link to comment

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
  
----------------------------------------- 
  
showCursor ( true ) 
addEventHandler("onClientGUIClick",root, 
function () 
if ( source == GUIEditor_Image[1] ) then 
triggerServerEvent("onClick",localPlayer) 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
       end 
if ( source == GUIEditor_Image[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
triggerServerEvent("onClick1",localPlayer) 
    end 
end 
) 

اطلع وادخل

Link to comment
GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
  
----------------------------------------- 
  
showCursor ( true ) 
addEventHandler("onClientGUIClick",root, 
function () 
if ( source == GUIEditor_Image[1] ) then 
triggerServerEvent("onClick",localPlayer) 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
       end 
if ( source == GUIEditor_Image[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
triggerServerEvent("onClick1",localPlayer) 
    end 
end 
) 

اطلع وادخل

يحبيبي انا ابيه لما يخش الاعب يظهر الماوس له مولكل الناس ومع بداية المود

قصدي انت حاطه لما يبدء المود مو لما يخش الاعب وكمان مو بس للاعب الي خش للكل وش هذا انت خربطه

Link to comment

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
  
  
addEventHandler("onClientPlayerJoin", resourceRoot, 
function () 
showCursor (true) 
end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if ( source == GUIEditor_Image[1] ) then 
triggerServerEvent("onClick",localPlayer) 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
       end 
if ( source == GUIEditor_Image[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
triggerServerEvent("onClick1",localPlayer) 
    end 
end 
) 
Link to comment
GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
  
  
addEventHandler("onClientPlayerJoin", resourceRoot, 
function () 
showCursor (true) 
end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if ( source == GUIEditor_Image[1] ) then 
triggerServerEvent("onClick",localPlayer) 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
       end 
if ( source == GUIEditor_Image[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
triggerServerEvent("onClick1",localPlayer) 
    end 
end 
) 

جربته بس الماوس ماظهر!!

Link to comment
GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
  
  
addEventHandler("onClientPlayerJoin", resourceRoot, 
function () 
showCursor (true) 
end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if ( source == GUIEditor_Image[1] ) then 
triggerServerEvent("onClick",localPlayer) 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
       end 
if ( source == GUIEditor_Image[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
triggerServerEvent("onClick1",localPlayer) 
    end 
end 
) 

جربته بس الماوس ماظهر!!

showCursor ( true ) 

Link to comment

جرب ذا :

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
  
----------------------------------------- 
addEventHandler("onClientResourceStart", resourceRoot, 
function () 
    showCursor(true) 
  end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if ( source == GUIEditor_Image[1] ) then 
triggerServerEvent("onClick",localPlayer) 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
       end 
if ( source == GUIEditor_Image[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor ( false ) 
 guiSetInputEnabled( false ) 
triggerServerEvent("onClick1",localPlayer) 
    end 
end 
) 
Link to comment

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

بس انا حطيت لو ضغت على حرب تجيك لوحة ثانية عشان تختار تيم واللوحة السابقة تختفي

ياريت حد يعدله

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "s/3.png", relative2 ) 
    guiSetFont ( mainBackgroundLabel, newFont ) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    return mainBackground 
end 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/1.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/2.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
---------------------------------------------------- 
GUIEditor_Window[2] = guiCreateWindow(0,0.0013,1,1,,"",true) 
GUIEditor_Button[1] = guiCreateButton(163,200,187,178,"1",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"sa-gothic") 
GUIEditor_Button[2] = guiCreateButton(630,200,187,178,"2",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[2],"sa-gothic") 
GUIEditor_Label[1] = guiCreateLabel(696,416,328,65,"الفريق2",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[1],3,255,4) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(215,422,145,56,"الفريق 1",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],255,23,170) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
guiSetVisible ( GUIEditor_Window[2] ,false ) 
------------------------------------- 
addEventHandler ( "onPlayerJoin", root, 
    function () 
        guiSetVisible ( GUIEditor_Window[1] ,true ) 
        showCursor ( true ) 
    end 
) 
------------------------------------- 
addEventHandler("onClientGUIClick",root, 
function () 
    if ( source == GUIEditor_Image[1] ) then 
    triggerServerEvent("onClick",localPlayer) 
     guiSetVisible ( GUIEditor_Window[1] ,false ) 
     showCursor ( false ) 
     guiSetInputEnabled( false ) 
       end 
    if ( source == GUIEditor_Button[2] ) then 
     guiSetVisible ( GUIEditor_Window[2] ,false ) 
     triggerServerEvent("onClick2",localPlayer) 
    end 
    if ( source == GUIEditor_Button[1] ) then 
     guiSetVisible ( GUIEditor_Window[2] ,false ) 
     triggerServerEvent("onClick1",localPlayer) 
    end 
    if ( source == GUIEditor_Image[2] ) then 
     guiSetVisible ( GUIEditor_Window[1] ,false ) 
     guiSetVisible ( GUIEditor_Window[2] ,true ) 
end 
) 
Link to comment

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "s/3.png", relative2 ) 
    guiSetFont ( mainBackgroundLabel, newFont ) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    return mainBackground 
end 
  
GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/1.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/2.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
guiLabelSetColor(GUIEditor_Label[1],255,65,170) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],36,76,255) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
---------------------------------------------------- 
GUIEditor_Window[2] = guiCreateWindow(0,0.0013,1,1,"",true) 
 guiSetVisible(GUIEditor_Window[2],false) 
GUIEditor_Button[1] = guiCreateButton(163,200,187,178,"1",false,GUIEditor_Window[2]) 
guiSetFont(GUIEditor_Button[1],"sa-gothic") 
GUIEditor_Button[2] = guiCreateButton(630,200,187,178,"2",false,GUIEditor_Window[2]) 
guiSetFont(GUIEditor_Button[2],"sa-gothic") 
GUIEditor_Label[1] = guiCreateLabel(696,416,328,65,"الفريق2",false,GUIEditor_Window[2]) 
guiLabelSetColor(GUIEditor_Label[1],3,255,4) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(215,422,145,56,"الفريق 1",false,GUIEditor_Window[2]) 
guiLabelSetColor(GUIEditor_Label[2],255,23,170) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
  
------------------------------------- 
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function () 
        guiSetVisible ( GUIEditor_Window[1] ,true ) 
        showCursor ( true ) 
    end 
) 
------------------------------------- 
addEventHandler("onClientGUIClick",root, 
function () 
    if ( source == GUIEditor_Image[1] ) then 
    triggerServerEvent("onClick",localPlayer) 
     guiSetVisible ( GUIEditor_Window[1] ,false ) 
     showCursor ( false ) 
     guiSetInputEnabled( false ) 
    elseif ( source == GUIEditor_Button[2] ) then 
     guiSetVisible ( GUIEditor_Window[2] ,false ) 
     showCursor ( false ) 
     triggerServerEvent("onClick2",localPlayer) 
    elseif ( source == GUIEditor_Button[1] ) then 
     guiSetVisible ( GUIEditor_Window[2] ,false ) 
     showCursor ( false ) 
     triggerServerEvent("onClick1",localPlayer) 
    elseif ( source == GUIEditor_Image[2] ) then 
     guiSetVisible ( GUIEditor_Window[1] ,false ) 
     guiSetVisible ( GUIEditor_Window[2] ,true ) 
   end 
end 
) 
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...