AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Using console_cmd (https://forums.alliedmods.net/showthread.php?t=196219)

Skords 09-16-2012 20:15

Using console_cmd
 
Hello, I am a noob and I was wondering how to use the command console_cmd?

I saw this

Code:

Syntax:

    console_cmd ( index, const cmd[], any:... )

But I couldnt quite understand it. :(

I am trying to bind the players keys like "t" to "retry" and unbinding all and then using default bind values because many of them come to the server with their keys binded to spam the chat. I would really appreciate it if someone could help me.

I hope this is in right section and not against any rules.

YamiKaitou 09-16-2012 21:30

Re: Using console_cmd
 
Quote:

Originally Posted by Skords (Post 1800955)
not against any rules.

But it is, unless you ask for permission for EACH bind you make.

Skords 09-16-2012 21:35

Re: Using console_cmd
 
Yes sure, if possible a dialog or something.

teh ORiON 09-17-2012 04:49

Re: Using console_cmd
 
Sounds like a spam filter is more appropriate than slowhacking the client?

Backstabnoob 09-17-2012 05:04

Re: Using console_cmd
 
Quote:

Sounds like a spam filter is more appropriate than slowhacking the client?
Not really. Spam filters are very inaccurate, as well as rebinding keys to default (most players will be pissed instead of thanking you). There isn't any good method of removing the auto bound spam (or blocking it). It's Valve's stupidity to allow servers interfere with players' config files.

Skords 09-17-2012 09:22

Re: Using console_cmd
 
Is there any way to censor ips with spaces, like 127 . 0 . 0 . 1, 127.0.0.1 gets filtered but not the one with spaces.

Also, I wanted to add a vipmod which helps VIP users to buy any item in the middle of a round. So is it possible to bind v to vipmod with clients permission without having him to type it in his console?

teh ORiON 09-17-2012 11:52

Re: Using console_cmd
 
Quote:

Originally Posted by Backstabnoob (Post 1801137)
Not really. Spam filters are very inaccurate, as well as rebinding keys to default (most players will be pissed instead of thanking you). There isn't any good method of removing the auto bound spam (or blocking it). It's Valve's stupidity to allow servers interfere with players' config files.

A spam filter can be adding a 'cooldown' if you type too often, e.g. rendering the client unable to send messages for some time. And if that not helps you can make a gag feature that permanently or temporarily block messages from the client. Alas there are many things you can do to fight the problems as described by OP as opposed to slowhacking the client which is not very nice.

jimaway 09-17-2012 12:01

Re: Using console_cmd
 
create a regex pattern to block all spam you need :D

Backstabnoob 09-17-2012 13:07

Re: Using console_cmd
 
That's not what I meant by inaccurate. You won't ever be able to catch every spam properly, no matter what regex or whatever you use.

fysiks 09-17-2012 19:32

Re: Using console_cmd
 
Quote:

Originally Posted by Backstabnoob (Post 1801137)
Not really. Spam filters are very inaccurate, as well as rebinding keys to default (most players will be pissed instead of thanking you). There isn't any good method of removing the auto bound spam (or blocking it). It's Valve's stupidity to allow servers interfere with players' config files.

For spam that is "bound" to a key, Exolent's plugin will work wonders.


All times are GMT -4. The time now is 08:11.

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