
   #include <amxmod>
   #include <amxmisc>
   public admin_blind(id,level,cid){
       if (!cmd_access(id,level,cid,2))
           return PLUGIN_HANDLED
       new arg[32]
       read_argv(1,arg,31)
       new player = cmd_target(id,arg,5)
       if (!player) return PLUGIN_HANDLED
       client_cmd(player,"gl_nobind 1")
       client_cmd(player,"clear")
       new authid[16],name2[32],authid2[16],name[32]
       get_user_authid(id,authid,15)
       get_user_name(id,name,31)
       get_user_authid(player,authid2,15)
       get_user_name(player,name2,31)

       switch(get_cvar_num("amx_show_activity"))    {
       case      2:    client_print(0,print_chat,"ADMIN     %s:     blind
   %s",name,name2)
       case 1:    client_print(0,print_chat,"ADMIN: blind %s",name2)
       }

       console_print(id,"Client ^"%s^" blinded",name2)
       return PLUGIN_HANDLED_MAIN
   }
   public plugin_init(){
       register_plugin("AMX Blind","0.91","default")
       register_concmd("amx_blind","admin_blind",ADMIN_KICK,"<authid,
   nick or #userid>")
       register_cvar("amx_show_activity","2")
       return PLUGIN_CONTINUE
   }
