Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: PAWN  |  size: 0.48 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <amxmodx>
  2.  
  3. #define PLUGIN "New Plug-In"
  4. #define VERSION "1.0"
  5. #define AUTHOR "Administrator"
  6.  
  7. new bool:blokuj[33]
  8.  
  9. public plugin_init() {
  10.         register_plugin(PLUGIN, VERSION, AUTHOR)
  11.  
  12.         register_message(get_user_msgid("MOTD"), "Blokowanie")
  13. }
  14.  
  15. public client_connect(id)
  16.         blokuj[id] = false
  17.  
  18. public Blokowanie(msgid, dest, id) {
  19.         if(!blokuj[id]) {
  20.                 if(get_msg_arg_int(1) == 1)
  21.                         blokuj[id] = true
  22.  
  23.                 return PLUGIN_HANDLED
  24.         }
  25.         return PLUGIN_CONTINUE
  26. }