• Blocking +forward +right etc. in console
    6 replies, posted
Hello, Is there a way to block these commands from clients to use on my server? +forward, +backward, +right, +left. This is what the players use to trick my ANTI-AFK, so I'd like to stop it.
Theres no way, you always will need use these commands for for move, you can hook angles
[QUOTE=Blt950;42754402]Hello, Is there a way to block these commands from clients to use on my server? +forward, +backward, +right, +left. This is what the players use to trick my ANTI-AFK, so I'd like to stop it.[/QUOTE] If you block those, nobody will be able to walk because when assigning a key to say move forward it just binds the key to +forward. (Ninjad) I would just make an anti-afk that actually works.
[QUOTE=gonzalolog;42754784]Theres no way, you always will need use these commands for for move, you can hook angles[/QUOTE] I hooked angles, though these will not help as +right rotates your screen, means your angle change. Well my anti-AFK script hooks position and angles. What else can I do to prevent it, as those commands listed in OP cheats angles and position.
How does the player change the pitch angle then?
[QUOTE=Cardcapture1;42755089]How does the player change the pitch angle then?[/QUOTE] Ahhhh, clever! I don't know of any way at least, so this might be the solution. [editline]4th November 2013[/editline] GetAngles() here doesn't return me a pitch, as it's 0. What's the correct way to give me the players view-pitch? [editline]4th November 2013[/editline] Nevermind EyeAngles()
You can't do anything against the commands. But you can do other checks, for example: How high is the probability that a player is moving his mouse left for 1m+? Yes, very low. Build a check that looks for unusually long movements. This won't stop people who use lua for an anti-anti-afk, but at least it puts off the guys using console commands. But to be honest, if players can get an advantage from literally being afk in your game(mode), there's probably something horribly [I]wrong[/I] in your gamedesign. (Unless you're a facebook game :v:)
Sorry, you need to Log In to post a reply to this thread.