taha201100 Posted September 7, 2015 Share Posted September 7, 2015 (edited) السلام عليكم ممكن كود يخلي اللوحه الي سويتها تفتح بزر معين مع مثال وايضا لما تفتح اللوحه يظهر الماوس ولما تقفل تروح الماوس مع مثال سهل ويضا كود يعطي الاعب دم وكود يعطي الاعب درع فقط لا غير ومشكورين Edited September 7, 2015 by Guest Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 اب اب وينكم Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 كود اللوحة -- key = الزر -- wnd = اللوحة اللي تبيها تفتح bindKey("key",'down', function ( ) guiSetVisible ( wnd,not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) كود الدم setElementHealth كود الدرع setPedArmor Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 ممكن مثال على الدم ومثال على الدرع Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 GUIEditor.window[1] bindKey("F2",'down', function ( ) guiSetVisible ( wnd,not guiGetVisible ( wnd ) ) showCursor ( GUIEditor.window[1] ( wnd ) ) end ) كذا تصير؟ Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 ما في احد نشيط يرد بدي اخلص المود باقي شوية ممكن احد يمشي معي Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 تابل يرحم اهلك لو موجود ساعدني بدي اخلص Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 تابل معلش اسئلتي هي فقط بدي تشوف الكود صح ولا لا الزر الي يخلي اللوحه تفتح بزر معين وبدي كود يغلق اللوحه يعني لما يكبس المربع تغلق واذا الاعب كبس زر يعطيه دم حسب الي انا اختاره وايضا درع ويا ريت تساعدني ادري طلبات كثيره بس محتاجهم Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 GUIEditor.window[1] bindKey("F2",'down', function ( ) guiSetVisible ( wnd,not guiGetVisible ( wnd ) ) showCursor ( GUIEditor.window[1] ( wnd ) ) end ) كذا تصير؟ لا غلط تصير كذا bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] )) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) بالنسبة للكود حق الدم والدرع اذا ضغطت على زر يحط دمك 100 وزر ثاني يحط درعك 100 Client : addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == اسم الزر حق الدرع) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == اسم الزر حق الدم) then triggerServerEvent ( "setahealth",localPlayer) end end ) Server: addEvent("setahealth",true) addEventHandler("setahealth",root, function() setElementHealth ( source, 100 ) end) addEvent("setarmor",true) addEventHandler("setarmor",root, function( ) setPedArmor ( source, 100 ) end) S Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 اخوي سويت تشغيل بزر معين واشتغل لكن اعطاء دم ودرع ما ضبطوا Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 الكلنت GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6]) then triggerServerEvent ( "setahealth",localPlayer) end end ) bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] )) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) السيرفر addEvent("setahealth",true) addEventHandler("setahealth",root, function() setElementHealth ( source, 100 ) end) addEvent("setarmor",true) addEventHandler("setarmor",root, function( ) setPedArmor ( source, 100 ) end) وش الخطأ انه ما يعطي دم وردع Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 وبالنسبه لزر اغلاق ما في له وظيفه لما اكبسه تسكر اللوحه؟؟ +اخر سؤال بأذن الله لما اشغل المود على طول تيجي اللوحه ما في طريقه تخلص المود يشتغل لكن ما يبين الا عند ظغط الزر Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 (edited) Client : GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) Server : addEvent("setahealth",true) addEventHandler("setahealth",root, function() setElementHealth ( source, 100 ) end) addEvent("setarmor",true) addEventHandler("setarmor",root, function( ) setPedArmor ( source, 100 ) end) Edited September 7, 2015 by Guest Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 طيب وين حق السيرفر الي قولت لي عليه Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 ما اشوف في تغيير اصلن نفس الي كتبته اول لكن ناقصه زر فتح اللوحه وما وضحت السيرفر Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 ما اشوف في تغيير اصلن نفس الي كتبته اول لكن ناقصه زر فتح اللوحه وما وضحت السيرفر ياخي لاتشوف بس رح جرب انا جربته شغال Link to comment
!#NssoR_) Posted September 7, 2015 Share Posted September 7, 2015 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) addEventHandler ("onClientGUIClick",guiRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) elseif ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) elseif ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) elseif ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) elseif ( source == GUIEditor.button[7] ) then guiSetVisible (GUIEditor.window[1],false) showCursor (false) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] )) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEvent("setahealth",true) addEventHandler("setahealth",root, function() setElementHealth ( source, 100 ) end) addEvent("setarmor",true) addEventHandler("setarmor",root, function( ) setPedArmor ( source, 100 ) end) Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 اخوي جربته ما يعطي دم ولا درع Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 ماله دخل الميتا المود اشتغل واللوحه فتحت لكن لما اكبس زر اعطاء دم ما يجيني دم وانا معطي نفسي سلاب وحتى الدرع Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 شكلك حاط السيرفر والكلينت بملف واحد Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 http://www.gulfup.com/?EgvOEQ حمله وجربه انت وقولي وش الخطأ Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 نسور انت فوق لما طرحت لي الاكواد زر اغلاق صار يشتغل اعطيني الكود حط اغلاق اللوحه يا نسور فضلا ليس امرا Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 تم اشتغلت هههههههه حسبت الميتا ماله دخل معلش انا جديد بس ممكن كود الي لما اكبس على زر اغلاق تسكر اللوحه ومشكور ما قصرت 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