Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. /* Simple plugin to block spam/noise in server by hiding repeated messages. */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5.  
  6. #define NUMOFMESSAGES 9
  7.  
  8. new messages[NUMOFMESSAGES+1][192]
  9.  
  10. public plugin_init()
  11. {
  12. register_plugin("Spam Engelleme", "1.0", "BLackMaN")
  13. register_clcmd("amx_say", "asdasd")
  14. register_clcmd("amx_tsay", "asdasd")
  15. register_clcmd("amx_csay", "asdasd")
  16. register_clcmd("amx_team", "asdasd")
  17. register_clcmd("amx_revive", "asdasd")
  18. register_clcmd("amx_kick", "asdasd")
  19. register_clcmd("amx_ban", "asdasd")
  20. register_clcmd("amx_banip", "asdasd")
  21. register_clcmd("amx_slay", "asdasd")
  22. register_clcmd("amx_slap", "asdasd")
  23. register_clcmd("amx_vote", "asdasd")
  24. register_clcmd("amx_bury", "asdasd")
  25. register_clcmd("amx_unbury", "asdasd")
  26. register_clcmd("amx_uberslap", "asdasd")
  27. register_clcmd("amx_weapon", "asdasd")
  28. register_clcmd("amx_godmode", "asdasd")
  29. register_clcmd("amx_transfer", "asdasd")
  30.  
  31. }
  32.  
  33. public asdasd(id)
  34. {
  35. new i
  36. for (i=NUMOFMESSAGES; i>0; i--) messages[i] = messages[i-1]
  37. read_args(messages[0], 191)
  38. for (i=1; i<=NUMOFMESSAGES; i++)
  39. if (equal(messages[0], messages[i])) {
  40. client_print(id, "Hizli Amxx Komutu Kullaniyorsun Bekle Biraz")
  41. return PLUGIN_HANDLED
  42. }
  43. return PLUGIN_CONTINUE
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement