#Rmad~> Posted March 13, 2014 Posted March 13, 2014 (edited) السلااام عليكم ورحمةة الله وبركااته ياخوان بغيت فنكشن اني اكتب كلام محدد بالاديت ويوم يجي الاعب يظغط على الاديت يروح الكلام ويوم يقفل النافذةة يرجع الكلام الي كتبتة وسلاامتكم Edited March 13, 2014 by Guest
#Rmad~> Posted March 13, 2014 Author Posted March 13, 2014 (edited) سلمات ؟ وين المووضوع ^ Edited March 13, 2014 by Guest
فاّرس Posted March 13, 2014 Posted March 13, 2014 onClientGUIClick guiGetText setElementData getElementData guiSetText executeSQLQuery اذا تبي حفظ يوم يطلع من السيرفر ويدخل انصحك تستخدم
#Rmad~> Posted March 13, 2014 Author Posted March 13, 2014 (edited) addEventHandler( "onClientGUIClick", root, function () local Text = guiGetText( edit ) if ( Text ) then guiSetText ( edit,"Please Type Your Name" ) setElementData( localPlayer, "Text", 0 ) else local TextBack = getElementData ( source, "Text" ) guiSetText ( edit,"" ) end end ) ?? Edited March 13, 2014 by Guest
charaf12 Posted March 13, 2014 Posted March 13, 2014 صبر تبي تحفظ كمان لما يطلع من سيرفر ؟ يعني ابدي ؟ ما يروح ابدا
#Rmad~> Posted March 13, 2014 Author Posted March 13, 2014 لا يالغالي مثلا انا فتحت النافذة لقيت بالاديت مكتوب من نفسة Type Your Name وجيت ظغطت على الايديت ابيها تنحذف ولما اقفل النافذة وافتحها مرة ثاني ابي الكلام يرجع زي ماهو بالاديت Type Your Name
#DRAGON!FIRE Posted March 13, 2014 Posted March 13, 2014 في طريقة افضل سويتها لكـ .. يوم يجي يغير الكلام الموجود يرجعه زي ما كان ذذ addEventHandler( "onClientGUIChanged", resourceRoot, function( ) if ( source == element ) then guiSetText( source, "Type Your Name" ) end end )
#Rmad~> Posted March 13, 2014 Author Posted March 13, 2014 في طريقة افضل سويتها لكـ .. يوم يجي يغير الكلام الموجود يرجعه زي ما كان ذذ addEventHandler( "onClientGUIChanged", resourceRoot, function( ) if ( source == element ) then guiSetText( source, "Type Your Name" ) end end ) الله لايهينك حبيبي بس محتااج الي سويتةة =(
#DRAGON!FIRE Posted March 13, 2014 Posted March 13, 2014 في طريقة افضل سويتها لكـ .. يوم يجي يغير الكلام الموجود يرجعه زي ما كان ذذ addEventHandler( "onClientGUIChanged", resourceRoot, function( ) if ( source == element ) then guiSetText( source, "Type Your Name" ) end end ) الله لايهينك حبيبي بس محتااج الي سويتةة =( تقصد تبي زي طلبكـ ؟
#Rmad~> Posted March 13, 2014 Author Posted March 13, 2014 في طريقة افضل سويتها لكـ .. يوم يجي يغير الكلام الموجود يرجعه زي ما كان ذذ addEventHandler( "onClientGUIChanged", resourceRoot, function( ) if ( source == element ) then guiSetText( source, "Type Your Name" ) end end ) الله لايهينك حبيبي بس محتااج الي سويتةة =( تقصد تبي زي طلبكـ ؟ اي يالغلا لو ماعليك امر
#DRAGON!FIRE Posted March 13, 2014 Posted March 13, 2014 طبعا هذا الكود تضيفه مع كود فتح النافذة حقكـ . bindKey( "F2", "down", function( ) local g_Text = guiGetText( element ) if ( g_Text ~= "" ) then if not ( g_Text == "Type Your Name" ) then guiSetText( element, "Type Your Name" ) end end end )
فاّرس Posted March 13, 2014 Posted March 13, 2014 كيف يعني انت تكتب كلام؟ يعني انت من يوم سويت الاديت وهي فيها كلام؟ ويوم يضغط الزر يروح الكلام واذا رجع فتح النافذه يرجع نفس الكلام؟
#DRAGON!FIRE Posted March 13, 2014 Posted March 13, 2014 (edited) bindKey ( "F2", "down", function ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) outputChatBox ( "Closed" ,255,0, 0 ,true ) else guiSetVisible ( GUIEditor.window[1], true ) local g_Text = guiGetText( edit ) if ( g_Text ~= "" ) then if not ( g_Text == "Type Your Name" ) then guiSetText( edit, "Type Your Name" ) end end showCursor ( true ) outputChatBox ( "Opened", 0, 255, 0, true ) end end ) Edited March 13, 2014 by Guest
#Rmad~> Posted March 13, 2014 Author Posted March 13, 2014 bindKey ( "F2", "down", function ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) outputChatBox ( "Closed" ,255,0, 0 ,true ) else guiSetVisible ( GUIEditor.window[1], true ) local g_Text = guiGetText( edit ) if ( g_Text ~= "" ) then if not ( g_Text == "Type Your Name" ) then guiSetText( edit, "Type Your Name" ) end end showCursor ( true ) outputChatBox ( "Opened", 0, 255, 0, true ) end end ) مشكور زاحف على المساععدة
#DRAGON!FIRE Posted March 13, 2014 Posted March 13, 2014 مشكور زاحف على المساععدة حياك الله بـ اي وقت ^ .
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