Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. ينقل إلى قسم البرمجة
  2. ينقل إلى قسم البرمجة
  3. ينقل إلى قسم البرمجة
  4. ينقل إلى قسم المساهمات
  5. addEventHandler("onMarkerLeave", root, function(player) if (source == marker) then if getElementType(player) == "player" then toggleControl(player, "fire", true) toggleControl(player, "aim_weapon", true) toggleControl(player, "vehicle_fire", true) end end end)
  6. You're welcome.
  7. مواضيع اتهامات و مشاكل سرقة المودات ممنوعة https://forum.multitheftauto.com/viewtopic.php?f=115&t=54447 يغلق
  8. This is another way to do same thing. https://forum.multitheftauto.com/viewtopic.php?f=91&t=27793
  9. تقدر تسوي تيبل للشرطة و تيبل للنوتيم local PoliceTable = {} local NoTeamTable = {} لما لاعب يدخل الماركر حق المهمه تتأكد من التيم حقه getPlayerTeam getTeamName إذا كان في تيم الشرطة تدخله تيبل الشرطة table.insert(PoliceTable, player) إذا كان نوتيم تدخل تيبل النوتيم table.insert(NoTeamTable, player) إذا تبي تعرف مثلاً كم شرطي في المهمه تقدر تعرف من عدد الي داخل التيبل مثال addCommandHandler("police", function(player) outputChatBox("There are "..#PoliceTable.." police in the mission!", player, 0, 255, 0) end)
  10. تقدر تستخدم النجمه كـ علامة ضرب في البرمجه المعروف ان الثانية الواحده تساوي 1000 ملي ثانية و الدقيقة تساوي 60 ثانية يعني يصير الـ 10 دقائق كذا 10*60*1000 تقدر تحطها كذا في التايمر setTimer(function() end, 10*60*1000, 1, end)
  11. سيرفر
  12. TAPL

    Userdata value?

    You're welcome.
  13. Yes, and can be done with other way. This can be done with more than one way. You can set element data on the vehicle which will content the sound info path etc .. and when any new player join the server make a loop in client side for all vehicle in the server and get the element data where it will content the path and the you can use playSound. You can keep all the work in element data, so when you start the sound you just need to set the path as element data and when you stop the sound you just need to set the element data to false. In conjunction with event onClientElementDataChange you can play/destroy the sound element.
  14. الأفضل تحط الي يدخل الماركر في تيبل table.insert # بعدين تقدر تجيب عدد الي بالمهم عن طريق مثال local count = #tableName و الي يموت او إذا خلصت المهمه تسوي لوب على التيبل تعطيهم فلوس و تحذفهم من التيبل table.remove
  15. White color occur when you use client side outputChatBox and put visibleTo argument but it doesn't require it. But in your case you used it server side (make sure you have it server side in meta). Also you destroy the sound element in the server side but the sound elements exist client side only and it cannot be destroyed server side.
  16. TAPL

    stats

    عليكم السلام ايش هذا؟ local slot = getPedWeapon(killer) for _,player in ipairs(getElementsByType("player")) do bindKey(player,"next_weapon",PlayerKill) bindKey(player,"previous_weapon",PlayerKill) وين معرف؟ stat المتغير
  17. getTimerDetails
  18. TAPL

    Userdata value?

    Both.
  19. addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs (getElementsByType("player")) do bindKey(player, "0", "down", stopMusic) end end)
  20. https://wiki.multitheftauto.com/wiki/OnClientGUIAccepted
  21. TAPL

    Userdata value?

    https://wiki.multitheftauto.com/wiki/AddCommandHandler Wiki example server side number 2 (click to show it).
  22. TAPL

    HELP MEH !

    Your server may be running on old computer and/or your database has a lot of accounts that makes it lag.
  23. Because event onResourceStartdoesn't have player source, you will need to use: getElementsByType Loop all players in the server. And please use Lua tag next time, easier to read the code.
  24. TAPL

    paynspray

    Vahalla?
  25. TAPL

    Userdata value?

    Line 17 change whom to who.
×
×
  • Create New...