Jump to content

MIKI785

Members
  • Posts

    1,131
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by MIKI785

  1. That's not bug and it's not problem in MTA or server... it's in the race. Just edit modes/destructionderby.lua in race so that it doesn't stop while there is 1 player alive. You need to edit just a few numbers... learn..
  2. Just load the objects with engineImportTXD, engineLoadTXD, engineLoadDFF and engineReplaceModel. If you have it in the Map editor, there has to be some script which loads them, just add this script to your server.
  3. I don't understand pawn, but you are trying to save some players data in array? In Lua, it's better to use setElementData, as it's synced between server and clients. Visit wiki: https://wiki.multitheftauto.com Btw. this should be in scripting section.
  4. < meta> <script src="script.lua" /> </meta> is not needed. Btw. i wouldn't use that script. I would use: onVehicleEnter getPlayerTeam getTeamColor setVehicleColor
  5. try: function loadPlayerData (player, datatype) local account = getPlayerAccount (player) if (account) then local root = xmlLoadFile ("users.xml") if (root) then local usersNode = xmlFindChild (root,"user",0) if (usersNode) then local playerRootNode = xmlFindChild (usersNode,"LOGIN_" .. getAccountName(account),0) if not (playerRootNode == false) then local playerData = xmlNodeGetAttribute (playerRootNode,datatype) if (playerData) then xmlUnloadFile (root) return playerData else xmlNodeSetAttribute (playerRootNode,datatype,0) xmlSaveFile (root) xmlUnloadFile (root) return 0 end else local playerRootNode = xmlCreateChild (usersNode,"LOGIN_" .. getAccountName(account)) xmlNodeSetAttribute (playerRootNode,datatype,0) xmlSaveFile (root) xmlUnloadFile (root) return 0 end end end end end function savePlayerData (player, datatype,newvalue) local account = getPlayerAccount (thePlayer) if (account) then local root = xmlLoadFile ("users.xml") if (root) then local usersNode = xmlFindChild (root,"user",0) if (usersNode) then local playerRootNode = xmlFindChild (usersNode,"LOGIN_" .. getAccountName(account),0) if not (playerRootNode == false) then local newNodeValue = xmlNodeSetAttribute (playerRootNode,datatype,newvalue) xmlSaveFile (root) xmlUnloadFile (root) return newNodeValue else local playerRootNode = xmlCreateChild (usersNode,"LOGIN_" .. getAccountName(account)) local newNodeValue = xmlNodeSetAttribute (playerRootNode,datatype,newvalue) xmlSaveFile (root) xmlUnloadFile (root) return newNodeValue end end end end end Don't copy and it's Ok... btw. using .xml files for this purpose is just stupid.
  6. This should be it https://wiki.multitheftauto.com/wiki/ForcePlayerMap
  7. Doesn't work... still the same problem. dbConnect( "mysql", "dbname=1347157507;host=64.245.136.240;port=33006", "1347157507", "*****") As host, i tried both IP and domain...
  8. What? It doesn't work with any IP
  9. lol, it doesn't work even with localhost...
  10. Yes, because it accept connections from my PC (software called HeidiSQL)
  11. Hello, I have a problem with dbConnect, it says: "dbConnect failed; Could not connect", why ? Everything is ok, user, password DB name.. everything. It works with other programs. handle = dbConnect( "mysql", "dbname=oh1588;host=92.240.***.**", MYSQL_USERNAME, MYSQL_PASSWORD ) I tried IP and DNS name, both doesn't work. Btw. those stars are not in the code. MYSQL_USERNAME and MYSQL_PASSWORD are defined strings, which are correct credentials.
  12. MIKI785

    script help me

    Scripting section is for help with your scripts. Nobody will make you a whole script.
  13. This section is for help with scripting, not for presenting scripts/gamemodes. Btw. good luck with that.
  14. I just hope there will be MTA:V with the same features that MTA:SA has.
  15. It shouldn't be too difficult. If the user is logged in you can use: setAccountData() --To save information on quit getAccountData() --To get information on login (join)
  16. I don't fully understand what you mean. But if you stretch image too much it will become low quality. I would do something like this to stretch image on full screen on any resolution: local x, y = guiGetScreenSize() dxDrawImage(x, y, ... )
  17. I played MTA first, it was Developer Preview, then I discovered SA-MP. I thought that it's better and played it about over a year. Then I once started MTA, it was 1.0.4 and I realised that I was a fool.. wasting over a year of playing sa-mp when there is a much better multiplayer. Now I play MTA 1.5 years and I didn't start SA-MP 1.5 years I love MTA and SAMP sucks
  18. Try: function weaponAttach ( commandName ) weapon3 = createWeapon ( "M4",0,0,0 ) weapon4 = createWeapon ( "M4",0,0,0 ) attachElements ( weapon3, localPlayer, 5, 0, 0 ) attachElements ( weapon4, localPlayer, 0, 5, 0 ) end addCommandHandler( "attachweapons", weaponAttach ) Use [lua] tags
  19. MIKI785

    top wins

    triggerClientEvent and use dxDrawing to show that?
  20. i don't see that.. just the normal ID... I'll try to download newest editor.. Edit: Yep, I see that now Old editor.. thanks.
  21. SetOcclusionsEnabled doesn't fix that.
×
×
  • Create New...