Jump to content

darkdreamingdan

MTA Team
  • Posts

    2,778
  • Joined

  • Last visited

  • Days Won

    4

darkdreamingdan last won the day on November 30 2016

darkdreamingdan had the most liked content!

About darkdreamingdan

  • Birthday 21/05/1990

Member Title

  • Godfather (The MTA Team)

Details

  • Gang
    VCP

Recent Profile Visitors

10,193 profile views

darkdreamingdan's Achievements

Foot Soldier

Foot Soldier (41/54)

145

Reputation

  1. We became recently aware of this issue. It's indeed a sad thing, and there might be an option of disabling VOIP for UAE users, but it's unclear if that will be enough. It would be nice to apply for a TRA license, but ultimately we cant afford it (applying costs 10,000 AED). If we could get some sponsorship or donations to apply for a license, it could be an option however.
  2. That's strange. Everything works here - including the copy function. function fnc() if() code() if() code() end end end What browser are you using?
  3. Multi Theft Auto: Vice City's default port was 2003. That's probably what "MultiTheftAuto" refers to. Multi Theft Auto: San Andreas's default port is 22003, but you also need to open the http port which is 22005.
  4. So I'm finally releasing the MTA Highlight extension that powers our syntax highlighting on the forums and on the wiki. This enables the blue and orange links you see that link to the Wiki for MTA functions. The highlighter is built off of Google's prettify library, so is only compatible with software that uses Google Prettify to highlight their code. Installation Usage is really simple, and it sits very well with Google's own prettify library. Note, that you'll need a version of JQuery for the functions to work. In your HTML HEAD includes, add the following: <!-- Add JQuery --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <!-- Add Google Prettify library --> <script src="//cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script> <!-- Lua not added by default, add it--> <script src="//cdn.rawgit.com/google/code-prettify/master/src/lang-lua.js"></script> <!-- Get the latest function definitions from MTA Forums --> <script type='text/javascript' src='//forum.multitheftauto.com/uploads/javascript_syntax/luafuncs.js'></script> <script type='text/javascript' src='//forum.multitheftauto.com/uploads/javascript_syntax/mtafuncs.js'></script> <!-- Add MTA-prettify library --> <link rel="stylesheet" type="text/css" href="//cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.css"> <script type='text/javascript' src="//cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.js"></script> You'll then need some JavaScript to use Google's Prettify and apply MTA's markup: $(function () { // Perform Google Prettify PR.prettyPrint(); // Add MTA markup applyMTAMarkup(); }); Usage Usage is just like Google's own Prettify, but you'll need to add lang-lua as a class to your <pre/> snippets. For example: <pre class="prettyprint lang-lua"> function onWasted() if not( isGuestAccount (getPlayerAccount(source)) ) then local jailtime = getAccountData(getPlayerAccount(source), "Jailtime" ) or 0 local theWeapon = getPedWeapon (source) local weaponAmmo = getPedTotalAmmo (source) if tonumber(jailtime) == nil or 0 then outputChatBox ("1", root) fadeCamera (source, false) setTimer (setElementHealth, 1500, 1, source, 10) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) elseif tonumber(jailtime) > 0 then outputChatBox ("2", root) fadeCamera (source, false) setTimer (portjail, 1500, 1) setTimer (setElementHealth, 1500, 1, source, 10) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) end end end addEventHandler ("onPlayerWasted", getRootElement(), onWasted) </pre> Example An example JSFiddle is available here: https://jsfiddle.net/darkdreamingdan/0uvzbL1n/. Source code available here: https://github.com/darkdreamingdan/MTA-prettify . I'd really appreciate a GitHub star if you found this useful! Note: Usage may be different if installing on different CMS software. Typically, this is easily implemented by using your CMS/forum's Theme editor.
  5. Hi Chase, thanks for visiting. Would you be asking your users to install a modded version of GTA? Or would you implement the whole map in MTA scripting?
  6. Please be specific in your responses. How are you going to use it in your server? We need to actually know how you would implement it. The challenges relate to the fact that FLA requires GTASA to be restarted for each change. I need to know specific, technical/scripting information on what is limiting you and what you were trying to achieve.
  7. Hi guys @fastman92 has recently engaged with us in order to get his limit adjuster implemented into MTA. Obviously, there are a number of complexities involved in implementing this, and we need to make some important design decisions to achieve this. So, why do you want to use a Limit Adjuster tool? Some things I'm hoping to learn: Are you trying to play MTA with a modified version of GTASA? Do you want the limit adjuster to play mods like GTA:Underground? Are you trying to use Limit Adjusters with MTA's own Lua engine* functions? (e.g. engineLoadDFF) Anything else? Any feedback would be incredibly beneficial to the team going forward. Cheers Dan
  8. We don't use Geshi anymore. We now use Google's Prettify library in both the Wiki and Forums. It's normally quite easy to implement into a web site, you just have to add some custom JS includes and custom BBcode tags. I'll be releasing a Google Prettify compatible MTA syntax highlighter (the one used to link to wiki and colours) in the next few days. You'll need configure VBulletin or modify the source code to include the following to JS (in our forum software this is achieved by modifying the theme): <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script> <script src="https://cdn.rawgit.com/google/code-prettify/master/src/lang-lua.js"></script> <!-- Lua not added by default, add it--> <script> addEventListener('load', function (event) { PR.prettyPrint() }, false); </script> Then you'll need to make a custom BBCode to produce the following tag (e.g. configure a [lua][/lua] bbcode): <pre class="prettyprint lang-lua">--LUA HERE</pre>
  9. I'd advise against TortoiseSVN, there's no need for it. Probably something like GitHub for Windows is much easier to get up and running. This guide has more or less everything you need to know: https://wiki.multitheftauto.com/wiki/Compiling_MTASA There's really more much to developing on a large project than simply applying patches. MTA's codebase is very large in nature, and there are likely to be some integration challenges involved as well as harmonizing with our own coding standards. Good luck.
  10. We could trial a "Question / Answer" system which is designed for this. The idea here is that you pick the best answer and the forum automatically marks it as resolved.
  11. 25 minutes was calculated using an Advanced Gut-Feeling Theorem. I advise you continue to double-post for this niche usage.
  12. As discussed, it should be fixed now. This was due to some teething problems during forum maintenance. Cheers
  13. Thanks for the report. I'll try and get this resolved.
  14. I'm waiting for any more issues/bugs to arise. We recently ported the forum highlighter to the Wiki so the system is shared. Once things seem stable, I'll release the highlighter on GitHub and it should be very easy for any community to integrate it onto their website.
  15. We're wanting to make a decision on this soon. If you havent voted already, we urge you to vote. 9 relevant votes is not a huge sample size to make a good decision.
×
×
  • Create New...