AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Wait Console Command (https://forums.alliedmods.net/showthread.php?t=171302)

joshknifer 11-04-2011 12:17

Wait Console Command
 
Question just for personal knowledge. We have a lot of requests for script blockers, and since binds are client side, it is hard to block them, even if you write a plugin that gives an option to change a client side config, they can just rebind the keys after they select the option anyways.

So my questions is couldn't we just write a plugin that blocks the wait command? Would this work?

PHP Code:

#include <amxmodx>

public plugin_init()
    
register_clcmd("wait""CmdWait");


public 
CmdWait(id)
    return 
PLUGIN_HANDLED


ConnorMcLeod 11-04-2011 12:23

Re: Wait Console Command
 
wait is a client side command that is never sent to the server.

joshknifer 11-04-2011 12:25

Re: Wait Console Command
 
Quote:

Originally Posted by ConnorMcLeod (Post 1589888)
wait is a client side command that is never sent to the server.

Cool that clears it up. Thanks Connor

Edit: I have read elsewhere that players have had trouble with scripts in certain servers because the server says the command wait is unrecognized. Any clue on how that is done?

ConnorMcLeod 11-04-2011 19:49

Re: Wait Console Command
 
"have heard" :mrgreen:

fysiks 11-05-2011 02:28

Re: Wait Console Command
 
It's probably something else doing it.

ConnorMcLeod 11-05-2011 05:02

Re: Wait Console Command
 
Or is it "Alias name is invalid" ?


All times are GMT -4. The time now is 14:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.