TD[M]ER Posted November 8, 2012 Share Posted November 8, 2012 السلام عليكم ورحمة الله وبركاته اخواني محتاج كود اللي يغير الكلام او الصورة يغير اللغه حقته مثل شوب تابل مثلا قسم القوانين فيه زر العربيه والانجليزية نضغط الانجليزي تجيك صورة انجليزية والعربيه تتحول الصورة لعربيه بدون الحاجه لفتح تاب اخر وشكرا Link to comment
w7eeD Posted November 8, 2012 Share Posted November 8, 2012 addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then rulesA = guiCreateStaticImage(0, 7, 550, 310,"1.png",false,Wnds1) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == english ) then rulesE = guiCreateStaticImage(0, 7, 550, 310,"2.png",false,Wnds1) end end ) .. >< Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then rulesA = guiCreateStaticImage(0, 7, 550, 310,"1.png",false,Wnds1) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == english ) then rulesE = guiCreateStaticImage(0, 7, 550, 310,"2.png",false,Wnds1) end end ) .. >< ماقصرت الله يعطيك العافيه =] جاري التجربه Link to comment
Blaawee Posted November 8, 2012 Share Posted November 8, 2012 لييه تطولهآ وهي قصيره addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then rulesA = guiCreateStaticImage(0, 7, 550, 310,"1.png",false,Wnds1) elseif ( source == english ) then rulesE = guiCreateStaticImage(0, 7, 550, 310,"2.png",false,Wnds1) end end ) Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 لييه تطولهآ وهي قصيره addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then rulesA = guiCreateStaticImage(0, 7, 550, 310,"1.png",false,Wnds1) elseif ( source == english ) then rulesE = guiCreateStaticImage(0, 7, 550, 310,"2.png",false,Wnds1) end end ) مشكور بلاوي ماقصرت لبى قلبكـ تسلم على مروركـ ومساعدتكـ لي بس الكود ماظبط >< Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 هذا wnd.lua GUIEditor = { staticimage = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow(460, 140, 403, 436, "Rule || القوانين", false) guiSetAlpha(rulsewnd, 1.00) guiSetProperty(rulsewnd, "CaptionColour", "FF06D8E0") arabic = guiCreateButton(9, 27, 191, 50, "العربيه", false, rulsewnd) guiSetFont(arabic, "default-bold-small") guiSetProperty(arabic, "NormalTextColour", "FF0E09C9") english = guiCreateButton(201, 28, 191, 50, "English", false, rulsewnd) guiSetProperty(english, "NormalTextColour", "FF09B5CA") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 105, 385, 273, "1.png", false, rulsewnd) GUIEditor.staticimage[2] = guiCreateStaticImage(9, 105, 385, 273, "2.png", false, rulsewnd) Close = guiCreateButton(117, 385, 143, 42, "OK || موافق", false, rulsewnd) guiSetFont(Close, "default-bold-small") guiSetProperty(Close, "NormalTextColour", "FFD30000") end ) function show() if guiGetVisible ( rulsewnd ) then guiSetVisible ( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then rulesA = guiCreateStaticImage(0, 7, 550, 310,"1.png",false,Wnds1) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == english ) then rulesE = guiCreateStaticImage(0, 7, 550, 310,"2.png",false,Wnds1) end end ) function onGuiClick (button, state, absoluteX, absoluteY) if ( source == Close ) then guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) meta.xml "TD[M]ER" description="rules" info="mod" type="Script" version="1.0" /> Link to comment
./BlackBird# Posted November 8, 2012 Share Posted November 8, 2012 GUIEditor = { staticimage = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow(460, 140, 403, 436, "Rule || القوانين", false) guiSetAlpha(rulsewnd, 1.00) guiSetProperty(rulsewnd, "CaptionColour", "FF06D8E0") arabic = guiCreateButton(9, 27, 191, 50, "العربيه", false, rulsewnd) guiSetFont(arabic, "default-bold-small") guiSetProperty(arabic, "NormalTextColour", "FF0E09C9") english = guiCreateButton(201, 28, 191, 50, "English", false, rulsewnd) guiSetProperty(english, "NormalTextColour", "FF09B5CA") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 105, 385, 273, "1.png", false, rulsewnd) GUIEditor.staticimage[2] = guiCreateStaticImage(9, 105, 385, 273, "2.png", false, rulsewnd) Close = guiCreateButton(117, 385, 143, 42, "OK || موافق", false, rulsewnd) guiSetFont(Close, "default-bold-small") guiSetProperty(Close, "NormalTextColour", "FFD30000") end ) function show() if(guiGetVisible(rulsewnd)==true)then guiSetVisible( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then guiSetVisible(GUIEditor.staticimage[2],false) guiSetVisible(GUIEditor.staticimage[1],true) elseif ( source == english ) then guiSetVisible(GUIEditor.staticimage[2],true) guiSetVisible(GUIEditor.staticimage[1],false) elseif ( source == Close ) then guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) Link to comment
Mr.T9 Posted November 8, 2012 Share Posted November 8, 2012 meta.xml "TD[M]ER" description="rules" info="mod" type="Script" version="1.0" /> ؟ انصحك تستخدم "2.png"/> Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 meta.xml "TD[M]ER" description="rules" info="mod" type="Script" version="1.0" /> ؟ انصحك تستخدم "2.png"/> GUIEditor = { staticimage = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow(460, 140, 403, 436, "Rule || القوانين", false) guiSetAlpha(rulsewnd, 1.00) guiSetProperty(rulsewnd, "CaptionColour", "FF06D8E0") arabic = guiCreateButton(9, 27, 191, 50, "العربيه", false, rulsewnd) guiSetFont(arabic, "default-bold-small") guiSetProperty(arabic, "NormalTextColour", "FF0E09C9") english = guiCreateButton(201, 28, 191, 50, "English", false, rulsewnd) guiSetProperty(english, "NormalTextColour", "FF09B5CA") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 105, 385, 273, "1.png", false, rulsewnd) GUIEditor.staticimage[2] = guiCreateStaticImage(9, 105, 385, 273, "2.png", false, rulsewnd) Close = guiCreateButton(117, 385, 143, 42, "OK || موافق", false, rulsewnd) guiSetFont(Close, "default-bold-small") guiSetProperty(Close, "NormalTextColour", "FFD30000") end ) function show() if(guiGetVisible(rulsewnd)==true)then guiSetVisible( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then guiSetVisible(GUIEditor.staticimage[2],false) guiSetVisible(GUIEditor.staticimage[1],true) elseif ( source == english ) then guiSetVisible(GUIEditor.staticimage[2],true) guiSetVisible(GUIEditor.staticimage[1],false) elseif ( source == Close ) then guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) مشكور جاري الترجبه شويات وارد خبر Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 ماظبط >< الحين اللوحة كامل ماتظهر مو بس الكود خربان Link to comment
nony Posted November 8, 2012 Share Posted November 8, 2012 ياويلك تقول مايشتغل انا مجربه ذذ addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Button-en ) then guiCreateStaticImage( 75,10,450,300, "en.png", false,Tab ) end end ) ---- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Button-ar ) then guiCreateStaticImage( 75,10,450,300, "ar.png", false,Tab ) end end ) Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 اطرح كودك ^ اللي كتبه مجنون فيك GUIEditor = { staticimage = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow(460, 140, 403, 436, "Rule || القوانين", false) guiSetAlpha(rulsewnd, 1.00) guiSetProperty(rulsewnd, "CaptionColour", "FF06D8E0") arabic = guiCreateButton(9, 27, 191, 50, "العربيه", false, rulsewnd) guiSetFont(arabic, "default-bold-small") guiSetProperty(arabic, "NormalTextColour", "FF0E09C9") english = guiCreateButton(201, 28, 191, 50, "English", false, rulsewnd) guiSetProperty(english, "NormalTextColour", "FF09B5CA") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 105, 385, 273, "1.png", false, rulsewnd) GUIEditor.staticimage[2] = guiCreateStaticImage(9, 105, 385, 273, "2.png", false, rulsewnd) Close = guiCreateButton(117, 385, 143, 42, "OK || موافق", false, rulsewnd) guiSetFont(Close, "default-bold-small") guiSetProperty(Close, "NormalTextColour", "FFD30000") end ) function show() if(guiGetVisible(rulsewnd)==true)then guiSetVisible( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then guiSetVisible(GUIEditor.staticimage[2],false) guiSetVisible(GUIEditor.staticimage[1],true) elseif ( source == english ) then guiSetVisible(GUIEditor.staticimage[2],true) guiSetVisible(GUIEditor.staticimage[1],false) elseif ( source == Close ) then guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) guiSetVisible(rulsewnd, false) Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 (edited) ياويلك تقول مايشتغل انا مجربه ذذ addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Button-en ) then guiCreateStaticImage( 75,10,450,300, "en.png", false,Tab ) end end ) ---- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Button-ar ) then guiCreateStaticImage( 75,10,450,300, "ar.png", false,Tab ) end end ) مجرب الكود ولا المود حقي خخخ Edited November 8, 2012 by Guest Link to comment
Blaawee Posted November 8, 2012 Share Posted November 8, 2012 (edited) checking = false addEventHandler( "onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow( 460, 140, 403, 436, "Rule || القوانين", false ) guiSetAlpha( rulsewnd, 1.00 ) guiSetProperty( rulsewnd, "CaptionColour", "FF06D8E0" ) switch = guiCreateButton( 9, 27, 191, 50, "العربيه", false, rulsewnd ) guiSetFont( switch, "default-bold-small" ) guiSetProperty( arabic, "NormalTextColour", "FF0E09C9" ) ar = guiCreateStaticImage( 9, 105, 385, 273, "1.png", false, rulsewnd ) en = guiCreateStaticImage( 9, 105, 385, 273, "2.png", false, rulsewnd ) guiSetVisible ( en, false ) end ) function show() if guiGetVisible(rulsewnd)==true then guiSetVisible( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", guiRoot, function( button, state, absoluteX, absoluteY ) if source == switch then if checking == false then guiSetText ( switch, "English" ) guiSetVisible ( en, true ) guiSetVisible ( ar, false ) checking = true elseif checking == true then guiSetText ( switch, "عربي" ) guiSetVisible ( en, false ) guiSetVisible ( ar, true ) checking = false end end end) Edited November 8, 2012 by Guest Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 checking = false addEventHandler( "onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow( 460, 140, 403, 436, "Rule || ????????", false ) guiSetAlpha( rulsewnd, 1.00 ) guiSetProperty( rulsewnd, "CaptionColour", "FF06D8E0" ) switch = guiCreateButton( 9, 27, 191, 50, "???????", false, rulsewnd ) guiSetFont( switch, "default-bold-small" ) guiSetProperty( arabic, "NormalTextColour", "FF0E09C9" ) ar = guiCreateStaticImage( 9, 105, 385, 273, "1.png", false, rulsewnd ) en = guiCreateStaticImage( 9, 105, 385, 273, "2.png", false, rulsewnd ) guiSetVisible ( en, false ) end ) function show() if guiGetVisible(rulsewnd)==true then guiSetVisible( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", guiRoot, function( button, state, absoluteX, absoluteY ) if source == switch then if checking == false then guiSetText ( switch, "English" ) guiSetVisible ( en, true ) guiSetVisible ( ar, false ) checking = true elseif checking == true then guiSetText ( switch, "عربي" ) guiSetVisible ( en, false ) guiSetVisible ( ar, true ) checking = false end end end) جاري التجربه اتعبتك معي بلاوي Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 checking = false addEventHandler( "onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow( 460, 140, 403, 436, "Rule || القوانين", false ) guiSetAlpha( rulsewnd, 1.00 ) guiSetProperty( rulsewnd, "CaptionColour", "FF06D8E0" ) switch = guiCreateButton( 9, 27, 191, 50, "العربيه", false, rulsewnd ) guiSetFont( switch, "default-bold-small" ) guiSetProperty( arabic, "NormalTextColour", "FF0E09C9" ) ar = guiCreateStaticImage( 9, 105, 385, 273, "1.png", false, rulsewnd ) en = guiCreateStaticImage( 9, 105, 385, 273, "2.png", false, rulsewnd ) guiSetVisible ( en, false ) end ) function show() if guiGetVisible(rulsewnd)==true then guiSetVisible( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", guiRoot, function( button, state, absoluteX, absoluteY ) if source == switch then if checking == false then guiSetText ( switch, "English" ) guiSetVisible ( en, true ) guiSetVisible ( ar, false ) checking = true elseif checking == true then guiSetText ( switch, "عربي" ) guiSetVisible ( en, false ) guiSetVisible ( ar, true ) checking = false end end end) يشييييييييييييييييخ قسسسسسسسسسسسسسسسسسسسسسسسسسسسم بالله انك كنق اتتتتتتتتتتتتتتتتتتتعبتك معي ي شنب يجزااااااااااااااكـ ربي الف الف الف خير لبى قلبكـ يشيخ سويت اللي ابيه واكثثثثثثثثثثثثثثر خدمة ما انساها يشيييخ تسلم يدينك Link to comment
Blaawee Posted November 8, 2012 Share Posted November 8, 2012 .. العفو بس ابيك تفهم شنو سويت انا Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 .. العفوبس ابيك تفهم شنو سويت انا فاهم عليك بس كود الـ guiSetVisible(rulsewnd, false) مايشتغل معاهـ ولا كيف جربت فيه مارضى مابيها تطلع في الوجهـ Link to comment
Blaawee Posted November 8, 2012 Share Posted November 8, 2012 addEventHandler( "onClientResourceStart", resourceRoot, function()) لانك مستخدم الحدث عند تشغيل المود او بدأه "onClientResourceStart" Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 addEventHandler( "onClientResourceStart", resourceRoot, function()) لانك مستخدم الحدث عند تشغيل المود او بدأه "onClientResourceStart" يعني امسح الكود ؟ ^ مو انا اللي حاطه انا يوم صممت اللوحة وسويت برنت طلع لي كذا ^ النسخة الجديدهـ من القاي ايديتور كذا Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 table لانةة ممآ فيةة يعني اخليه كذا rulsewnd = guiCreateWindow( 460, 140, 403, 436, "Rule || القوانين", false ) guiSetAlpha( rulsewnd, 1.00 ) guiSetProperty( rulsewnd, "CaptionColour", "FF06D8E0" ) switch = guiCreateButton( 9, 27, 191, 50, "العربيه", false, rulsewnd ) guiSetFont( switch, "default-bold-small" ) guiSetProperty( arabic, "NormalTextColour", "FF0E09C9" ) ar = guiCreateStaticImage( 9, 105, 385, 273, "1.png", false, rulsewnd ) en = guiCreateStaticImage( 9, 105, 385, 273, "2.png", false, rulsewnd ) guiSetVisible ( en, false ) end function show() if guiGetVisible(rulsewnd)==true then guiSetVisible( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) guiSetVisible(rulsewnd,false) addEventHandler ("onClientGUIClick", guiRoot, function( button, state, absoluteX, absoluteY ) if source == switch then if checking == false then guiSetText ( switch, "English" ) guiSetVisible ( en, true ) guiSetVisible ( ar, false ) checking = true elseif checking == true then guiSetText ( switch, "عربي" ) guiSetVisible ( en, false ) guiSetVisible ( ar, true ) checking = false end end end) ؟؟ Link to comment
MR.S3D Posted November 8, 2012 Share Posted November 8, 2012 checking = false addEventHandler( "onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow( 460, 140, 403, 436, "Rule || ????????", false ) guiSetAlpha( rulsewnd, 1.00 ) guiSetProperty( rulsewnd, "CaptionColour", "FF06D8E0" ) switch = guiCreateButton( 9, 27, 191, 50, "???????", false, rulsewnd ) guiSetFont( switch, "default-bold-small" ) guiSetProperty( arabic, "NormalTextColour", "FF0E09C9" ) ar = guiCreateStaticImage( 9, 105, 385, 273, "1.png", false, rulsewnd ) en = guiCreateStaticImage( 9, 105, 385, 273, "2.png", false, rulsewnd ) guiSetVisible ( rulsewnd, false ) guiSetVisible ( ar, false ) guiSetVisible ( en, false ) end ) function show() guiSetVisible( rulsewnd, not guiGetVisible(rulsewnd) ) showCursor(guiGetVisible(rulsewnd)) end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", guiRoot, function( button, state, absoluteX, absoluteY ) if source == switch then if checking == false then guiSetText ( switch, "English" ) guiSetVisible ( en, true ) guiSetVisible ( ar, false ) else guiSetText ( switch, "عربي" ) guiSetVisible ( en, false ) guiSetVisible ( ar, true ) end checking = not checking end end) Link to comment
TD[M]ER Posted November 8, 2012 Author Share Posted November 8, 2012 checking = false addEventHandler( "onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow( 460, 140, 403, 436, "Rule || ????????", false ) guiSetAlpha( rulsewnd, 1.00 ) guiSetProperty( rulsewnd, "CaptionColour", "FF06D8E0" ) switch = guiCreateButton( 9, 27, 191, 50, "???????", false, rulsewnd ) guiSetFont( switch, "default-bold-small" ) guiSetProperty( arabic, "NormalTextColour", "FF0E09C9" ) ar = guiCreateStaticImage( 9, 105, 385, 273, "1.png", false, rulsewnd ) en = guiCreateStaticImage( 9, 105, 385, 273, "2.png", false, rulsewnd ) guiSetVisible ( rulsewnd, false ) guiSetVisible ( ar, false ) guiSetVisible ( en, false ) end ) function show() guiSetVisible( rulsewnd, not guiGetVisible(rulsewnd) ) showCursor(guiGetVisible(rulsewnd)) end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", guiRoot, function( button, state, absoluteX, absoluteY ) if source == switch then if checking == false then guiSetText ( switch, "English" ) guiSetVisible ( en, true ) guiSetVisible ( ar, false ) else guiSetText ( switch, "عربي" ) guiSetVisible ( en, false ) guiSetVisible ( ar, true ) end checking = not checking end end) يسسسسلمو سعد والله ماقصرت مشكور ظابط 20000% لبى قلبك Link to comment
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