Jump to content

Comboboxes


Recommended Posts

السلام عليكم يا مزز عساكم بخير هلا والله

بغيت اسئل اذا ما في مانع

guiCreateComboBox 
guiComboBoxAddItem 
guiComboBoxClear 
guiComboBoxGetItemText 
guiComboBoxSetItemText 
guiComboBoxRemoveItem 
guiComboBoxGetSelected 
guiComboBoxSetSelected 

ممكن افهم وش ذول كلهم؟؟

يعني وش وظيفة كل واحد منهم مشان الكومو بوكس

+سؤالي الثاني

اقدر اسوي مثلن لما يدخل سياره اي دي معين يتنفذ امر يعني سياره معينة فقط وش الي احتاجه

+كيف يمديني اسوي للأزرار ارقام مثلن لما تفتح اللوحة ما في داعي تتطلع الماوس مشان يضغط الزر لو ضغط رقم 1 مثلن يضغط زر بوتون 1 اتمنى وصلت

ارد عليكم بكرة تصبحون على خير

Link to comment
  • Replies 69
  • Created
  • Last Reply

Top Posters In This Topic

guiCreateComboBox -- إنشاء الكومبو بوكس 
guiComboBoxAddItem -- لإضافة شيء بالكومبو بوكس 
guiComboBoxClear -- حذف كل شيء موجود بالكومبو بوكس 
guiComboBoxGetItemText -- أخذ أسم الأختيار 
guiComboBoxSetItemText -- وضع أسم للإختيار 
guiComboBoxRemoveItem -- حذف الإختيار 
guiComboBoxGetSelected -- أخذ الإختيار 
guiComboBoxSetSelected -- وضع الإختيار 

وطلبك الثاني ، اذا ركب أحد سيارة معينة أستخدم التالي

getElementModel 

أما بالنسبة للأزرار 1 يظغط زر أتوقع م تقدر

Link to comment
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

ممكن اعرف الخطأ وين

كلنت

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

# 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
    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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...