Raised This Month: $32 Target: $400
 8% 

command filter for CS:S?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Acer_
New Member
Join Date: Dec 2017
Old 08-19-2018 , 00:59   command filter for CS:S?
Reply With Quote #1

I've downloaded various plugins and tried editing them but none are quite doing what I need
I would like for players to be kicked or banned for entering a certain command (which is being abused)

so like sm_example (through console/cmd), "sm_say /example" (through chat), "sm_say !example" should all result in them not being on the server any longer.

I could pretty easily compile smac with that word being in the banned commands list, but I really wish to not use smac



EDIT: nevermind, found something that works

public OnPluginStart() {
RegConsoleCmd("sm_example", sm_example, "dummy command to kick players for abusing sm_example");
}

public Action:sm_example(client, args) {
if (IsValidClient(client))
KickClient(client);
}

Last edited by Acer_; 08-19-2018 at 01:25. Reason: found one
Acer_ is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:19.


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