Jump to content

ds1-e

Scripting Moderators
  • Posts

    636
  • Joined

  • Days Won

    8

ds1-e last won the day on February 16

ds1-e had the most liked content!

Member Title

  • Polish Section Moderator & Scripting Section Moderator

Recent Profile Visitors

8,615 profile views

ds1-e's Achievements

Crime Partner

Crime Partner (30/54)

196

Reputation

  1. After some testing i could just say: wow. Just for the sole fact of updated syntax this is amazing (although there is mistakes to be found), and the latter is just spicy addition.
  2. I assume both annotations and go to definition (particularly variable, because you can already go to function definition) works for Sublime Text 4 as well?
  3. Nie zajmujemy się poszczególnymi serwerami, toteż aby odzyskać dostęp musisz zgłosić się do administracji danego serwera.
  4. Zapewne odnosisz się do danego serwera, musiałbyś się zgłosić na ichniejszym forum.
  5. Make sure to update all default (and community) resources. Keeping them outdated could lead to such scenarios, where they could make use of incorrectly written logic. Disable access to load and loadstring in ACL, unless you have certain reason to keep it enabled (latest MTA builds have it disabled by default). <right name="function.loadstring" access="false"/> <right name="function.load" access="false"/> You could take a look at Script security article, which i've recently updated. Also, there's no such anti-cheat which would protect you from vulnerable Lua code running on your server, so blaming it in first place isn't reasonable - which most of people nowadays shamelessly do. Including ungratefulness towards AC team, which provided nearly cheat-free experience for a few good years.
  6. Try this, but carefully read full page. Might require some changes though. https://wiki.multitheftauto.com/wiki/CallServerFunction
  7. ds1-e

    Fade Sound

    You can use https://wiki.multitheftauto.com/wiki/Animate In order to smoothly change volume.
  8. Napisz tutaj - https://forum.multitheftauto.com/forum/180-ban-appeals/ Tylko po angielsku.
  9. function onClientPlayerDamage(pAttacker, pDamage, pBodypart) local localAttacker = pAttacker == localPlayer if not localAttacker then return false end -- do trigger event to server, preferrably do some check if victim ~= localPlayer; victim in this case is 'source' (without ') end addEventHandler("onClientPlayerDamage", root, onClientPlayerDamage) Note that i won't do everything for you, for next part please read:
  10. Perhaps freeroam/fr_client.lua (line 60) For the next time please use Find in files feature, which should be available in any decent code editor. It's CTRL + SHIFT + F for Sublime Text.
  11. Hit markers are probably based off attacker sync, use onClientPlayerDamage event (bind it to root), check if attacker equal to localPlayer, and then kill player if required (triggerServerEvent, and kill player server-side)
  12. Topic moved for better results.
×
×
  • Create New...