I need help with a code that was used on my server
2 replies, posted
I was on my server just making sure everyone was doing good being a Co-Owner and all the Everyone started leave so I took a look in console and found out someone was using this code, Can someone tell me what it does and how it is used.
[CODE]local function concommand_lol(cmd)
if SERVER then
game.ConsoleCommand(string.rep("\n", 1024) .. cmd .. "\n")
else
LocalPlayer():ConCommand(string.rep("\n", 1024) .. cmd)
end
end
concommand_lol("bind w quit")[/CODE]
Any help is wonderful,
I just want to know what to do about it and how to fix it so it doesn't happen again.
This was fixed 1 update ago
:downs:
This code is ripped straight from my profile btw, I upset Snake Eyes in a completely unrelated event.
[QUOTE=Snake Eyes;45114717]I was on my server just making sure everyone was doing good being a Co-Owner and all the Everyone started leave so I took a look in console and found out someone was using this code, Can someone tell me what it does and how it is used.
[CODE]local function concommand_lol(cmd)
if SERVER then
game.ConsoleCommand(string.rep("\n", 1024) .. cmd .. "\n")
else
LocalPlayer():ConCommand(string.rep("\n", 1024) .. cmd)
end
end
concommand_lol("bind w quit")[/CODE]
Any help is wonderful,
I just want to know what to do about it and how to fix it so it doesn't happen again.[/QUOTE]
This makes all players exit the game when they press "w", what you could do is add this:
[lua]
function concommand_lol() return end
[/lua]
To a file located on lua/autorun/antiminge.lua
[editline]15th June 2014[/editline]
But the server executing the "bind" command was blacklisted on some updates ago, so you dont need to worry about it(i think)
Sorry, you need to Log In to post a reply to this thread.