Max+ Posted February 26, 2013 Share Posted February 26, 2013 Hello This is My First Script its an Non-Allowed Players to enter you server Just Put the Serials of the players replce XXX = to your serial Any Bug - Error > Connect Me # Dont Forget To Add it to Acl.xml resource.firewall Please Rate 5/5 https://community.multitheftauto.com/ind ... ls&id=6564 Link to comment
Max+ Posted February 26, 2013 Author Share Posted February 26, 2013 Thank's Fhode And iam Going To Uploading New Versions . Link to comment
PaiN^ Posted February 26, 2013 Share Posted February 26, 2013 Great job Very nice script ..! rated 5/5 Link to comment
codeluaeveryday Posted February 26, 2013 Share Posted February 26, 2013 Ok man, this needs some serious updates. Also no offense, but the way you are doing it isn't the most effective way, take note of the modifications below, also this has the same ability as normal bans... Use: https://wiki.multitheftauto.com/wiki/OnPlayerConnect Server = --------Made By Ops1 = Yasser --- xxx = serials not allowed players you can put 10 serials firewall = { ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, ['XXX'] = true, } addEventHandler('onPlayerConnect', getRootElement(), function(playerNick, playerIP, playerUsername, playerSerial, playerVersionNumber, playerVersionString) if firewall[playerSerial] then cancelEvent('You can\'t enter the server, your serial blocked.') end end ) Also in the client, you are using onClientPlayerQuit, this might get in the way of other peoples codes, so you might wish to block it. Link to comment
Anderl Posted February 26, 2013 Share Posted February 26, 2013 I'm sorry but I don't see why would this be any useful. Link to comment
Max+ Posted February 26, 2013 Author Share Posted February 26, 2013 it's for blocking the hackers ! and cmst my script work no need for ip and username etc ... Thank's for replay Link to comment
Anderl Posted February 26, 2013 Share Posted February 26, 2013 MTA already has a ban system where you can ban by IP, username or serial. There is no need for that, and even if it was, it's so easy to do that even a beginner could do it. Link to comment
codeluaeveryday Posted February 26, 2013 Share Posted February 26, 2013 I am with Anderl, I also said in my post that this is just like banning a serial, it could at least be updated to using a database or a webpage of blocked serials and you can update it regularly. Also hackers? WTF I swear there is no such thing as a hack on the updated versions of MTA:SA, I've played lots of Race and Weapon Deathmatch / Basemode servers, I am extremely pro at this and have good ranks in certain servers and I never have seen a hacker, the only thing I could think of coming close to a hack would be someone with 1000 ping or more, or 6 FPS or less. Link to comment
Max+ Posted February 26, 2013 Author Share Posted February 26, 2013 yes there is Hack on the new update also the mta ban system if player get out fast you cant ban him this well not let him enter again. Link to comment
Anderl Posted February 26, 2013 Share Posted February 26, 2013 The player can't even join the server if banned, he'll get an error box while connecting to the server. Link to comment
codeluaeveryday Posted February 26, 2013 Share Posted February 26, 2013 yes there is Hack on the new updatealso the mta ban system if player get out fast you cant ban him this well not let him enter again. Are you SERIOUS right now? Wtf, Anderl I know your pain everyday. /whowas PlayerNameToBan Copy the serial /banserial SERIAL ^^ DUHHHHHH.... Plus Anderl my code addition above does that lol... I'm still with Anderl. P.S Send me the hack in a PM, uhm just for testing so I can develop a anti-hack code for it... Yep anti-hack Quick send it. Link to comment
Cadu12 Posted February 27, 2013 Share Posted February 27, 2013 Do not PM to him, you can only PM to MTA Team or ccw (in IRC), not to me. Link to comment
codeluaeveryday Posted February 27, 2013 Share Posted February 27, 2013 Cadu take a joke, I'm literally an anti-hacker, people which hack on this game manage to fail while vssing me. I have been playing MTA: Race for a long itme and mta deathmatch gamemode and basemode. I do not want that hack at all, still I doubt hacks work. Link to comment
myonlake Posted February 27, 2013 Share Posted February 27, 2013 Honestly speaking your resource makes no sense. It made more sense if you had, for example, a global bans list which is used by multiple popular servers. The original ban script works perfectly and if there's a problem with it, you simply report it to the Mantis and let the developers fix them. Nothing is impossible. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now