Jump to content

Mr_Moose

Members
  • Posts

    866
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mr_Moose

  1. It shouldn't be any difference with the scripts unless you have different build versions of the server or the modules if you use any of those. The error logs may contain more information as well as /debugscript 3.
  2. 99Stack offers Windows servers through our custom plans. But they are more expensive than Linux however due to Microsofts license fees ($16/month and server plus tax). Contact support to discuss the setup and price for your custom plan: https://support.99stack.com/ Our current offers are the following: Managed VPS hosting from $50/month all inclusive, support, maintenance, server installation and remote desktop access Shared managed hosting, same as above but the price is divided between all customers on the same machine. You choose the limitations of clients and we do not oversell to ensure that you get the amount of resources you want and pays for. Referral code to our provider: you get $5 for free in signup bonus through our providers affiliate program, which means that a Windows VPS with root access would cost from ~$36/month plus tax. In this option your on your own regarding support and it's a direct contract between you and the provider
  3. You should run your server in a screen session. Then you could use something like: screen -ls # List active screen sessions screen -r <id> # Reconnect to screen session Or of you just want to send the command you could use: screen -S <name_of_screen> -p 0 -X stuff "<command>"
  4. You could use the control state inside onClientRender to see if the player is walking, running or running fast and then draw a DX progress bar. That's probably how they did it in single player.
  5. The whole idea with the police job is that you shouldn't be able to know your the opponents exact location all the time, it's a benefit that the police job also includes some actual search and teamwork rather than heavy guns on both sides which leads to a war zone every time someone is getting arrested like we seen on servers where everyone know the location of everyone else. If you like to play that way then there is a turf system for gang wars. Besides this can be modified in GTWplayerblips by ignoring the validation function and make it return true always. You need to have patience with the tazer, once a suspect get's shot he'll be out for 20 seconds (could be longer if your server or client suffers from lag as it uses timers). There's also a distance check so that the tazer only works on a very short distance, it's supposed to be used when someone is trying to run away and not to take down a maniac with heat seeking rpg or similar heavy weapons.
  6. Sounds like a bug, ironically that feature has never been tested without any cop online so I'm not quiet sure what value is returned by getNearestCop when there is no cops online and how the wanted level system is dealing with that. But you're right, you should not be jailed if there is nobody online to jail you.
  7. For that you would have to modify the countdown timer or simply kill it and make a new one as soon more players enters or leave the turfs. I like the idea so it might get implemented in an upcoming version. You'll find similar functionality in GTWjail when a prisoner hits a guard and get extended jail time as a punishment.
  8. Yes, fuel is also loaded from "VehicleFuel" saved as element data for each vehicle. As mentioned earlier, there's no point in asking about "missing features" as in features you'll find in RageQuit communitys server vs the GTW-RPG project, it's two different things even if it's going to be merged or completely rewritten from scratch. We're making a new vehicle hud currently that should fit all screen resolutions without overlapping so a fuel system will soon be implemented as well.
  9. Yes, fuel is also loaded from "VehicleFuel" saved as element data for each vehicle. As mentioned earlier, there's no point in asking about "missing features" as in features you'll find in RageQuit communitys server vs the GTW-RPG project, it's two different things even if it's going to be merged or completely rewritten from scratch. We're making a new vehicle hud currently that should fit all screen resolutions without overlapping so a fuel system will soon be implemented as well.
  10. You need to open the right ports, by default MTA uses: 22003 for the game itself, 22005 for the http server and 22126 for querying used by server browsers like game-state.com for instance. So in the page in your picture you need to: Mark the checkbox "Enable" Select "Both" in the "protocol" field (or "UDP" if the option "Both" does not exist) Due to limitations you'll have to open the whole range of ports from 22003 to 22126 in WAN start and end ports. You must do the same in LAN start and end port fields as well In "LAN host ip adress" you should add your servers local IP adress, usually starting with 192.168. or 10.0.
  11. You need to open the right ports, by default MTA uses: 22003 for the game itself, 22005 for the http server and 22126 for querying used by server browsers like game-state.com for instance. So in the page in your picture you need to: Mark the checkbox "Enable" Select "Both" in the "protocol" field (or "UDP" if the option "Both" does not exist) Due to limitations you'll have to open the whole range of ports from 22003 to 22126 in WAN start and end ports. You must do the same in LAN start and end port fields as well In "LAN host ip adress" you should add your servers local IP adress, usually starting with 192.168. or 10.0.
  12. All commands including admin commands should be found in GTWhelp accessible by pressing F1 in game.
  13. All commands including admin commands should be found in GTWhelp accessible by pressing F1 in game.
  14. As far as I know most arguments are optional but if you want to use them you should define them. For a client sided command handler like in your example your arguments are: command - A string representing the command, (outpt in this case) argument[1] - Any argument (word) after the command. ... Also outputChatBox does not have any player argument in client side, it's only visible to the local player. You'll find excellent documentation on all that in the wiki.
  15. Mr_Moose

    From 1.4 To 1.5

    To put it simple, visit: https://nightly.multitheftauto.com/ and download the latest 1.5 version for your system. Turn of your server and backup your files. Then extract and upload the files you just downloaded and let them overwrite your current files. That's it, although some resources might not be compatible and other issues may need to be solved but generally if everything is up to date that method usually works just fine.
  16. There's no universal video for firewall management since they are all different, "openports" command will indicate that your ports are closed but not which ports. It could be your server machine or your router. First thing to try would be to attempt to connect to your server from another PC on your local network: If that works then visit this page http://portforward.com/ for instructions regarding port forwarding in your router. If it doesn't work then identify what firewall you are using, (usually the same program as your anti-virus program). Windows firewall usually ask if you want to add an exception first time you start your server. Once you know what firewall you are using you can start look for video tutorials.
  17. You may need to install libmysqlclient.so.16 as well, the problem is however that it's not available through the package managers, you need to upload the file manually and put it in /usr/lib. This is a known issue on Debian 8.x (and above) To install libmysqlclient.so.16 follow these steps: Download the file: https://repos.99stack.com/mtasa/libraries/libmysqlclient.so.16 Upload the file to /usr/lib/libmysqlclient.so.16 Restart your server If all your MySQL connection details are correct and the MySQL server works as it should then this should solve all MySQL related issues assuming you use Debian or any fork of it like Ubuntu.
  18. It works fine on Linux too just like any other resources, the problem is most likely that your FTP client transfers in ASCII mode causing corruption in the script so it can't start at all, check the error logs and you'll see something like "the script failed to load due to syntax errors". To solve this, change transfer type to "binary" in your FTP client and then re-upload. Here's a guide for FileZilla: https://forum.filezilla-project.org/viewtopic.php?t=26047. For other clients just google: binary mode
  19. That's simply to heavy to run, remember that onClientRender already uses a large amount of system resources just being executed. You're also using two events to trigger the client render (onClientPlayerJoin) and (onClientResourceStart) of which one of them triggers as soon another player joins. You have multiple GUI's drawing on top of each others, on line 39 you're also adding another onClientRender to draw yet another GUI instead of removing it which would have been the logical choice. This means you won't need many clicks on the login button until your game freezes.
  20. There are reasons for that as well as many other possible solutions, first of all a blown up vehicle can't be repaired, that's why the health is restored to 30% after re-spawn. Re-spawn is also not possible during a police chase as it would be unfair for law units. Now I got three solutions for this and at least one of them is going to be implemented: The more damage a vehicle get the slower it becomes (reducing performance) just like a real car down to 30% where it's so poor you can't even drive it before it's repaired As you suggested, blocking controls for the driver or freeze it so that it can't be used when reaching the bottom Disable explosions completely. I believe there's a function for this which by default makes the vehicle unable to drive once reaching 27-30% health without risk of explosion Last but not least, GTWranks is now included in GTWcivilians and a lot of other optimization has been made in that area.
  21. Turfs must be added manually into attached database, either you use MySQL by altering GTWcore/data/settings.xml or you just start GTWturf without changing anything to use a local SQLite database. After that you can add or remove turfs with these commands: /addturf /removeturf Assuming that you are standing in the location where you want the south western corner of the new turf to be. Only players in ACL group "Admin" can use these commands by default.
  22. That link would have been outdated anyway, here's the current version, located in the GTW-RPG project: https://github.com/404rq/GTW-RPG/tree/master/%5Bresources%5D/GTWturf
  23. Could still be something else using 90% of your RAM, try top or htop so you can see how much the mta server itself uses, it shouldn't need more than 100-200MB when empty. Performancebrowser available in webadmin is also a good tool to see how much ram individual resources are using. A wild guess would be Debian 7.9 or 8.3, shouldn't make sense however since most terminal based Linux distributions uses between 50-100MB RAM only, although this could be one of those graphical ones too which would explain the ram usage, desktop environments such as Unity, Cinnamon and similar all needs up to 500MB RAM.
  24. You can use the "modulo" operator (%) like this: local total_time_in_seconds = 119 local seconds = total_time_in_seconds % 60 -- returns time in seconds: 59 local minutes = math.floor(total_time_in_seconds/60) -- returns time in minutes: 1 local formatted_str = minutes..":"..seconds This means: formatted_str = "1:59" as in minutes:seconds
  25. They must be rewritten and optimized first, the current versions are full of bugs and badly written.
×
×
  • Create New...