
   /*
   *
   * Welcome HudMsg
   *  by JustinHoMi
   *
   */
   #include <amxmod>
   public client_putinserver(id) {
       new ids[1]
       ids[0] = id
       set_task(10.0,"welcome_msg",0,ids,1)
       return PLUGIN_CONTINUE
   }
   public welcome_msg(ids[]){
       new motm[192],hostname[64],name[32],id = ids[0]
       get_cvar_string("amx_welcome_hudmsg",motm,191)
       get_cvar_string("hostname",hostname,63)
       replace(motm,191,"%hostname%",hostname)
       get_user_name(id,name,31)
       replace(motm,191,"%name%",name)
       set_hudmessage(0,225,0)
       show_hudmessage(id,motm)
       return PLUGIN_CONTINUE
   }
   public plugin_init() {
       register_plugin("Welcome HudMsg","0.3","JustinHoMi")
       register_cvar("amx_welcome_hudmsg","Welcome %name% to %hostname%")
       return PLUGIN_CONTINUE
   }
