
   /* AMX Mod script.
   *
   * (c) Copyright 2002-2003, Gymer
   * This file is provided as is (no warranties).
   *
   */
   #include <amxmod>
   public client_connect(id) {
      new filename[128]
      get_cvar_string("amx_conmotd_file",filename,127)
      if (file_exists(filename)) {
         new message[192], line = 0, txtsize = 0
         while((line=read_file(filename,line,message,191,txtsize))!=0)
            client_cmd(id,"echo %s",message)
      }
      return PLUGIN_CONTINUE
   }
   public plugin_init() {
      register_plugin("Console Message From File","0.5","Gymer")
      register_cvar("amx_conmotd_file","addons/amx/conmotd.txt")
      return PLUGIN_CONTINUE
   }
