laurentiuarion

No backslash in chat

Feb 11th, 2020
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2.  
  3. public plugin_init() {
  4.     register_plugin("Fara / in chat", "0.1", "Ex3cuTioN");
  5.     register_clcmd("say","hook_say");
  6. }
  7.  
  8. public hook_say(id) {
  9.     static s_Args[192];
  10.  
  11.     read_argv(1, s_Args, sizeof(s_Args) - 1);
  12.  
  13.     if(equal(s_Args, "/", 1)) {
  14.         return PLUGIN_HANDLED;
  15.     }
  16.     return PLUGIN_CONTINUE;
  17. }
RAW Paste Data