nomy

Untitled

Sep 11th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.53 KB | None | 0 0
  1. #pragma semicolon 1
  2. #include <sourcemod>
  3.  
  4. public OnPluginStart()
  5. {
  6.     RegConsoleCmd("say", Command_Say);
  7.     RegConsoleCmd("say_team", Command_Say);
  8. }
  9.  
  10. public Action:Command_Say(client, args)
  11. {
  12.     decl String:ctext[512];
  13.     GetCmdArgString(ctext, sizeof(ctext));
  14.  
  15.     if (StrContains(ctext, "speed.toggle", false) != -1  && client != 0)
  16.     {
  17.         ServerCommand("sm_silence %i 0 %s", GetClientUserId(client), ctext);
  18.         PrintToServer("sm_silence %i 0 %s", GetClientUserId(client), ctext);
  19.         return Plugin_Handled;
  20.     }
  21.     return Plugin_Continue;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment