Jump to content

knash94

Members
  • Posts

    143
  • Joined

  • Last visited

Everything posted by knash94

  1. Just as a tip, this page has a great example of how to compile scripts within mta to avoid going onto luac.multitheftauto.com all the time. You could easily alter it so it also back ups your scripts before the compiling. https://wiki.multitheftauto.com/wiki/GetResourceScripts
  2. Soo... you're a new hosting company, you can afford a nice big server to host multiple mta servers but you can't find the money for a domain? Ugh, I bet you host the servers on your home pc
  3. viewtopic.php?f=148&t=47889&p=474275&hilit=php+sdk#p474275 Good luck
  4. Looks great, nice job. I'll try starting up a server with this on there, it seems quite promising.
  5. Zday seems like a good script, https://community.multitheftauto.com/ind ... ils&id=347 Never used it myself but it was made by slothman, guaranteed to be worth the try.
  6. Nice resource Castillo, good job as always and to the two above comments, zombie servers usually tend to use a lot more health, for example the zombie peds might have 4000% more health than usual. Just use your initiative and you'll come up with some great ideas.
  7. Damm you have a real good vision for DX scripts, brilliant job.
  8. "[2012-02-06 07:21:06] ERROR: Couldn't find resource play. Check it exists." I assume you haven't added race to startup along side the server? Open mtaserver.conf with notepad, press ctrl + f and enter "play", change "play" to "race" and reboot the server. The duplication of the scoreboard resource may also cause issues (Read Neo's comment)
  9. Pehraps a master server which uses some website to store loads of handling lines, so people can use other peoples handling from across servers. Though saying that, most of the handling lines on there would properly be complete disasters lol
  10. With people still having the same problem, look at the third post down @ viewtopic.php?f=106&t=26156&p=300821&hilit=GLIBCXX_3.4.9#p300821 Good luck.
  11. NotAvailable, I have a vps from No1servers sisters company, domvps. So far I have had 100% uptime, very reliable and fast. I've been with domvps for about 3 months now, I think. No issues at all, the only downside is that you will need linux experience as you will need to set the vps up to run mta servers. I've had 3 dedicated servers in the past, and this vps seems much quicker and stable than all of them!
  12. I just realised the event might be a bit dodgey (onDownloadComplete), I'll fix it up tommorow, I should of tested this out a bit more before releasing tbh
  13. Sorry forgot to add to the post, you will need to add object "resource.download" into the admin group acl, tell me if it isn't still working after this.
  14. Thanks Daniel, Eht1, Yeah place it in resources and start it up. Whatever code you make, it doesn't have to be used in this resource. You can make a seperate resource and call the functions via that by simple putting exports.download:functionName(args), this was just an example but you can use it as a reference.
  15. Thanks for the comments guys, please let me know if you come across any errors. Also on the return of onClientDownloadComplete do you think it should return something like ":/your-res/infernus.txd" or "infernus.txd", in my opinion with it returning the resource name within it could be handy.
  16. Download functions Ever wanted to make background downloads? Such as a car model but without making your client downloading that model as soon as he joins the server and delay his play? With these download functions you can make it possible to download such models in the background without any need of any meta config, just place the file into the resource and make a script using these new functions to make this possible. Resource requires permissions in the admin acl so it can read the files, simple add object "resource.download" into your admin group acl. Client functions: downloadFile (string fileFromServer, string saveAs, int interval) -- Interval is how long between each time the server sends the client some data, I'd reccomend this being at about 200 to avoid lagging the server. getClientFileSize (string theFile, string type) -- Types: "MB", "KB", if blank will return bytes. Server functions: getServerFileSize (string theFile, string type) -- Types: "MB", "KB", if blank will return bytes. Server events: onDownloadFail --Parameters: String serverFile, String clientFile onDownloadComplete --Parameters: String serverFile, String clientFile onDownloadPreStart --Parameters: string clientFile, int interval, bytes fileSize, int transferTimes Client events: onClientDownloadPreStart --Parameters: string clientFile, int interval, bytes fileSize, int transferTimes onClientDownloadComplete --Parameters: string clientFile onClientDownloadFail --Parameters: String serverFile, String clientFile Example of usage. addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () exports.download:downloadFile("sometexture.txd", "infernus.txd", 500) end addEventHandler("onClientDownloadComplete", getRootElement(), function (theFile) -- Right now I made a mistake which I'll fix later which makes it so you see the whole path of the file, for example :/your-res/infernus.txd instead of infernus.txd if theFile == ":/your-res/infernus.txd" then local theTXD = engineLoadTXD ( theFile ) engineImportTXD ( theTXD, 411 ) end end Please report any issues you have with my script here please, I'll try as quick as I can to fix it ! Download link.
  17. The only way I can think of doing this is by translating each string using google translate, shouldn't take that long really... quicker than creating a script from scratch You might get away with just chucking the whole script into google translate.
  18. So you just want a plain freeroam server? I'd reccomend no1servers.com I might be mistaken but it should automatically be a freeroam server, if not you can either pm me for help or open a support ticket on no1servers, I'm sure they will help you Good luck with your server.
  19. Lukkaz, your point is true but that goes with most of mta, scripts get stolen, people credit themselfs for it, just take a look on mta community every day. Soon enough you'll find a stolen script, I also get people coming into my server giving themselves credit for something they didn't make.
  20. I have spare ram on my vps, if we really need it. But won't it just be open source on google code and people can just create local servers and add their own stuff to it, if that's the case, either way, I should be able to make my server create daily backup's for it. & funny enough Benxamix, I have the exact same, and they won't let me clear my balance, just use google checkout. Good to see that this experiment seems to be going ahead.
  21. was thinking you were on about the topic name on that part, though I reckon you should try such project if you have nothing else on, if it's well maanged it might be a bit of a success
  22. Could just get someone to back it up every day. I might help out a bit on this, it sounds like a really nice idea and about time I put something back into the community But at the same time, got a lot going on my server right now. I love the idea though, I'm sure even us scripters will benefit from this one way. Benxamix2, you should make us a little irc channel
  23. Never knew there was a topic for domVPS, I've had my vps for under 15 days with them and I've never experienced server or network downtime, the server fps counter is always stable which is something I've never had previously, even on dedicated servers. Great service and support, the only negative thing, for some people, is that the operating system is linux, though I personally prefer it and the prices are amazing 10/10
  24. Thanks for the feedback, I'll try out these methods soon, though it would be much easier and efficient to have download functions without the need of calling server events. Edit: Got it working now, might make a resource sometime for other people to use!
  25. I've been thinking about this for a while, and must be possible and would be a great tool to have for servers. Basically, the idea is so that servers can have scripts to download files but without being required, so for example, it could be possible to make a user interface full of mods and the player can download the mod at his choice without having a massive download size when you join the server. Suggested functions: downloadFile (location, locationToDownload) getDownloadProgress (download) Events: onDownloadComplete onDownloadStart onDownloadFail If this suggestions has been created before, sorry to the author. Any feedback and criticism would be great
×
×
  • Create New...