+Source|> Posted June 6, 2017 Share Posted June 6, 2017 (edited) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, 159), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, 255), 2.20, "sans", "center", "center", false, false, false, false, false) end end ) لما اضغط الزر الرسالة تجي وتختفي بلمح البصر ابيها تقعد شوي قبل تختفي Edited June 6, 2017 by A7MEDENO Link to comment
AHMED MOSTAFA Posted June 6, 2017 Share Posted June 6, 2017 Just now, A7MEDENO said: addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, 159), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, 255), 2.20, "sans", "center", "center", false, false, false, false, false) end end ) لما اضغط الزر الرسالة تجي وتختفي بلمح البصر ابيها تقعد شوي قبل تختفي addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) a = 255 end end ) a = 0 function test () dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, a), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler ( "onClientRender", root , test ) Link to comment
AE. Posted June 6, 2017 Share Posted June 6, 2017 خطا يا كيلر لازم تعرف المتغير + المفروض تحط الايفنت داخل الفنكشن Link to comment
AHMED MOSTAFA Posted June 6, 2017 Share Posted June 6, 2017 Just now, 3laa33 said: خطا يا كيلر لازم تعرف المتغير + المفروض تحط الايفنت داخل الفنكشن اي متغير ؟ المتغيرين معرفين Link to comment
+Source|> Posted June 6, 2017 Author Share Posted June 6, 2017 1 minute ago, Killer Project said: اي متغير ؟ المتغيرين معرفين ما ظبط الكلام ما ظهر + onClientRender ما تظبط معي Link to comment
AHMED MOSTAFA Posted June 6, 2017 Share Posted June 6, 2017 function test2 () if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end gft = guiGetText(GUIEditor.edit[1]) playSoundFrontEnd ( 30 ) a = 255 end end addEventHandler("onClientGUIClick", root, test2 ) a = 0 gft = "" function test1 () dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, a), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler ( "onClientRender", root , test1 ) Link to comment
+Source|> Posted June 6, 2017 Author Share Posted June 6, 2017 4 minutes ago, Killer Project said: function test2 () if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end gft = guiGetText(GUIEditor.edit[1]) playSoundFrontEnd ( 30 ) a = 255 end end addEventHandler("onClientGUIClick", root, test2 ) a = 0 gft = "" function test1 () dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, a), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler ( "onClientRender", root , test1 ) dxDrawRectangle ظهرت dxDrawText ما ظهرت Link to comment
AHMED MOSTAFA Posted June 6, 2017 Share Posted June 6, 2017 Just now, A7MEDENO said: dxDrawRectangle ظهرت dxDrawText ما ظهرت وش يطلع لك الدي بق ؟ Link to comment
+Source|> Posted June 6, 2017 Author Share Posted June 6, 2017 2 minutes ago, Killer Project said: وش يطلع لك الدي بق ؟ ول شي Link to comment
ميدوح Posted June 6, 2017 Share Posted June 6, 2017 (edited) 11 minutes ago, Killer Project said: function test2 () if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end gft = guiGetText(GUIEditor.edit[1]) playSoundFrontEnd ( 30 ) a = 255 end end addEventHandler("onClientGUIClick", root, test2 ) a = 0 gft = "" function test1 () dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, a), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler ( "onClientRender", root , test1 ) = if gft == "" then return end ^سطر 5 ؟ سطر 15 صح Edited June 6, 2017 by medo7 : Link to comment
+Source|> Posted June 6, 2017 Author Share Posted June 6, 2017 2 minutes ago, medo7 said: سطر 5 ؟ سطر 15 صح يب Link to comment
AHMED MOSTAFA Posted June 6, 2017 Share Posted June 6, 2017 function test2 () if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) a = 255 end end addEventHandler("onClientGUIClick", root, test2 ) a = 0 function test1 () gft = guiGetText(GUIEditor.edit[1]) or "" dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, a), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler ( "onClientRender", root , test1 ) Link to comment
ميدوح Posted June 6, 2017 Share Posted June 6, 2017 2 minutes ago, Killer Project said: function test2 () if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) a = 255 end end addEventHandler("onClientGUIClick", root, test2 ) a = 0 function test1 () gft = guiGetText(GUIEditor.edit[1]) or "" dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, a), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler ( "onClientRender", root , test1 ) a= 0 ~ مخفي Link to comment
AHMED MOSTAFA Posted June 6, 2017 Share Posted June 6, 2017 Just now, medo7 said: dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false) بما ان هذي ظهرت .. اذن المتغير ماهو مخفي Link to comment
AE. Posted June 6, 2017 Share Posted June 6, 2017 gft = {} function o7a() playSoundFrontEnd ( 30 ) dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, 159), false) dxDrawText(gft[1], 0, 551, 800, 586, tocolor(255, 255, 255, 255), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[3] then gft[1] = guiGetText(GUIEditor.edit[1]) if gft == "" then return end addEventHandler("onClientRender",getRootElement(),o7a) end end ) Link to comment
+Source|> Posted June 6, 2017 Author Share Posted June 6, 2017 1 minute ago, Killer Project said: بما ان هذي ظهرت .. اذن المتغير ماهو مخفي الحين كيف اسويلها تايمر وتختفي Link to comment
AE. Posted June 6, 2017 Share Posted June 6, 2017 1 minute ago, A7MEDENO said: الحين كيف اسويلها تايمر وتختفي سويلها زي ماتسويلها تبي نجي نبرمجلك سيرفر بالمرة؟ Link to comment
AHMED MOSTAFA Posted June 7, 2017 Share Posted June 7, 2017 (edited) Just now, A7MEDENO said: الحين كيف اسويلها تايمر وتختفي function test2 () if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if not ( gft == "" ) then playSoundFrontEnd ( 30 ) a = 255 gft = guiGetText(GUIEditor.edit[1]) setTimer ( function () a = 0 end, 5000, 1 ) end end end addEventHandler("onClientGUIClick", root, test2 ) a = 0 function test1 () gft = gft or "" dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, a), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler ( "onClientRender", root , test1 ) Edited June 7, 2017 by Killer Project Link to comment
+Source|> Posted June 7, 2017 Author Share Posted June 7, 2017 5 minutes ago, 3laa33 said: سويلها زي ماتسويلها تبي نجي نبرمجلك سيرفر بالمرة؟ والله تبي تجي تعال 4 minutes ago, Killer Project said: function test2 () if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if not ( gft == "" ) then playSoundFrontEnd ( 30 ) a = 255 gft = guiGetText(GUIEditor.edit[1]) setTimer ( function () a = 0 end, 5000, 1 ) end endendaddEventHandler("onClientGUIClick", root, test2 )a = 0function test1 ()dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, a/2), false)dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, a), 2.20, "sans", "center", "center", false, false, false, false, false)endaddEventHandler ( "onClientRender", root , test1 ) يعطيك العافيه Link to comment
AHMED MOSTAFA Posted June 7, 2017 Share Posted June 7, 2017 Just now, A7MEDENO said: والله تبي تجي تعال يعطيك العافيه اظن فيه مشكلة ضيف هذا تحت الفنكشن الخاص بالرندر gft = gft or "" حياك الله Link to comment
#Soking Posted June 7, 2017 Share Posted June 7, 2017 addEventHandler ( 'onClientGUIClick' , GUIEditor.button[3] , function ( ) local Text = guiGetText ( GUIEditor.edit [ 1 ] ) if ( Text ~= '' ) then local Render = function ( ) dxDrawRectangle ( 0 , 551 , 800 , 39 , tocolor ( 0 , 0 , 0 , 159 ) , false ) dxDrawText ( Text , 0 , 551 , 800 , 586 , tocolor ( 255 , 255 , 255 , 255 ) , 2.20, 'sans' , 'center' , 'center' , false , false , false , false , false ) end return ( playSoundFrontEnd ( 30 ) and addEventHandler ( 'onClientRender' , root , Render ) and setTimer ( function ( ) removeEventHandler ('onClientRender' , root , Render ) end , 5000 , 1 ) ) end end , false ) 1 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