
   /*
   *
   *   Live Hostname
   *   Version 1.0
   *   Author: Freecode;   freecode@hotmail.com (MSN)  FCunnClan (AIM)
   *
   *   This plugin will will change the hostname right away..
   *
   *   Requirements:
   *      Compiled on 0.9.4.
   *      Should work successfully on 0.9.3
   *      Tested successfully on 0.9.4.
   *      Should work successfully on 0.9.5.
   *
   *   Admin Commands:
   *      hostname "name goes here"
   *
   *   To Do:
   *      Nothing :)
   *
   */
   #include <amxmod>
   #include <amxmisc>
   new gmsgServerName
   public hostname(){
   new host[32]
   get_cvar_string("hostname",host,32)
   message_begin(MSG_ALL, gmsgServerName)
   write_string(host)
   message_end()
   }
   public plugin_init(){
   register_plugin("Live Hostname","1.0","Freecode")
   set_task(0.1,"hostname",0,"",0,"b")
   gmsgServerName = get_user_msgid("ServerName")
   }
