I need help with a lua code. I want to be if someone were to try to open a aimbot in console (Lenny Script, Razor) They will be auto perma banned. I've seem it on servers that autoban if you are using disallowed lua's. Can anyone help?
[url=http://www.gametracker.com/server_info/99.50.36.116:27015/][img]http://cache.www.gametracker.com/server_info/99.50.36.116:27015/b_560_95_1.png[/img][/url]
[highlight](User was banned for this post ("Server advertising spam" - postal))[/highlight]
[highlight](User was banned for this post ("Server advertising spam, wrong section" - postal))[/highlight]
1. Don't advertise your server here. No one cares.
2. sv_allowcslua 0 in your server.cfg will disallow most custom lua scripts.
3. Go to [url]http://coderhire.com[/url] if you want a custom anti-cheat.
[QUOTE=code_gs;44785551]1. Don't advertise your server here. No one cares.
2. sv_allowcslua 0 in your server.cfg will disallow most custom lua scripts.
3. Go to [url]http://coderhire.com[/url] if you want a custom anti-cheat.[/QUOTE]
1st I don't care if you don't care about my server 2nd I know I have that off but I want an Anti-cheat thats auto bans if anyone still tries to used cheats. I haven't even had my steam for 6 months so coderhire is useless
[url=http://www.gametracker.com/server_info/99.50.36.116:27015/][img]http://cache.www.gametracker.com/server_info/99.50.36.116:27015/b_160_400_1_ffffff_c5c5c5_ffffff_000000_0_1_0.png[/img][/url]
[QUOTE=XxihateuxX7;44785564]1st I don't care if you don't care about my server 2nd I know I have that off but I want an Anti-cheat thats auto bans if anyone still tries to used cheats[/QUOTE]
People can still force sv_allowcslua to 1 or just use a C++ aimbot. Refer to point 3 in my last post.
[QUOTE=code_gs;44785575]People can still force sv_allowcslua to 1 or just use a C++ aimbot. Refer to point 3 in my last post.[/QUOTE]
All I'm asking for is something that autobans when people try to use hacks in console
[QUOTE=XxihateuxX7;44785580]All I'm asking for is something that autobans when people try to use hacks in console[/QUOTE]
They're not console hacks. They're scripted; meaning, you need an anti-cheat to detect them.
[QUOTE=code_gs;44785596]They're not console hacks. They're scripted; meaning, you need an anti-cheat to detect them.[/QUOTE]
Refer to what i just said. You arent understanding what im asking for. I want something that will autoban anyone who type lua_openscript_cl (Razor.lua or razor.lua, etc) into the console I don't care if their are other ways around allowing lua
[url=http://www.gametracker.com/server_info/99.50.36.116:27015/][img]http://cache.www.gametracker.com/server_info/99.50.36.116:27015/b_160_400_1_ffffff_c5c5c5_ffffff_000000_0_1_0.png[/img][/url]
[QUOTE=XxihateuxX7;44785628]Refer to what i just said. You arent understanding what im asking for. I want something that will autoban anyone who type lua_openscript_cl (Razor.lua or razor.lua, etc) into the console I don't care if their are other ways around allowing lua [/QUOTE]
Impossible. That's a clientside command, not serverside.
[QUOTE=XxihateuxX7;44785628]Refer to what i just said. You arent understanding what im asking for. I want something that will autoban anyone who type lua_openscript_cl (Razor.lua or razor.lua, etc) into the console I don't care if their are other ways around allowing lua[/QUOTE]
He does understand what you're asking, I don't think you understand what he's saying. code_gs is saying that if you want something to do that make a job on CoderHire.com
Also that GameTracker banner is really annoying.
[QUOTE=code_gs;44785635]Impossible. That's a clientside command, not serverside.[/QUOTE]
How would obtain something that does this?
[editline]11th May 2014[/editline]
[QUOTE=Jewno;44785642]He does understand what you're asking, I don't think you understand what he's saying. code_gs is saying that if you want something to do that make a job on CoderHire.com
Also that GameTracker banner is really annoying.[/QUOTE]
Also read above I can't use coderhire my steam hasn't been for 6 months so coderhire isn't an option
[QUOTE=XxihateuxX7;44785645]How would obtain something that does this?[/QUOTE]
Obtain what? There's no way to retrieve a purely clientside console command without injection/a module, which a player would have to download.
[QUOTE=code_gs;44785676]Obtain what? There's no way to retrieve a purely clientside console command without injection/a module, which a player would have to download.[/QUOTE]
I'm asking how would I get something that would autoban when trying to open a hack via the console
In this case you'll have to make the anti cheat your self or its not possible.
[QUOTE=XxihateuxX7;44785683]I'm asking how would I get something that would autoban when trying to open a hack via the console[/QUOTE]
I'm saying that there is NO WAY besides having an anti-cheat to detect the hack. You cannot detect a clientside console command without a module.
[QUOTE=code_gs;44785709]I'm saying that there is NO WAY besides having an anti-cheat to detect the hack. You cannot detect a clientside console command without a module.[/QUOTE]
Whenever I went on a server and I typed in "lua_openscript_cl lenny.lua" I got perma-baned for using a disallowed lua. So it isn't impossible
[QUOTE=XxihateuxX7;44785726]Whenever I went on a server and I typed in "lua_openscript_cl lenny.lua" I got perma-baned for using a disallowed lua. So it isn't impossible[/QUOTE]
You were probably banned for having the cheat enabled, not for typing the command, which, again, goes back to the anticheat.
[QUOTE=code_gs;44785757]You were probably banned for having the cheat enabled, not for typing the command, which, again, goes back to the anticheat.[/QUOTE]
I got banned right after I typed in the command in the console
[QUOTE=XxihateuxX7;44785770]I got banned right after I typed in the command in the console[/QUOTE]
It was either on a list of blacklisted lua names (shitty way of doing it), or the server had an anti-cheat that could detect clientside hooks.
[QUOTE=code_gs;44785782]It was either on a list of blacklisted lua names (shitty way of doing it), or the server had an anti-cheat that could detect clientside hooks.[/QUOTE]
What would I do to have an anti-cheat that does that?
[QUOTE=XxihateuxX7;44785770]I got banned right after I typed in the command in the console[/QUOTE]
So because it looked like it happened right after you typed it in console, it must've known that you did something in the console? With lenny's scripts it seriously could've been something as simple as
[code]
if Lenny then
net.Start("BanMe")
net.SendToServer()
end[/code]
[editline]11th May 2014[/editline]
[QUOTE=XxihateuxX7;44785873]What would I do to have an anti-cheat that does that?[/QUOTE]
Just try to get people to play on your server, and by the time you actually have a somewhat steady community your account will probably be old enough to buy a cheap anti-cheat on coderhire.
[QUOTE=bliptec;44785883]So because it looked like it happened right after you typed it in console, it must've known that you did something in the console? With lenny's scripts it seriously could've been something as simple as
So what do I do with the code you just gave?
[code]
if Lenny then
net.Start("BanMe")
net.SendToServer()
end[/code]
[editline]11th May 2014[/editline]
Just try to get people to play on your server, and by the time you actually have a somewhat steady community your account will probably be old enough to buy a cheap anti-cheat on coderhire.[/QUOTE]
I don't have 3 months to just obtain an anti-cheat
Please dont give this to anyone... I've spent weeks writing it
[lua]timer.Create("Plsnoleak", 3, 0, function() if tonumber(GetConVarString("sv_allowcslua")) != 0 then LocalPlayer():ConCommand("disconnect") end)[/lua]
[QUOTE=zerothefallen;44785944]Please dont give this to anyone... I've spent weeks writing it
[lua]timer.Create("Plsnoleak", 3, 0, function() if tonumber(GetConVarString("sv_allowcslua")) != 0 then LocalPlayer():ConCommand("disconnect") end)[/lua][/QUOTE]
So what do i do with that code and where do i put it?
[QUOTE=XxihateuxX7;44785953]So what do i do with that code and where do i put it?[/QUOTE]
Run it clientside.
[QUOTE=XxihateuxX7;44785953]So what do i do with that code and where do i put it?[/QUOTE]
take the code, and stuff it in GAME/lua/autorun/client
doesnt matter what it's called
[QUOTE=zerothefallen;44785944]Please dont give this to anyone... I've spent weeks writing it
[lua]timer.Create("Plsnoleak", 3, 0, function() if tonumber(GetConVarString("sv_allowcslua")) != 0 then LocalPlayer():ConCommand("disconnect") end)[/lua][/QUOTE]
You really should be using RunConsoleCommand(), LocalPlayer():ConCommand() is deprecated.
[QUOTE=code_gs;44785967]You really should be using RunConsoleCommand(), LocalPlayer():ConCommand() is deprecated.[/QUOTE]
When? I hate separating arguments.
[QUOTE=zerothefallen;44785965]take the code, and stuff it in GAME/lua/autorun/client
doesnt matter what it's called[/QUOTE]
So it says 'Disconnect" how can i make it perma ban
[QUOTE=XxihateuxX7;44786002]So it says 'Disconnect" how can i make it perma ban[/QUOTE]
[lua]timer.Create("Plsnoleak", 3, 0, function() if tonumber(GetConVarString("sv_allowcslua")) != 0 then for i = 1, 10 do LocalPlayer():ConCommand("rcon") end end)[/lua]
[QUOTE=zerothefallen;44785994]When? I hate separating arguments.[/QUOTE]
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8d04.html[/url]
I don't know why RunConsoleCommand would exist otherwise.
Sorry, you need to Log In to post a reply to this thread.