Jump to content

jafar

Members
  • Posts

    1,434
  • Joined

  • Last visited

Everything posted by jafar

  1. لا لا مشيت على كود تابل وما ركزت على الي فوق واحمد جاب العيد معاي
  2. الامر بسيط ^^ كل الي عليك تسوي استخراج للوظيفة اسم الوظيفة outputMessage واستخدامها مطابق ل outputChatBox
  3. انا قلت مثال ^^ تره اهو الكود المطلوب + يضيف حدث onResourceStart ويسوي لوب للاعبين
  4. مثال : addEventHandler( 'onPlayerJoin', root, function ( ) setElementDimension ( source, 10 ) end )
  5. addEventHandler ( 'onResourceStart', resourceRoot, function ( res ) if not isObjectInACLGroup ( 'resource.' .. getResourceName ( res ), aclGetGroup ( 'Admin' ) ) then cancelEvent ( ) outputChatBox("mode - not started add it to group Admin",root,0,255,0,true) end end )
  6. والله انك شنب ابن شنب ابن شنب ههههههه يعطيك العاافيه صح المشكله من حجم الماركر >< الله يعافيك
  7. اممم الكود مابه أي خطأ اتوقع من حجم الماركر بعض الأحيان اذا صار صغير ماينفع معاه الحدث
  8. جرب تحذف ذا السطر if not guiGetVisible ( GUIEditor.window[1] ) then والاند تبعها
  9. تأكد من اسم القروب ذذ
  10. الأرقمنت الثآني weaponSkill: Either: "pro", "std" or "poor". The player must have this skill level set to have the effect.
  11. -- Server veh = createMarker ( 890.19921875,-1053.5,30.60000038147, "cylinder", 1, 0, 0, 255, 170 ) addEventHandler("onMarkerHit", veh, function (player) if (getElementType (player) == "player") then local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("admin")) then triggerClientEvent(player,"hit", player) end end end,false) -- Client addEvent("hit",true) addEventHandler("hit",root, function() if not guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end)
  12. يفضل اضافة شرط isElement
  13. لازم الجدول السبب : عشان يصير لكل لاعب ماركر بدون جدول كل اللاعبين ماركر واحد
  14. أخوات ؟ ما أظن فيه أخوات أهنا ^^
  15. @ بشر آهو يقصد يطلع الكلام ف السكوربورد اذا كمل تحميله او ​‏​​لا ^^
  16. لم يتم التجربة -- Server exports.scoreboard:addScoreboardColumn('Download') function onJoin() setElementData ( source, "Download", "Waiting" ) end addEventHandler("onPlayerJoin",root,onJoin) function onDownloadFinish() setElementData ( client, "Download", "DownloadFinish" ) end addEvent("onDownloadFinish",true) addEventHandler("onDownloadFinish",root,onDownloadFinish) -- Client addEventHandler("onClientResourceStart",resourceRoot, function() triggerServerEvent("onDownloadFinish",localPlayer) end )
  17. يجي في اف8 كلام صح ؟ >
  18. guiGridListSetItemColor + ممنوع المشاركات المزدوجة
  19. اللون الأحمر على الوظيفة = كلنت اللون البرتقالي على الوظيفة = سيرفر اللون الأزرق على الوظيفة = كلنت & سيرفر
  20. client - server نفس الشيء بس الاختلاف مابينهم انه الوظايف في بعض الاحيان تجي كلنت فقط وفي بعض الاحيان تجي سيرفر فقط وفي بعض الاحيان تصلح للكلنت والسيرفر
  21. متأكد انت مسونه ! هههههه انت حتى اسم الترايقر ما بدلته
  22. jafar

    how ?

    تقدر تسويه بـ GUIEditor guiGridListAddColumn مثال من الويكي : function clientsideResourceStart () local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) -- Create the grid list local column = guiGridListAddColumn( playerList, "Player", 0.85 ) -- Create a 'players' column in the list if ( column ) then -- If the column was successfully created for id, playeritem in ipairs(getElementsByType("player")) do --Loop through all the players, adding them to the table local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end end end addEventHandler ( "onClientResourceStart", getRootElement(), clientsideResourceStart )
  23. function list() guiGridListClear(grid) for id, players in ipairs (getElementsByType("player")) do local column = guiGridListAddColumn( grid, "Player Name", 0.89 ) local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, getPlayerName(players), false, false) guiGridListSetItemColor ( grid, row, 1, 0, 250, 154, 255 ) end end addEventHandler("onClientResourceStart", resourceRoot, list) addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.button[1] then -- اسم الزر , اذا مب نفسه استبدله بالموجود local name = guiGridListGetItemText(grid, guiGridListGetSelectedItem(grid), 1) local amount = guiGetText (edit) -- استبدله بالايدت الموجود عندك triggerServerEvent( "GiveMoney", getLocalPlayer ( ), name, amount ) end end) عليك تكمل ملف السيرفر
×
×
  • Create New...