View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 11-21-2020 , 12:22   Re: Temporarily saving a player's message (Anti-Spam plugin)
Reply With Quote #3

1. Best would be to look at including <basecomm> and using the functions there to take are of muting/gagging people.

Go through include/basecomm.inc for more instructions.


2. If you absolutely insist on ServerCommand, - please do it more sanely, like:

PHP Code:
            ServerCommand("sm_gag %d"GetClientUserId(client)); 
3. With your current version, ... e.g.:

Quote:
Originally Posted by FAQU View Post
PHP Code:
            ServerCommand("sm_gag %N"client); 
I'm afraid you will hate when "The Almighty Goat; quit" is spamming on your server.

You know, no one really wants to mess with The Almighty Goat.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline