Jump to content

myonlake

Members
  • Posts

    2,312
  • Joined

  • Days Won

    41

Everything posted by myonlake

  1. A team of scripters is a lot more efficient. Not because of the fast speed, but also because other scripters know other things than others, which allows others to learn new things. And people notice different things, so if you have an error, a friend can find it and fix it for you easily. Trust me, working on a large gamemode alone is like re-creating God's creations on Earth. Would help me if I could trust people enough to share the code with them. And because MTA doesn't understand backstabbing it's hard to let others have the access to the code.
  2. I wonder what would it look like if there were 150 FFS Gaming servers and 150 SAES:RPG servers on the server list. Because that's what happened to Roleplay during the fall of Root Gaming and nobody enjoyed that. I mean, the meaning of Roleplay is no longer valid in MTA, everybody's constantly switching servers because they fall down - why? Because people either use the Valhalla code and don't know how to make it work and then people complain and the server falls down because of countless amounts of negative posts about their originality - or then it's because it has bad management. But regardless of these two, they should be stopped, because what I personally admire the most is ORIGINALITY. Whenever someone comes to me in real life telling me they made something new by themselves, I get interested and want to learn about what they did, and if people are so lazy to copy-paste some 5-year old code and try to make it work with bad management, hell there's no need to even prove that they'll fall down in two weeks. The fact is: originality should be enforced in MTA. If you copy something that someone didn't want to be released, then you should be punished for that. I care about the code because I want Roleplay back. Now. I started playing on MTA just for Roleplay and after Root fell down, heck there has been literally nothing interesting to play except FFS for a brief amount of time at night. I just wish the old times were still rolling, because honestly this has been the most boring time of my life after Roleplay totally lost its meaning. And I don't want to switch to SA-MP because I don't want to play on servers that don't have enough features. Roleplay goes over features for sure, but features have always been nice and moving from the best to worst is like being rich and going poor.
  3. It's pure English. CLIENT-side SERVER-side Stuff that are ran on the client's (aka player) computer go CLIENT-side. Stuff that are ran on the server go SERVER-side. Servers are unable to render graphics because they're not meant to do that, that is why GUIs and DX-functions are CLIENT-side. If you want to make all your commands CLIENT-side, go ahead, but they won't be synchronized with the SERVER-side, and SERVER-side synchronizes ALL clients. This means if you create a vehicle CLIENT-side, it will be only shown to the CLIENT that was meant to see it. It's quite logical after all.
  4. Notepad++ is not infected nor you can imply that, so stick with the facts, please.
  5. Why would you want to know the password of a player in the first place. If you want to save data in a XML file, read this Wiki page: https://wiki.multitheftauto.com/wiki/Xml.
  6. Then use this. Client-side local sound addEventHandler("onClientResourceStart", resourceRoot, function() sound = playSound("Sounds/PanelSounds.mp3", false) setSoundVolume(sound, 1.0) end ) addEvent("stopIntro", true) -- Create a custom event in order to stop when player logs in addEventHandler("stopIntro", root, -- When the custom event is triggered, execute the function function() if (sound) and (isElement(sound)) then -- If the sound is an element destroyElement(sound) -- Destroy the sound element end end ) Server-side addEventHandler("onPlayerLogin", root, -- Trigger when a player logs in function() triggerClientEvent(source, "stopIntro", source) -- Trigger a client-side event to stop the music end )
  7. onPlayerJoin is a server-side event. Use onClientResourceStart to properly initialize the sound when the player joins. addEventHandler("onClientResourceStart", resourceRoot, function() local sound = playSound("Sounds/PanelSounds.mp3", false) setSoundVolume(sound, 1.0) end )
  8. You obviously have no idea of what you're talking about. Also, adding to my post that even if your firewall had multiple layers of anti-intrusion features with any RSA-key mechanism, it can still be hacked into. And if not hacked, it can be broken into physically by connecting your USB cable onto the box. And there are many ways to do that with money or knowledge, but I guess that's a bit far fetched. Regardless you can't protect your code. Even if you made dozens of agreements and such, people can disappear underground and sell it off many ways else in untraceable means and ways - which means it cannot be brought directly to court either - which means you won't be paid. And banks don't have the ability to insure code. So all it results into is literally nothing and MTA won't do anything about it neither because they can't help it, for a reason or another.
  9. The internal database is not made for long values. I suggest using SQLite in this case. Not sure which MTA version you're using, but before 1.3.4 there is a low character limit on values. Nowadays it's limited to 65535.
  10. I am quite sure it won't work because of the fact that's it's a security vulnerability if it was possible.
  11. myonlake

    SQL or HTTP

    It's going to use the same amount of power everywhere, so if they're all located on your dedicated server, then it wouldn't matter where you do it. MTA is already so lightweight that I suggest doing it on MTA. I don't understand why would you want it to spend less power, because queries don't spend that much power at all.
  12. myonlake

    SQL or HTTP

    It still spends the same amount of query power to handle it via a web server, if not more (more likely to spend more, because you're sending it from MTA to HTTP to MySQL, while it could just be MTA to MySQL). I suggest doing it on the server. Everything becomes way easier and handy, instead of having to update your web server whenever updating a query.
  13. myonlake

    Head Rotation

    Because client-side functions are only triggered to the remote client. You need to make it synchronize it with all players by hooking client- and server-side with a timer. Or you could also set element data on each player with the head rotation and in the render function you fetch all streamed in and on screen players and their head rotation and then set it.
  14. There was a discussion on whether or not is MTA doing this within the boundaries and after reading the Terms and Conditions, general rules and copyright notices we found out that it's completely illegal to reverse-engineer the code and re-compile parts of it. This would not only make MTA quilty of this, but everybody that has re-textured something on GTA:SA. As it has been non-profit and for fun purposes they couldn't care less, and obviously because they're receiving positive feedback and popularity with it. But if they begun gaining profit with what they've managed to edit on GTA, then they could be sued and the projects could be shut down very easily. That's not quite what I am really after here nor I'd want that to happen, seriously not, but pointing it out so people won't just go asking for money in order to just get a colored server name on the list.
  15. isElementWithinMarker or getDistanceBetweenPoints3D or getElementParent
  16. Also before anyone decides to copy-paste the link to this thread (https://forum.multitheftauto.com/viewforum.php?f=114) I'd like to refer you to this post: That's a very heavy accusation, I was wondering if you could back it up by proof. Mabako leaked the code - you can even go and ask himself about it. He also admitted it in one the files that he published with the gamemode. I have to promote this thread because to be honest, none of you would like your scripts either hacked or leaked.
  17. How sad it this, that Multi Theft Auto is a modification on GTA:SA, which is trademarked to Rockstar North and Take-Two Interactive and what else, okay. A modification that actually breaches the copyright infringements - especially accounted for if they have a way of income during the process, which in this case is a colored server name for a specific amount of money. Now, whatever should be the desired approach of spending the money, it's more or less a motive to gain advantage with it. So I'm very sorry to stumble across to this thread, but this money thing is absolutely illogical. Thank you. If the money would be left out, I'd say this is a great idea, but would most likely screw up everybody's eyes. Then again, how would this even help. People may find some colors offensive or not attracting at all. To be honest, this is more or less a very additional feature that should, at least, have an option to toggle it in the Options menu. I'd personally toggle this feature off right away.
  18. myonlake

    Bass Error

    Indeed it only contains info regarding the stream and I've thought about the whole thing upsidedown yet I didn't quite get to any real results. My best guess is that the stream is either invalid, local, outdated or doesn't support that type. Is this your own radio or someone else's? If it's yours, which program do you use to stream it online? Icecast, Shoutcast, Wirecast..?
  19. I don't see that post any relevant to the case. I know exactly how to protect my code, but to avoid getting physically hacked is not possible. And to add to the direct-steal-away mechanism; what I did was I ran it all through a table obfuscator for 100 times and made a pretty simple check on if the server is original, if it isn't, it'll spam the server until the CPU and RAM are maxed out without MTA cutting any loops or timers or resources. What this means is that whoever is hosting that server is going to have a massive issue with replacing the broken hardware, which may also end up being quite expensive. I am strict enough to protect the code itself whatever it takes, but to get the code - anyone with experience in firewalls and their biggest mistakes will be able to get to it and even bypass these features that I personally optimized for the system.
  20. myonlake

    Bass Error

    You cannot host the file locally. Find the IP address and port of the server and fetch their m3u file instead. @The Killer: No need to post on the Scripting forum if you "think" something works or doesn't.
  21. That's not even implemented yet. You can't quite just push in stylesheets when there is no compatibility for such. If I knew of it I would've used them hundred times already.
  22. MTA doesn't support css. CSS is for HTML, not Lua. However, you can just put that dx resource on your server and export the dx functions. MTA Does support css. You can just call the elements, you just can't give special tags to them. You can just call some of the gui functions. Alot of big servers are using css files to create a nice and smooth looking GUI login screen ( yeah, a GUI. Not DxDraw ) and just use css to make them look awesome. Do explain me how it works. Never saw an update about CSS support on MTA.
  23. That's a very heavy accusation, I was wondering if you could back it up by proof. Mabako leaked the code - you can even go and ask himself about it. He also admitted it in one the files that he published with the gamemode.
×
×
  • Create New...