
   /* GILLY PWNS YOU */
   #include <amxmod>
   #include <amxmisc>
   #include <Vexd_Utilities>
   public Vexd_Mute(id,level,cid){
      if (!cmd_access(id,level,cid,2))
         return PLUGIN_HANDLED
      new szTarget[32]
      read_argv(1, szTarget, 31)
      new player = cmd_target(id, szTarget, 11) ;
      if (!player) return PLUGIN_HANDLED
      new user[32]
      get_user_name(id,user,32)
      new name[33]
      get_user_name(player,name,32)
      new time[55]
      new user_wonid = get_user_wonid(id)
      new name_wonid = get_user_wonid(player)
      client_print(0,print_chat,"[AMX]    %s    has    been    muted   by
   %s",name,user)
      client_print(player,print_chat,"** You have been muted")
      client_print(id,print_console,"%s has been muted",name)
      get_time("%m/%d/%y - %H:%M:%S",time,55)
      log_to_file("addons/amx/logs/mutelog.log",    "%s    %s(%d)   muted
   %s(%d)",time,user,user_wonid,name,name_wonid)
      if (!player) return PLUGIN_HANDLED
      SetSpeak(player, SPEAK_MUTED)
      return PLUGIN_HANDLED_MAIN
   }
   public Vexd_UnMute(id,level,cid){
      if (!cmd_access(id,level,cid,2))
         return PLUGIN_HANDLED
      new szTarget[32]
      read_argv(1, szTarget, 31)
      new player = cmd_target(id, szTarget, 10)
      if (!player) return PLUGIN_HANDLED
      new user[32]
      get_user_name(id,user,32)
      new name[33]
      get_user_name(player,name,32)
      client_print(0,print_chat,"[AMX]    %s    has   been   unmuted   by
   %s",name,user)
      client_print(player,print_chat,"** You have been unmuted")
      client_print(id,print_console,"%s has been unmuted",name)
      if (!player) return PLUGIN_HANDLED
      SetSpeak(player, SPEAK_NORMAL)
      return PLUGIN_HANDLED_MAIN
   }
   public plugin_init(){
      register_plugin("Gilly Mute Plugin","1.00","default")
      register_concmd("amx_mute","Vexd_Mute",ADMIN_KICK,"")
      register_concmd("amx_unmute","Vexd_UnMute",ADMIN_KICK,"")
      return PLUGIN_CONTINUE
   }
