
   /* AMX Mod script.
   *
   * (c) 2002-2003, Parakeet
   * This file is provided as is (no warranties).
   *
   * go to your addons/amx directory and create a file called word.txt
   * in witch you write a word you like
   * the server will use this word to recognize players
   *
   */
   #include <amxmod>
   public plugin_init()
     register_plugin("welcome Again","1.1","Parakeet")

   public client_disconnect(id)
     remove_task( id )
   public client_putinserver(id)
   {
     if ( !is_user_bot(id) )
     {
       new param[1]
       param[0] = id
       set_task( 10.0 , "welcome" , id , param , 1 )
       set_task( 17.0 , "admin" , id , param ,1 )
     }
   }
   public welcome(param[])
   {
       new word[32]
       new txtlen
       new nextline =
   read_file("addons/amx/word.txt",nextline,word,31,txtlen)
       new id = param[0]
       new name[32]
       new mapname[32]
       new rem[32]
       new hostname[64]
       get_user_info(id,word,rem,31)
       get_user_name(id, name , 31)
       get_mapname(mapname,31)
       get_cvar_string("hostname",hostname,64)
       new nb = strtonum( rem )

       if(nb==1)
       {
       set_hudmessage(20,  200, 110, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1,
   2)
       show_hudmessage(param[0],"Glad  to  see you again, %s^nHave fun on
   %s ! ",name,mapname)
       client_cmd(id,"speak ^"scientist/goodtoseeyou^"")
       } else
       {
       set_hudmessage(20,  200, 110, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1,
   2)
       show_hudmessage(param[0],"Hey,     %s^nWelcome     to     %s     !
   ",name,hostname)
       client_cmd(id,"speak ^"scientist/hellothere^"")
       client_cmd(id,"setinfo ^"%s^" ^"1^"",word)
       }
   }
   public admin(param[])
   {
     new id = param[0]
     new hostname[64]
     get_cvar_string("hostname",hostname,64)
     if (get_user_flags(id)&ADMIN_IMMUNITY)
     {
     set_hudmessage(20, 200, 110, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
     show_hudmessage(param[0],"You have Admin's flags^nEnforce the law on
   %s ! ",hostname)
     }
   }
