Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. استخدم ذا الفنكشن عشان تعرف من اي مود واي ملف و اي سطر يجي الفراغ بالشات https://wiki.multitheftauto.com/wiki/AddDebugHook
  2. https://wiki.multitheftauto.com/wiki/Element_tree
  3. Actually you do need table instead of variable, if you wish to have more than one marker at more than one player head.
  4. TAPL

    Help required.

    Your meta DefaultTime setting is 2, But the timer minimum accepted interval is 50ms.
  5. Make a variable for the marker and destroy it when you want to remove it. destroyElement
  6. انتقال..مهمة..تبدأ..لوحة ما فهمت شي انا .. لازم نخمن او نسئلك وش تقصد .. تفاصيل اكثر.. الخ؟ ثاني شي وين الكود الي تتكلم عنه + اي شي يتعلق بالبرمجة في له قسم مخصص للبرمجة ينقل إلى قسم البرمجة
  7. getPlayerMoney setPlayerMoney ذولا الفنكشين في الكلينت ما يحتاجون ارقمنت لاعب + لا ينصح بأستخدام فنكشات الفلوس في الكلينت لان فلوس الكلينت تعتبر وهمية لا يعترف بها السيرفر و يمكن استخدام برامج غش لتغيرها الخ..
  8. حاط وصف مود كامل اتوقع لا يقل عن 200 - 300 سطر و تبي اعطيك فنكشاته بالكامل إذا انت مو عارف ولا فنكشن من نفسك كيف راح تعرف تستخدم الفنكشات إذا عطيتك اسمائها؟ ما راح اضيع وقت اخمن لك وش الفنكشات الي راح تستخدمها لأنك اساساً ما رح تعرف كيف تستخدمها أعتقد حان الوقت لزيارة صفحة الويكي لتعلم الأساسيات و اخذ نظرة على الفنكشات و الأحداث الموجود و التعرف على فائدتها https://wiki.multitheftauto.com/wiki/Main_Page
  9. فنكشات تسوي ايش؟
  10. You're welcome.
  11. طيب ايش المطلوب منا بالضبط؟
  12. function spawnOnLogin() setTimer(function(source) spawnPlayer (source, 2034.17883, -1403.27026, 17.28900) end, 4000, 1, source) end addEventHandler("onPlayerWasted", getRootElement(), spawnOnLogin)
  13. + 1 or + 2 to z.
  14. Use outputChatBox to see what the id of 'rocket launcher '. rocket is projectile, it has different id here: https://wiki.multitheftauto.com/wiki/CreateProjectile
  15. جربت ميلينيوم و اكس بي و فيستا و 7 افضل ويندوز من ناحية الثبات ويندوز 7 ما جربت 8 ولا 8.1 بس من الواضح راح انتقل لويندوز 10 لما ينزل لان دايركت اكس 12 راح يكون على ويندوز 10 فقط
  16. And you should use this event for explosive weapons. https://wiki.multitheftauto.com/wiki/OnClientExplosion And a trigger to server side to blow the rhino is required.
  17. wnd = guiCreateWindow(200, 200, 150, 300, "Test", false) guiCreateStaticImage(0, 0, 150, 300, "imagename.png", false, wnd)
  18. function checkVehicleDestroyed(loss) local vehHealth = getElementHealth(source) if vehHealth < 260 then setElementHealth(source, 150) setVehicleEngineState(source, false) setElementData(source, "vehicles.vEngine", false) setTimer(function(source) -- add it here blowVehicle(source) addEventHandler("onVehicleExplode", source, sendVehicleToRespawn) end, 10000, 1, source) -- pass the source into the timer end end function makeVehicleDamageProof(thePlayer, seat) if seat == 0 then setVehicleDamageProof(source, true) end end addEventHandler("onVehicleDamage", root, checkVehicleDestroyed) addEventHandler("onVehicleExit", root, makeVehicleDamageProof)
  19. Why you don't just use this: setModelHandling
  20. Can you post an image shown the error?
  21. function repairVeh() local theVehicle = getPedOccupiedVehicle(client) if theVehicle then fixVehicle(theVehicle) end end addEvent("repairVeh", true) addEventHandler("repairVeh", root, repairVeh)
  22. Because an server side event with this name already exist in MTA, choose different event name.
  23. https://community.multitheftauto.com/index.php?p=resources&s=details&id=4671
  24. why he should use a table ? MTA isn't single player, you can't just use one variable for more than one player. Actually there's no need for using the event onMarkerHit and onMarkerLeave. Use one timer and loop all players in the marker and give them money. getElementColShape getElementsWithinColShape
  25. player is not defined inside the timer, also you should use table.
×
×
  • Create New...