Jump to content

` Allawi

Members
  • Posts

    329
  • Joined

  • Last visited

Everything posted by ` Allawi

  1. ركزوا شوي يا شباب لانكم جايبين العيد في حدث onElementClicked
  2. بالنسبة لطلب الثالث شلون تبيه يروح افك ؟
  3. اطرح الجدول عشان نشوف الطريقة المناسبه لك
  4. addEventHandler("onClientGUIClick",guiRoot, function() if source == gridlist then row = guiGridListGetSelectedItem(gridlist) if row ~= -1 then skin = guiGridListGetItemText(gridList,row,column) -- استبدل column بالصف اللي تبيه ped = createPed(tonumber(skin),x,y,z) -- استبدل x,y,z بالاحداثيات اللي تبيها end elseif source == button then -- استبدل button بالزر اللي تبيه -- كودك end end )
  5. حياك الله .. !
  6. addEvent ( "aPlayer", true ) addEventHandler ( "aPlayer", root, function ( player, action, message ) if ( action == "shout" ) then for _,thePlayer in ipairs ( getElementsByType ( "player" ) ) do if ( isGuestAccount ( getPlayerAccount ( thePlayer ) ) == false ) then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Console" ) ) ) then outputChatBox ( " ( " .. getPlayerName ( source ) .. " ) " .. getPlayerName ( player ) .. " : " .. message, thePlayer, 255, 100, 30 ) end end end end end ) ملاحضة: player: اللاعب المرسل اليه source: اللاعب الذي قام بالإرسال
  7. getAccountsBySerial تفضل
  8. ضيف المود في قروب ادمن
  9. isObjectInACLGroup شف المثال الثاني مشابه لطلبك وتقدر تعدل عليه
  10. createRadarArea createObject setElementAlpha
  11. الكود غلط يالطيب شلون فهمت التايمر
  12. addCommandHandler isTimer getTimerDetails setGameType setTimer setServerPassword طبعا كذا راح تحدث الوقت عند كتابة الامر ^ اما اذا تبيه يتحدث تلقائي استخدم الوظائف التالية setTimer isTimer executeCommandHandler وفي اكثر من طريقة لإستخدام الوظائف ولاكن انا عطيتك اللي اشوفه اسهل لك
  13. حياك الله
  14. مثال بسيط على السريع Client: addEvent("example",true) addEvent("examples",true) addEventHandler("onClientResourceStart",resourceRoot, function() example = guiCreateButton(250,250,100,50,"example",false) if example then triggerServerEvent("example",localPlayer) end end ) addEventHandler("onClientGUIClick",guiRoot, function() if source == example then guiSetEnabled(example,false) if guiGetEnabled(example) == false then triggerServerEvent("examples",localPlayer) end end end ) function examples() if eventName == "example" then guiSetEnabled(example,false) elseif eventName == "examples" then guiSetEnabled(example,true) end end addEventHandler("example",root,examples) addEventHandler("examples",root,examples) Server: timer = {} addEvent("example",true) addEventHandler("example",root, function() local serial = getPlayerSerial(source) if timer[serial] then triggerClientEvent(source,"example",source) end end ) addEvent("examples",true) addEventHandler("examples",root, function() local serial = getPlayerSerial(source) timer[serial] = setTimer( function() for index,player in ipairs(getElementsByType("player")) do if getPlayerSerial(player) == serial then triggerClientEvent(player,"examples",player) timer[serial] = nil end end end, 30000, 1 ) end ) تقدر تعدل عليه براحتك واذا تشوف الكود طويل وماتقدر تستخدمه في كل مود تبيه تقدر تسويه وظيفة وتوصل بينها واستخدامها اسهل بالتوفيق
  15. اطرح الكود حقك اللي مسويه بالطريقة هذي setTimer guiSetEnabled وانا راح اعدل لك عليه
  16. اكيد ماراح تلقاها لانها خاصه لازم تبدع وتسوي لك مهمات بنفسك
  17. ابحث عن مودات الـ hud وتعلم منها
  18. معقولة ماقدرت تسوي شي من هذي الطلبات
  19. isTimer setTimer
  20. table.insert
  21. لو تبي توزيع مره ثانية لازم اول شي تمسح الداتا بعدين توزع مره ثانية وعشان تمسح الداتا استخدم الوظائف التالية getAccounts -- تجيب جميع الحسابات getAccountData -- تحدد الحسابات اللي فيه داتا setAccountData -- تمسح الداتا من الحسابات
  22. هو يقصد كذا وماقال شي غلط setElementDimension(team theTeam,getElementDimension(localPlayer)) setElementInterior(team theTeam,getElementInterior(localPlayer))
  23. الجداول راح تكون صعبة عليه بالنسبة لتيمات هي افضله واسهله ولاكن لازم تقول لنا نوع المهمه اللي تبي تسويها لان كل مهمة تختلف عن الاخرى عشان نقدر نساعدك
  24. https://forum.multitheftauto.com/viewtopic.php?f=160&t=95344
  25. https://forum.multitheftauto.com/viewtopic.php?f=119&t=94462
×
×
  • Create New...