Jump to content

iMr.Dawix~#

Members
  • Posts

    1,647
  • Joined

  • Last visited

Everything posted by iMr.Dawix~#

  1. function borrarlogadmin() local path = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 1) local plr = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 6) local row = guiGridListGetSelectedItem(logadmin) if path and plr then triggerServerEvent("borrarlogadmin", localPlayer, path, plr) guiGridListRemoveRow(logadmin,row) end end if this dosen't work show me /debugscript 3
  2. ماشوف اي خطأ بالموضوع الفنكشن حقك الخطأ لأن كوده سيرفر + انت كودك كلنت ما يحتاج مشوار ترايقرات ومدري وش بس لو كان بيستخدم كانسل افنت يستخدم الأفنت حقك
  3. الحس رجولي >< شف الي تحت اسمك وش مكتوب بسرعه زيد مشاركاتك
  4. المصحف لا يباع لكن اكيد بشتريه + حسوب = ؟؟ لو خيروك تعطيني فلوس ولا تعطيني سيارة ابوك
  5. maybe the error, because it dosen't have ACL Access https://wiki.multitheftauto.com/wiki/CallRemote
  6. try this function showits(player,cmd,...) message = table.concat({...}," ") triggerClientEvent(player,"showit",player,message) end addCommandHandler("showit",showits)
  7. viewtopic.php?f=108&t=68479
  8. just take it function borrarlogadmin() local path = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 1) local plr = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 6) guiGridListRemoveRow(guiGridListGetSelectedItem(logadmin)) if path and plr then triggerServerEvent("borrarlogadmin", localPlayer, path, plr) end end
  9. لا تحط ردود كثير مالها داعي هذا موضوع للفنكشنات لازم تغيرون مسار المواضيع انتوا >< .. الفنكشن لقيت اجانب يستخدمونه وقلت اخذه من عندهم واحطه لكم هنا
  10. اذا ما تبي خادم وقروشة تمشى في هذا القسم وتلقا استضافات حق ام تي اي viewforum.php?f=165 ولا شوف ذا https://mtasa.com/hosters/
  11. guiGridListRemoveRow guiGridListGetSelectedItem
  12. فائدته انه يتأكد اذا كان الحدث هذا مضاف او لا وتبيه اذا ضغط الزر يجي واذا راح مكان ثاني يروح منه dxDrawText مثلاً انت عندك اوقات تصير اخطاء او بق من اللاق ويروح يدخل مره ثانيه كل شوي بالدي بق يجي خطأ انه الأفنت اساساً موجود او تسوي زر تضغط مره يضيف ومره ثانيه يشيل الأفنت عشان يخفي التكست مره ويظهره مره
  13. isEventHandlerAdded function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end هذا الفنكشن لقيته يستخدمه كثير ناس لكن فيه عرب ما يدرون عنه وهو مهم جدا ومهو موجود في https://wiki.multitheftauto.com/wiki/Useful_Functions حطيته هنا بـ رد بس عشان اللي يبيه ياخذه
  14. addEventHandler("onPlayerLogin",root,function () end )
  15. local if = "rff" print(if) وتخليها متغير if يقصد بـ هذا المثال انه ما تقدر تستخدم الفنكشنات او الوظائف الأساسية حق لوا مثل المتغير معروف عن الكل تقدر تحط اي شيء مثل player = "Plair07" ivu = "i love you" بس اذا كنت بتستخدم وظيفة اساسيه رح تواجهك اخطاء then = "ثم" والمثال الثاني اللي حطه لك حق طريقة ومكان السترنق
  16. "onPlayerLogin" "onPlayerWasted"
  17. ممكن مثال لذا الفنكشن DxDrawText لاني ما فهمت على الويكي تقدر تستخدم بداله اللبل اللي بالجوي ادتور بس لازم تسوي ترايقر سيرفر وترجعه كلنت عشان يجي للاعب على شاشته triggerServerEvent triggerClientEvent
  18. i think you can get them by getElementsByType("Object") or You can destroy the object that the player clicked on #not tested addEventHandler( "onElementClicked", root,function (_,__,player) if getElementType(source) == "object" then destroyElement(source) end end )
  19. Doesn't work debug script 3 + go to private message and try the code..
  20. try to triggerServerEvent and then destroy it
  21. i don't know what you mean but, try this local cities = {} for _,v in ipairs(c) do cityname = v[1] cities[cityname] = {} for i,ev in ipairs(t) do classname = ev[1] cities[cityname][classname] = {} for i,dv in ipairs(s) do skinName = dv[1] cities[cityname][classname][skinName] = {} cities[cityname][classname][skinName]["spawnX"] = dv[2] cities[cityname][classname][skinName]["spawnY"] = dv[3] cities[cityname][classname][skinName]["spawnZ"] = dv[4] cities[cityname][classname][skinName]["rot"] = dv[5] cities[cityname][classname][skinName]["r"] = dv[7] cities[cityname][classname][skinName]["g"] = dv[8] cities[cityname][classname][skinName]["b"] = dv[9] cities[cityname][classname][skinName]["skins"] = {} local skinID = dv[6] cities[cityname][classname][skinName]["skins"] = split(skinID, ",") cities[cityname][classname][skinName]["permission"] = dv[10] cities[cityname][classname][skinName]["weapons"] = dv[11] cities[cityname][classname][skinName]["information"] = dv[12] cities[cityname][classname][skinName]["team"] = dv[13] end end end
  22. <> addEventHandler("onClientPlayerDamage", localPlayer, function (_, _, body, loss) if body == 9 and not wasEventCancelled() then setElementHealth(source, getElementHealth(source) - 1 ) end end )
×
×
  • Create New...