Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. ياليل ياخي ذي الأحداثيات مو أنت الي تحطها ذي تجي من الفنكشن بس انسخ الكود و حطه بالمفكرة و احفظ و شغل المود -_-""""
  2. ذا مثال بسيط car = createVehicle(410, -711.33667, 962.23163, 12.36893) setElementFrozen(car, true) addEventHandler("onClientCursorMove", root, function() local w, h = guiGetScreenSize() local x, y, z = getWorldFromScreenPosition(w/2, h/2, 10) setElementPosition(car, x, y, z) end)
  3. onClientCursorMove إذا حطيتها مع الأفنت بتتحرك مع حركة الماوس
  4. تكلمني؟؟ لا أكلم نفسي
  5. TAPL

    SOLVED!

    What is not work? try this function createTeamsOnStart() MainTeam = createTeam("The Professionals", 250, 50, 0) end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) function setTeam(_, account) local team = getAccountData(account, "team") if (team) then if not getTeamFromName(team) then MainTeam = createTeam(team, 250, 50, 0) end setPlayerTeam(source, MainTeam) end end addEventHandler("onPlayerLogin", root, setTeam) function save() local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (team and MainTeam and team == MainTeam) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) setPlayerTeam(source, nil) remove(source) end end addEventHandler("onPlayerQuit", root, save) function unassignTeam() local team = getPlayerTeam(source) if (team and MainTeam and team == MainTeam) then setPlayerTeam(source, nil) remove(source) end end addEventHandler("onPlayerLogout", root, unassignTeam) function remove(source) if MainTeam and (countPlayersInTeam(MainTeam) == 0) then destroyElement(MainTeam) end end
  6. 50% من كلامك صحيح بالنسبة إلى ان الدوس صمم للسامب خطأ الدوس = لينكس واللينكس = دوس لينكس بدون دوس = تابل بدون مخ والعكس صحيح بازوكا تايم
  7. لا ذا يجي مع الأفنت أفتح الويكي https://wiki.multitheftauto.com/wiki/OnClientCursorMove Parameters شوف الـ (depth) الأفضل تستخدم الفنكشن ذا عشان تقدر تحدد المدى https://wiki.multitheftauto.com/wiki/GetWorldFromScreenPosition
  8. مع الأفنت ذا getRootElement() بس يا عزيزي إذا استخدمت addEventHandler("onResourceStart", getRootElement(), resourceStart) بتصير لك مشكلة كل ما تشغل أي مود بالسيرفر راح يتفعل الأفنت و يسوي لك ماركر resourceRoot المفروض تستخدم addEventHandler("onResourceStart", resourceRoot, resourceStart)
  9. أهااا قصدك تبي تمسك السيارة بالماوس و تحركها خخخ أضن تقدر تستخدم معه الأفنت ذا onClientCursorMove تستخدم ذي الأحداثيات و تحطها للسيارة بالفنكشن ذا setElementPosition
  10. ~_~ قصدك تلصق فيك؟ attachElements
  11. أها أضن انك تقصد ذا الفنكشن https://wiki.multitheftauto.com/wiki/SetWorldSpecialPropertyEnabled
  12. تطير يعني تمشي في الهوا أو تنقز فوق و ثم تطيح؟
  13. ذي مو احداثيات ذا يبي السرعة أنت ايش تبي تسوي بالضبط؟
  14. showcol الكول تقدر تشوفه عن طريق الكومند و طبعاً لازم تستخدم الفنكشن ذا setDevelopmentMode
  15. setElementVelocity اشرح لي ذآ: bool setElementVelocity ( element theElement, float speedX, float speedY, float speedZ ) آي المنت يقصد + اي سرعه؟
  16. setElementVelocity
  17. addEventHandler("onClientResourceStart", resourceRoot, function() engineImportTXD(engineLoadTXD("17.txd"), 17) engineReplaceModel(engineLoadDFF("17.dff", 0), 17) end)
  18. موجود للبيد بس كلينت onClientPedDamage
  19. Parameters هذا يسمى https://wiki.multitheftauto.com/wiki/OnPedWasted شوف الويكي
  20. يحط الكاميرا على أحداثيات ثابته setCameraMatrix الفنكشن يخلي الكاميرا تلحق عنصر معين طبعاً حالياً الفنكشن ما تقدر تحط إلا لاعب فقط setCameraTarget اما الفنكشن
  21. function MarkerHit(player) if player == localPlayer then setCameraMatrix(1700.916015625, -1222.2224121094, 280.87817382813) setTimer(setCameraTarget, 1000, 1, player) end end addEventHandler("onClientMarkerHit", Marker, MarkerHit)
  22. TAPL

    Jail save =\

    You should define it each time an player quit/join to the server, because in the end of the event, you closing it with xmlSaveFile. @ZL|LuCaS, onPlayerQuit don't have player parameter.
  23. TAPL

    Jail save =\

    Where is jaildata defined?
  24. TAPL

    Winner !!!

    Also local x, y = guiGetScreenSize ( ) Will be overwrite by this: local x, y, z = getElementPosition ( veh )
  25. TAPL

    Winner !!!

    You should use localPlayer instead of source.
×
×
  • Create New...