seroff

Block Unknown Command Alpha By WPMG PRoSToTeM@

Dec 27th, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. public plugin_precache()
  4. register_plugin (
  5. "Block Unknown Command",
  6. "Alpha",
  7. "WPMG PRoSToTeM@"
  8. );
  9.  
  10. public plugin_init()
  11. register_message(get_user_msgid("TextMsg"), "MessageTextMsg");
  12.  
  13. public MessageTextMsg()
  14. {
  15. new szArg2[32];
  16.  
  17. get_msg_arg_string(2, szArg2, 31);
  18.  
  19. if (!equal(szArg2, "#Game_unknown_command"))
  20. return PLUGIN_CONTINUE;
  21.  
  22. return PLUGIN_HANDLED;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment