Jump to content

alberto2345

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by alberto2345

  1. Thanks for your input, really helpful!
  2. UPDATE Added Event handlers for both clientside and serverside. Download the latest from my github. ( https://github.com/alberto2345/50pSublimeText3Package ) Let me know if any issues or spelling mistakes occur! Thanks!
  3. No worries dude, I think im just too paranoid. I think my idea will be fine, but still open to anybody elses suggestions.
  4. Oh I understand what you mean now, but it is still basically the same system, its just that your idea has the extra step of checking if the username and password is in the file. So if someone was able to change the serial number to someone elses, then they would also just need to change their username and password in the file, which could be obtained by a program downloaded by the user which sends the file to a server, which a person demonstrated doing on another server I use to play on. It does require an extra bit of work for someone though. Maybe I'm just too paranoid, idk
  5. But what if someone replaces the details in the XML file with another players details? Then they could log into their account?
  6. Hello, Not sure whether this is the appropriate place to ask this question, but I'm making a login system and I have an idea to allow automatic login. It would be based off the players serial number and checked with the database to see if it matches a players account details with the serial number. I'm worried about how secure that would be, more of the fact if the player can some how spoof their serial number to be of someone elses. I don't know how the serial numbers are generated and I don't know how secure they are, which is why I'm worried and wondering if anybody would know whether this is a safe decision to make, or whether it'd be best to pass on the idea? I know that it isn't easy to spoof it, but I'm wondering whether you can put alot of trust in them? Thoughts? Thanks.
  7. I've searched for something like a syntax checker since I've also wanted on. It only works for Lua stuff, so it wont check for missing arguments in MTA functions or anything, but you'll need to use a linter. To install: 1) Download Lua for Windows - Link: https://code.google.com/p/luaforwindows/ 2) Go to package installer in sublime text (CTRL+SHIFT+P) 3) Search for Package Control: Install Package and then press select the first one 4) Search for linter and select SublimeLinter (for me it was the second one) 5) Go back to package installer and search for Package Control: Install Package, then search for lua and find SublimeLinter-lua and install that 6) Restart Sublime Text 7) When opening a Lua file, make sure its as the Lua syntax, not Lua (MTA:SA) From there, you should see it picking up simple errors in the code on-the-fly. And again, make sure its set as Lua for the syntax, not the MTA one. I've tried making it work for MTA lua, but because its not an actual Syntax, I can't get it to work. If anybody knows how or has any luck getting it to work, please let everyone know! Also, if you don't mind, can I put your installation process on the github page? Its nice and clear
  8. Hi, I myself was wanting it updated as well, so tonight I added all the changes and additions that were missing, as well as fixed/added some things that you guys said in the comments. I posted it on my github so its alittle easier for you all and easier to see/add changes and additions. This doesnt mean that I've "taken over" 50p's package or anything, I just wanted it updated and made it public since others have and will want an updated version. Link: https://github.com/alberto2345/50pSublimeText3Package Thanks! PS: Some things may still be missing or wrong, so if you do notice anything, let me know
  9. Hello, I'm making a script with a few timers in it. One thing I'm not sure on is if I nil the variable that has the timer stored in it once I'm finished with it, would I still need to do killTimer before I nil it or is just making the variable nil already do enough? Currently I'm killing the timer and then nilling the variable. I'm mostly just worried about the timer still being active in some way if I "cut corners". Thanks.
  10. Thanks for those links, after abit it started to make sense, was abit hard to get my head around at first And the bcrypt module seems to have problems as it only outputs *0 every time. Someone put it as an issue on github as well, so its not just me. Anyway, salt is the way to go, so thanks for the help everyone!
  11. I think I'll go with TEA. Doing my own tests with the hash function, I have my doubts about it. I found a website that can decrypt all the encryption methods listed in the hash function and it was able to decrypt most of them. I tried text like: hello alberto dynamite1337 and all these where decrypted with sha256. The only onces that weren't decrypted was if I did something like dynami1337 or just spammed ksjldfuhsdfuhsdf Obviously the website uses a dictionary to decrypt, as it says it on the website as well. Only way is to double encrypt, so use hash to encrypt the message, then hash again to encrypt the encrypted message. But that solution would only work on this specific website as it doesnt output what it comes up with if it doesnt find what it considers valid. But if a website did, then you could just decrypt the decrypted message again. But, would someone who gained the password information even consider doing that if all they saw was encrypted text after trying to decrypt it? And would it even be worth doing this method?
  12. Hello, I'm working on a login system and I'm wanting to ask what encryption method would be the best? I was going to stick with base64, but that alone doesnt work since decompilers online can decompile the text (I've tried and it works). I'm looking at using TEA, but im confused about its use. It says it requires a key, so do I just make one up? Also, if I need to make one up, I would need to store it somewhere, so doing all of this server side with a variable that contains the key be the best option? Also, doing some research, it seems that really the only encryption that is strong that MTA has provided is TEA, since all the others can be decompiled using websites online. Am I correct on this, or am I not using them properly? Thanks!
  13. Are you using freeroam? If you are, then I think thats the reason why it wont destroy it for some reason. However when I tested it and created a blip using runcode, when I started the script it destroyed it. Oh, and you can remove the output if you want to, it was only there for when I was testing it
  14. Try it and see if it does what you want it to do, otherwise let me know.
  15. I've tested the code to see if it throws any errors (which it doesnt), but I'm not sure if it fully works with multiple people, so if it doesn't, please let me know. And I've commented it as best I can to help explain what it does for your benefit. Client: Server: Meta:
  16. Just tried it out and is pretty cool! Gave me an excuse to figure out how to use the new CEF system lol. When I took a look at your screenshot as well as looking at the uikit website, it reminds me alot of bootstrap in terms of the design. Do you know of any major differences between the two? I myself haven't really looked deep into either so I'm not sure. I also found that when I am loading the script, this error comes up: [bROWSER] Console: Uncaught SyntaxError: Unexpected identifier (http://mta/uikit/js/uikit.js) Any ideas what this means? I haven't used it too much, so I'm not sure if any features aren't working because of this, I just noticed it every time I restart my resource using your uikit resource.
  17. I don't understand why you guys are comparing it with Lil toadys admin panel and putting his down because of it. I dont see anywhere on his thread or his replys that he wants this to replace lil toadys admin panel. Maybe the title has confused you guys, idk. Perhaps he's just making one that's only having the basic needs of what an Admin needs access to for punishing players, and like he said, he just wants to make one from scratch which I'd say is just for experimenting and improving his scripting skills. Its kinda annoying reading these kinds of comments. In terms of the actual admin panel, I do agree that the design needs work. Maybe just don't over think it. Try going with something that is just easy to navigate and easy to use instead of either comparing it to other products or trying to completely change what another resource has. Sometimes things in other resources just work well and that doesnt make you a 'copier' for using some design aspects, but also try not to completely copy the full design. I wish you luck and looking forward in seeing the finished product. PS: Sorry for the rant, was just getting on my nerves.
  18. Hi, I was testing a script and I needed to check it for all resolutions, so I started to change my resolution. Usually I play on 1280x768 windowed. I decided to try it unwindowed/fullscreen on 1360x768 and thats when I encountered this. No error messages show, it just goes to a black screen, then after about 5 seconds, goes back to desktop. If I change the resolution to another one (in the popup box that opens before it launches), it does the same. Here is MTADiag: https://pastebin.mtasa.com/375736625 MTA has run fine before, however this is the first time I ran MTA fullscreen on Windows 10. Thanks.
×
×
  • Create New...