taha201100 Posted April 4, 2016 Share Posted April 4, 2016 السلام عليكم يا مزز عساكم بخير هلا والله بغيت اسئل اذا ما في مانع guiCreateComboBox guiComboBoxAddItem guiComboBoxClear guiComboBoxGetItemText guiComboBoxSetItemText guiComboBoxRemoveItem guiComboBoxGetSelected guiComboBoxSetSelected ممكن افهم وش ذول كلهم؟؟ يعني وش وظيفة كل واحد منهم مشان الكومو بوكس +سؤالي الثاني اقدر اسوي مثلن لما يدخل سياره اي دي معين يتنفذ امر يعني سياره معينة فقط وش الي احتاجه +كيف يمديني اسوي للأزرار ارقام مثلن لما تفتح اللوحة ما في داعي تتطلع الماوس مشان يضغط الزر لو ضغط رقم 1 مثلن يضغط زر بوتون 1 اتمنى وصلت ارد عليكم بكرة تصبحون على خير Link to comment
#|_oskar_|# Posted April 5, 2016 Share Posted April 5, 2016 كلهم متشابهين بالقريد ليست مايفرق غير شكله بس Link to comment
taha201100 Posted April 5, 2016 Author Share Posted April 5, 2016 شايفني اعرف للجريد ليست؟؟ ممكن احد يشرح كل سطر وش وظيفتة +تجابون على اسئلتي يلي تحت لاهنتم Link to comment
N3xT Posted April 5, 2016 Share Posted April 5, 2016 guiCreateComboBox -- إنشاء الكومبو بوكس guiComboBoxAddItem -- لإضافة شيء بالكومبو بوكس guiComboBoxClear -- حذف كل شيء موجود بالكومبو بوكس guiComboBoxGetItemText -- أخذ أسم الأختيار guiComboBoxSetItemText -- وضع أسم للإختيار guiComboBoxRemoveItem -- حذف الإختيار guiComboBoxGetSelected -- أخذ الإختيار guiComboBoxSetSelected -- وضع الإختيار وطلبك الثاني ، اذا ركب أحد سيارة معينة أستخدم التالي getElementModel أما بالنسبة للأزرار 1 يظغط زر أتوقع م تقدر Link to comment
taha201100 Posted April 5, 2016 Author Share Posted April 5, 2016 مشكور لكن مره شفته اتوقع ينفع ننتظر الباقي بجوز يحصلوه Link to comment
Simple. Posted April 5, 2016 Share Posted April 5, 2016 طلبك الثالث سو لما يفتح اللوحه يسوي bindKey ولما تقفلها يسوي unBindKey Link to comment
taha201100 Posted April 5, 2016 Author Share Posted April 5, 2016 يا ريت لو في مثال بسيط Link to comment
Me[Z]oO Posted April 5, 2016 Share Posted April 5, 2016 يا ريت لو في مثال بسيط bindKey("F1","down", function ( ) guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) Link to comment
Simple. Posted April 5, 2016 Share Posted April 5, 2016 bindKey('F1','down', function ( ) if not guiGetVisible ( wnd ) then bindKey ( 'num_1', 'down', Health ) bindKey ( 'num_2', 'down', kill ) guiSetVisible ( wnd, true ) showCursor ( true ) else guiSetVisible ( wnd, false ) showCursor ( false ) unbindKey ( 'num_1', 'down', Health ) unbindKey ( 'num_2', 'down', kill ) end end ) function Health ( ) setElementHealth ( localPlayer, 100 ) end function kill ( ) setElementHealth ( localPlayer, 0 ) end Link to comment
taha201100 Posted April 5, 2016 Author Share Posted April 5, 2016 ممكن اعرف الخطأ وين كلنت addEventHandler ("onClientResourceStart",root, function () triggerServerEvent("22",localPlayer) end ) addEventHandler ("onPlayerLogin",root, function () triggerServerEvent("33",localPlayer) end ) سيرفر addEvent ("22",true) addEventHandler ("22",root, function () createTeam ("DOV",159,112,12) end ) addEvent ("33",true) addEventHandler ("33",root, function (source) outputChatBox(getPlayerName(source)" has logged in!", root) setPlayerTeam ( source, DOV ) giveWeapon (source,38,4) end ) Link to comment
N3xT Posted April 5, 2016 Share Posted April 5, 2016 # Server : local team = createTeam ("DOV",159,112,12) addEventHandler ("onPlayerLogin",root, function () setPlayerTeam ( source, team ) giveWeapon ( source, 38, 4) outputChatBox(getPlayerName(source)" has logged in!", source, 255, 0, 0, true) end ) ' onPlayerLogin ' ^ حدث سيرفر ، كيف حاطه بكلنت ؟ Link to comment
taha201100 Posted April 5, 2016 Author Share Posted April 5, 2016 بس في غلط هنا ممكن اعرف وين؟؟ outputChatBox(getPlayerName(source)" has logged in!", source, 255, 0, 0, true) Link to comment
Abdul KariM Posted April 5, 2016 Share Posted April 5, 2016 outputChatBox(getPlayerName(source).." has logged in!", source, 255, 0, 0, true) Link to comment
taha201100 Posted April 5, 2016 Author Share Posted April 5, 2016 +مو راضي يكتمل التحقق مدري ليه addEventHandler ("onPlayerWasted",root, function () if getPlayerTeam(source) and getTeamFromName("Dov") then giveWeapon ( source, 9, 1) end end ) Link to comment
#|_oskar_|# Posted April 5, 2016 Share Posted April 5, 2016 if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) == "Dov" then Link to comment
Jupi Posted April 5, 2016 Share Posted April 5, 2016 ما ضبط اوسكار يضبط بس انت تعطيه السلاح لما يموت ولما يرسبن يروح السلاح خلي الحدث onPlayerSpawn Link to comment
Jupi Posted April 5, 2016 Share Posted April 5, 2016 ما ضبط اوسكار يضبط بس انت تعطيه السلاح لما يموت ولما يرسبن يروح السلاح خلي الحدث onPlayerSpawn Link to comment
taha201100 Posted April 5, 2016 Author Share Posted April 5, 2016 ههههههههه ما فكرت فيها على العموم اشتغل كودي القديم +مشكورين :] Link to comment
taha201100 Posted April 5, 2016 Author Share Posted April 5, 2016 ههههههههه ما فكرت فيها على العموم اشتغل كودي القديم +مشكورين :] Link to comment
Jupi Posted April 5, 2016 Share Posted April 5, 2016 ههههههههه ما فكرت فيها على العموم اشتغل كودي القديم +مشكورين :] العفو Link to comment
Jupi Posted April 5, 2016 Share Posted April 5, 2016 ههههههههه ما فكرت فيها على العموم اشتغل كودي القديم +مشكورين :] العفو Link to comment
taha201100 Posted April 6, 2016 Author Share Posted April 6, 2016 addEventHandler ("onPlayerSpawn",root, function () if getPlayerTeam(source) and getTeamFromName("Dov") then giveWeapon ( source, 9, 1) setPlayerSkin ( source, 181 ) end end ) يعطيه سلاح لكن ما يعطيه شخصيه ليه؟؟ +وش يختلف fadeCamera عن setCameraInterior +setCameraMatrix+setCameraTarget وش الفرق بين الاربعه؟ 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