^#Dream Posted May 19, 2014 Posted May 19, 2014 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 + اذا شغلت الريسورس النافذه تفتح بدون ماسسوي شي
#DRAGON!FIRE Posted May 19, 2014 Posted May 19, 2014 بدل سطر 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 )
AboShanab Posted May 19, 2014 Posted May 19, 2014 بالنسبة للمشكلة هذي في تاج Lua ماهي من المنتدى من الابتسامات نفسها لان لو تشوف في ابتسامه كذا 8 ) شف لو شلت المسافة تصير
^#Dream Posted May 19, 2014 Author Posted May 19, 2014 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)
^#Dream Posted May 19, 2014 Author Posted May 19, 2014 طيب انا ابي واحد يصصلح لي CommandHandler + اذا شغلته تطلع لي النافذهه على طول
#DRAGON!FIRE Posted May 19, 2014 Posted May 19, 2014 الـ كوماند صحيح + انت قلت تبي يوم يشتغل السكربت تجي النافذة
^#Dream Posted May 19, 2014 Author Posted May 19, 2014 زبط الكوماند بس باقي اذا كتبت الكوماند تطلع النافذة لانها الحين اذا شغلت المود على تطلع النافذة
#DRAGON!FIRE Posted May 19, 2014 Posted May 19, 2014 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 )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now