Jump to content

تصحيح


Recommended Posts

GUIEditor = { 
    staticimage = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(113, 52, 604, 491, "UPDATES", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 23, 585, 120, ":guieditor/images/Updates.png", false, GUIEditor.window[1]) 
        GUIEditor.memo[1] = guiCreateMemo(9, 156, 585, 289, "                                                        =  Server Updates =\n- Write Any Update here (Admin Name)\n- Fixed Bug's (mnGr7)\n- New Script (mnGr7)\n-\n-\n-\n-\n-\n-\n-\n-", false, GUIEditor.window[1]) 
        guiMemoSetReadOnly(GUIEditor.memo[1], true) 
        GUIEditor.button[1] = guiCreateButton(164, 448, 293, 33, "Close", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(477, 458, 140, 31, "Created By : mnGr7", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 91, 214, -- s8) -->
        GUIEditor.label[2] = guiCreateLabel(19, 460, 148, 31, "Server Name Here", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 10, 95, 211)     
    end 
) 
          
addEventHandler ("onClientGUIClick", root, 
  function () 
     if ( source == GUIEditor.button[1] ) then 
     guiSetVisible (GUIEditor.window[1], false) 
     showCursor (false) 
     guiSetInputEnabled(false) 
     end 
 end 
) 
  
function( ) 
    guiSetVisible(window, not guiGetVisible(window)) 
    showCursor(not isCursorShowing()) 
end 
addCommandHandler ( "updates", updatesList )  
  
function() 
    outputChatBox ( "#FF0000(NOTE) #FFA900New updates has been uploaded, use /updates", 255, 255, 255, true ) 
    end 
addCommandHandler("updt", updates) 

ابي تصحيح لـ CommandHandler + اذا شغلت الريسورس النافذه تفتح بدون ماسسوي شي

Link to comment

بدل سطر 20 .. باللي موجود بالجهاز عندك

لانه المنتدى فيه بق مدري وش فيه ذذ

GUIEditor = { 
    staticimage = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    memo = {} 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, function(    ) 
        GUIEditor.window[1] = guiCreateWindow(113, 52, 604, 491, "UPDATES", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 23, 585, 120, ":guieditor/images/Updates.png", false, GUIEditor.window[1]) 
        GUIEditor.memo[1] = guiCreateMemo(9, 156, 585, 289, "                                                        =  Server Updates =\n- Write Any Update here (Admin Name)\n- Fixed Bug's (mnGr7)\n- New Script (mnGr7)\n-\n-\n-\n-\n-\n-\n-\n-", false, GUIEditor.window[1]) 
        guiMemoSetReadOnly(GUIEditor.memo[1], true) 
        GUIEditor.button[1] = guiCreateButton(164, 448, 293, 33, "Close", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(477, 458, 140, 31, "Created By : mnGr7", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 91, 214, -- s8) -->
        GUIEditor.label[2] = guiCreateLabel(19, 460, 148, 31, "Server Name Here", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 10, 95, 211)     
end ) 
          
addEventHandler ( "onClientGUIClick", resourceRoot, function (     ) 
   if ( source == GUIEditor.button[1] ) then 
         guiSetVisible ( GUIEditor.window[1], false ) 
         showCursor ( guiGetVisible( GUIEditor.window[1] ) ) 
         guiSetInputEnabled( guiGetVisible( GUIEditor.window[1] ) ) 
      end 
end ) 
  
addCommandHandler ( "updates", function (    ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) ) 
    showCursor( guiGetVisible( GUIEditor.window[1] ) ) 
end )    
  
  
addCommandHandler ( "updt", function (    ) 
     outputChatBox ( "#FF0000(NOTE) #FFA900New updates has been uploaded, use /updates", 255, 255, 255, true ) 
end ) 
Link to comment
        GUIEditor.label[1] = guiCreateLabel(477, 458, 140, 31, "Created By : mnGr7", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 91, 214, -- s8) --> -- اللون حق الـ Label 
        GUIEditor.label[2] = guiCreateLabel(19, 460, 148, 31, "Server Name Here", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 10, 95, 211)     

Link to comment

GUIEditor = { 
    staticimage = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    memo = {} 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, function(    ) 
        GUIEditor.window[1] = guiCreateWindow(113, 52, 604, 491, "UPDATES", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 23, 585, 120, ":guieditor/images/Updates.png", false, GUIEditor.window[1]) 
        GUIEditor.memo[1] = guiCreateMemo(9, 156, 585, 289, "                                                        =  Server Updates =\n- Write Any Update here (Admin Name)\n- Fixed Bug's (mnGr7)\n- New Script (mnGr7)\n-\n-\n-\n-\n-\n-\n-\n-", false, GUIEditor.window[1]) 
        guiMemoSetReadOnly(GUIEditor.memo[1], true) 
        GUIEditor.button[1] = guiCreateButton(164, 448, 293, 33, "Close", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(477, 458, 140, 31, "Created By : mnGr7", false, GUIEditor.window[1]) 
        guiLabelSetColor( GUIEditor.label[1], 91, 214, 8 ) 
        GUIEditor.label[2] = guiCreateLabel(19, 460, 148, 31, "Server Name Here", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 10, 95, 211)  
        guiSetVisible ( GUIEditor.window[1], false )         
end ) 
          
addEventHandler ( "onClientGUIClick", resourceRoot, function (     ) 
   if ( source == GUIEditor.button[1] ) then 
         guiSetVisible ( GUIEditor.window[1], false ) 
         showCursor ( guiGetVisible( GUIEditor.window[1] ) ) 
         guiSetInputEnabled( guiGetVisible( GUIEditor.window[1] ) ) 
      end 
end ) 
  
addCommandHandler ( "updates", function (    ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) ) 
    showCursor( guiGetVisible( GUIEditor.window[1] ) ) 
end )    
  
  
addCommandHandler ( "updt", function (    ) 
     outputChatBox ( "#FF0000(NOTE) #FFA900New updates has been uploaded, use /updates", 255, 255, 255, true ) 
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...