Jump to content

myonlake

Members
  • Posts

    2,312
  • Joined

  • Days Won

    41

Everything posted by myonlake

  1. You want your server-side code and client-side code in separate folders? Do the thing you asked us about. It is correct. Just create the folder(s) you need and add the folder name to the path of the code, such as, folder/code.lua.
  2. Good, but it won't work at some points. Check at my code, it has more checks to it and shizzle. Server-side addCommandHandler("createteam", -- The command is "createteam" function(player, cmd, team) if team then -- Check if the parameter has been entered local team = table.concat({...}, " ") -- Make sure all the spaces are gathered if #team > 1 then -- Check if the parameter is longer than one letter local newTeam = createTeam(team) -- Create the actual team setPlayerTeam(player, newTeam) -- Set the player into the team outputChatBox("Team created and you were set to the team.", player, 10, 255, 10, false) -- Output a message to the player else outputChatBox("Syntax: /" .. cmd .. " [team name]", player, 255, 180, 10, false) -- Returns this when the parameter is not longer than one letter end else outputChatBox("Syntax: /" .. cmd .. " [team name]", player, 255, 180, 10, false) -- Returns this when the parameter has not been entered end end )
  3. If that's an issue, you should re-install the game probably. However, this is the wrong board
  4. @-misterX-: Are you sure your script is server-side? I don't see any issues with that code myself. Exports are not client-side only. They are both. You should not interfere with something that is incorrect/you are not sure of.
  5. Or actually, it's not a job of yours, it's just a thing/hobby of yours. Unless you actually get paid
  6. No. You have to make them yourself manually as far as I know.
  7. myonlake

    Counter

    You are asking us to tell you the first step of everything in the whole scripting world? Man. You should probably read some manuals first. To make a simple counter, use variables. Since this is a client-side script, it will only be triggered for the damaged player. Perhaps this might help.. Client-side counter = 0; addEventHandler("onClientPlayerDamage", root, function(attacker, weapon, bodypart, loss) if (attacker and getElementType(attacker) == "ped") then if (counter ~= 3) then counter = counter+1; else outputChatBox("You became a zombie.", 245, 40, 40, false); end end end )
  8. https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle Read over there (8th of September 2008).
  9. Your attitude does not help anyone here. The MTA team implements useful functions, which would be harder to be implemented via Lua and MTA functions, which would eventually become a cluster-f*ck with MTA workarounds. I would see this as a useful function since it was already being implemented at some point, but they removed the support.
  10. So you want your .img file to have a function, which will essentially when you hit F12 (MTA screenshot) or the Print Screen (Prt Scr) button, to toggle freezing or slapping a player. Not possible, not even in your dreams. The .img file only has the textures, collisions and definitions to objects and other elements. There's no way you can change your code via the .img file, hah. And secondly, as far as I am concerned, MTA checks for modified files, not sure though. But CLEO scripts are disabled at least. TL;DR: You can't do that unless you want to script via your own server. To modify your server scripts, see the Wiki.
  11. Exactly. Multi Theft Auto was based in Vice City before, which pretty much was MTA:VC (VC = Vice City, of course). And they seem to have that domain name still registered in case some old player gets interested. So, don't worry. The domains I know are pretty much the following: https://multitheftauto.com/ https://mtasa.com/ http://mtavc.com/ So yeah, as Machine said, don't worry.
  12. If removal of the GTA roadblocks required multiple edits to multiple source code files, I don't think this code snippet you're looking for has anything more simpler to it. I am sure that you can't have the exact part since it's fit in many parts, like the roadblocks' removal. I may be wrong, but the thing you're asking is in my opinion quite big, so..
  13. https://wiki.multitheftauto.com/wiki/SetGameType https://wiki.multitheftauto.com/wiki/SetRuleValue https://wiki.multitheftauto.com/wiki/SetMapName Some gamemodes might be overriding your settings, so make sure you find and delete the functions from any other gamemodes you may use.
  14. Press N and hit enter. It is uploading the diagnostics in PasteBin. When finished, paste the link here (ctrl+v) and there you go.
  15. You don't install MTADiag to fix the issue, man. If you install MTADiag to show all your computer information and your objective is to post it here, in your thread, so that Towncivilian can fix your problem. Could you run MTADiag, copy all the details and post it to PasteBin (http://pastebin.com/) and give us the link to the file.
  16. 22003,22005,22126 are ones who you should use You are wrong. 22003 is the UDP server port, 22005 is the TCP HTTP port and 22126 is the 22003+123 compilation port. If he wants to make three servers for example, he must use 22003 in the first server's UDP server port and 22005 in the server's TCP HTTP port. The second server would have 22004 and 22006 and the third server 22005 and 22007. Really simple - you just have to make sure all of these ports are opened. http://puu.sh/1lYAt I built it myself around 7-8 months ago and all this cost only ~800€. That's why I don't understand why people want to spend their savings in some AlienWare 8182172712 model, which costs around 1,900€ and more, while they can have the same experience in games with a self-built model with only 800€. I can run Battlefield 3 with ultra graphics, Crysis 2 with ultra graphics, Hitman: Absolution with ultra graphics. There's no lag, and if there is, it comes after 30-40 minutes while I have already finished most of the map and I can just switch over to high quality instead and play around 1.5 hours without lag.
  17. I think, you need to install 6 mta's , but, more lag! Not lagging at all. My RAM tends to raise only when I play a game with ultra graphics and I only have 4GB.
  18. myonlake

    [Help] Console

    I think it's not an issue with MTA completely, ccw. As you know, that type of error usually means that the folder is read-only and the user writing in it doesn't have sufficient privileges. That's why he should remove the read-only parameter and set the whole folder accessible by the user.
  19. Lua does not have a function called "setElementData". It's a MTA function, do not connect MTA with Lua, while those two are completely different things. You can save player data in tables and synchronize them between clients and servers.
  20. myonlake

    html and xlm

    Use Google, perhaps? http://www.w3schools.com/xml/xml_to_html.asp
  21. That's not the only issue, the issue is that MTA is built to be lightweight. With all kinds of special stuff what users want, it will become really large and eventually it won't be called lightweight anymore because all of the additional stuff.
  22. Well, unless you are using the db -functions, then you'd have to change all of the MySQL -functions to db -functions, which can take a lot of time. You also have to read the SQLite stuff in separate, such as importing the tables from MySQL. Use Google, my friend.
  23. Uninstall the current XAMPP and read below. --- Installation of XAMPP (normal installation) 1. Download XAMPP (installer: http://sourceforge.net/projects/xampp/f ... 5/download | extract-able: http://sourceforge.net/projects/xampp/f ... 5/download). Only download either the installer or the extract-able. Installer is user-friendly, but the extract-able shouldn't make any errors and also allows you to install it as a non-administrator user. 2. Install XAMPP. 2.1. If you are using the installer, just follow the instructions that comes with the installer. 2.2. If you are using the extract-able, place the extracted xampp -folder in your C-drive at C:\. 3. Run the setup_xampp.bat -file for complete installation of the services. 4. Start the control panel via the xampp -folder. 4.1. It is suggested to put up a shortcut to the control panel on your desktop for easier start-up in the future. 5. Start the Apache -service and the MySQL -service Question: Apache -service starts and stops, why? Answer: If you are running Skype, bring it up. Go to the settings panel, open up the additional settings panel, go to the connection section, untick the Alternatively use port 80.. or so, and if the above box has numbers 80 on it, switch it over to 2891. Additionally you could stop all other programs that you do not use, they might be using the port number 80 and that means you can't run Apache. 6. Open your web browser and go to: http://localhost/. 7. Choose your language (English is recommened). 8. Go to the security section. 9. Set the usernames and passwords, make sure they are not too simple. 10. Go over to http://localhost/phpmyadmin. 11. Log in with the credentials you set before. 12. Create a database with a name, you could use "rp" for it, for example. 13. Select the database from the list and press "Import" from the upper panel. 14. Find the database from your paradise -folder, somewhere. 15. Import the database and it should put in all the tables. 16. Stop Apache and leave your web browser. --- Installation of Paradise (normal installation) 1. Put the MySQL library in your MTA San Andreas 1.3/server -folder and your MTA San Andreas 1.3/server/mods/deathmatch -folder. 2. Put the MySQL module in your MTA San Andreas 1.3/server/mods/deathmatch/modules -folder. 3. Put the SHA module in your MTA San Andreas 1.3/server/mods/deathmatch/modules -folder. 4. Put the resources in your Paradise -folder into the MTA San Andreas 1.3/server/mods/deathmatch/resources -folder. 5. Put the mtaserver.conf -file into the MTA San Andreas 1.3/server/mods/deathmatch -folder. 6. Start the server, join the server in-game, register in-game, there you go. --- Set-up of ports (normal set-up) 1. Open up the Advanced Windows Firewall. 2. Allow 22126 UDP, 22003 UDP, 22005 TCP. --- Doesn't work? I'd give up.
  24. You can get 20mb/s connection with less than 40€ and I have that. My servers (yes, I run 6 servers on my home computer) are not lagging at all.
×
×
  • Create New...