
   /* AMXMOD script.
   *
   * (c) Copyright 2000-2002, Vantage (aka Mouse)
   * This file is provided as is (no warranties).
   *
   * showndead.sma
   *
   * Thanks Spacedude for help on supporting additional mods!
   *
   */
   #include <amxmod>
   new SpecName[16]
   new gmsg_TeamInfo
   public client_connect(id)
   {
      if(!(is_user_bot(id)) ){
         message_begin( MSG_ALL, gmsg_TeamInfo)
         write_byte(id)
         write_string(SpecName)
         message_end()
      }
      return PLUGIN_CONTINUE
   }
   public plugin_init()
   {

      register_plugin("ShownDead Fix","0.9.4","Vantage aka Mouse")

       new ModName[11]
       get_modname(ModName,10)
       if( equal("cstrike",ModName,10) ){
           copy(SpecName,15,"SPECTATOR")
       }
       else if( equal("ns",ModName,10) ){
           copy(SpecName,15,"#spectatorteam")
       }
       else if( equal("tfc",ModName,10) ){
           copy(SpecName,15,"")
       }
       gmsg_TeamInfo = get_user_msgid("TeamInfo")
       return PLUGIN_CONTINUE
   }
