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