
   /*
   Livename v1.0    by SentryIII
   Automatically  changes  the  server  name  using "PRENAME" + MAPNAME +
   "POSTNAME"
   WARNING
   =======
   If  you  dont  know  how to compile then this plugin probably isnt for
   you...
   PREINSTALLATION
   ===============
   1. Change PRENAME to whatever you want.
   2. Change POSTNAME to whatever you want.
   INSTALLATION
   ============
   1. Compile sma to amx
   2. Move livename.amx into amx/plugins
   3. Add a line at the end of amx/plugins/plugins.ini to say:
      livename.amx
   4. Restart Server
   5. Done
   FUTURE
   ======
   1.  Change  PRENAME  &  POSTNAME to cvar. (Ability to change them from
   Server Console)
   2. Make The Mapname look nicer. (ex: DUST -> Dust)
   IDEAS?
   =====
   PM me @ http://amxmod.net/forums/privmsg.php?mode=post&u=7858
   OR
   POST @ http://amxmod.net/forums/viewtopic.php?t=16475
   */
   #include <amxmod>
   #include <string>
   static const PRENAME[] = ""
   static const POSTNAME[] = ""
   public plugin_init(){
       register_plugin("Livename","1.0","SentryIII")
       set_task(0.0, "do_it", 0, "", 0, "b")
       return PLUGIN_CONTINUE
   }
   public do_it(){
       new map[32]
       new newname[32]
       new formated[32]
       get_mapname(map,31)
       format(formated,31,map[3])
       strtoupper(formated)
       format(newname,31,"%s %s %s", PRENAME, formated, POSTNAME)
       set_cvar_string("hostname", newname)
       return PLUGIN_CONTINUE
   }
