Has anyone here made or thought about a exe you would run(With all commands possible) and run them into the console of that server and once it has ran all of them it will tell you which commands work? This could be a good idea because you could exploit cracks they haven't patched. Just a idea.
what
Originally Posted by D3M0L1T10N
what
He is asking for a program that runs through all the commands and check how many of them work.
The amount of commands in the source engine alone is immense, so good luck with that.
Well I'm not able to test this but it should show every command that gets added with concommand.Add.
Code:
local commands, somethingelse = concommand.GetTable()
PrintTable(commands)
In the commands table the keys are equal to the commands name (such as "openmenu") and the value stored under that key is the function the command runs when used. So if you wanted to run the function associated with the command "openmenu" you could do this.
Code:
local commands, somethingelse = concommand.GetTable()
for k,v in pairs(commands) do
if k == "openmenu" then
v()
end
end
Originally Posted by Atheon
Well I'm not able to test this but it should show every command that gets added with concommand.Add.
Code:
local commands, somethingelse = concommand.GetTable()
PrintTable(commands)
In the commands table the keys are equal to the commands name (such as "openmenu") and the value stored under that key is the function the command runs when used. So if you wanted to run the function associated with the command "openmenu" you could do this.
Code:
local commands, somethingelse = concommand.GetTable()
for k,v in pairs(commands) do
if k == "openmenu" then
v()
end
end
He wants it in exe or dll format I can imagine.
Yes^^ too short
---------- Post added at 11:47 AM ---------- Previous post was at 11:47 AM ----------
o.o what...
Originally Posted by Atheon
Well I'm not able to test this but it should show every command that gets added with concommand.Add.
Code:
local commands, somethingelse = concommand.GetTable()
PrintTable(commands)
In the commands table the keys are equal to the commands name (such as "openmenu") and the value stored under that key is the function the command runs when used. So if you wanted to run the function associated with the command "openmenu" you could do this.
Code:
local commands, somethingelse = concommand.GetTable()
for k,v in pairs(commands) do
if k == "openmenu" then
v()
end
end