Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #include <sourcemod>
- public OnPluginStart()
- {
- RegConsoleCmd("say", Command_Say);
- RegConsoleCmd("say_team", Command_Say);
- }
- public Action:Command_Say(client, args)
- {
- decl String:ctext[512];
- GetCmdArgString(ctext, sizeof(ctext));
- if (StrContains(ctext, "speed.toggle", false) != -1 && client != 0)
- {
- ServerCommand("sm_silence %i 0 %s", GetClientUserId(client), ctext);
- PrintToServer("sm_silence %i 0 %s", GetClientUserId(client), ctext);
- return Plugin_Handled;
- }
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment