• Getting around a blocked consol command
    7 replies, posted
I cant seem to figure out how to make this run in lua pretty much what I want to do is RunConsoleCommand("bind", "3", "say hi") but bind is blocked I know there is another way around it but how??
There is no way around it without making your players download a module.
[lua]hook.Add("Think", function() if (input.WasKeyPressed(KEY_3)) then RunConsoleCommand("say hi"); end end) [/lua] i literally wrote that in the browser from memory so i dont even know if it works
You don't have to bind a player's key. Use [URL="http://wiki.garrysmod.com/page/input/WasKeyPressed"]this[/URL] with [URL="http://wiki.garrysmod.com/page/Enums/KEY"]this[/URL]. [editline]11th January 2014[/editline] Ninja'd
there is away because someone has done it to me rebound a few of my keys but I couldn't figure out how and thanks code gs but I'm aware of that but this is not what I am trying to do. I want a complete rebind of keys.
[QUOTE=Thetomm2010;43504814]there is away because someone has done it to me rebound a few of my keys but I couldn't figure out how and thanks code gs but I'm aware of that but this is not what I am trying to do. I want a complete rebind of keys.[/QUOTE] That's called exploiting. I don't know how he did it, but we're not going to help you do malicious actions.
and more likely OP doesn't know what he's talking about, and his keys were not rebound
[QUOTE=bitches;43505566]and more likely OP doesn't know what he's talking about, and his keys were not rebound[/QUOTE] lol found it out asked the server owner myself thank you for all the time you have given me next time I will not bother you with something that is obviously over your head =]
Sorry, you need to Log In to post a reply to this thread.