
   /* AMX Mod script.
   *
   * (c) Copyright 2003, Noplay
   * This file is provided as is (no warranties).
   *
   */
   #include <amxmod>
   public plugin_init()
     register_plugin("Nb connections","0.2","Noplay")
   public client_connect(id)
   {
     new a[8]
     get_user_info(id,"nb_cn",a,7)
     new b = strtonum( a )
     if ( b++ )
       client_cmd(id,"echo You have %d connections", b )
     else
       client_cmd(id,"echo ^"It's your first connection^"")
     client_cmd(id,"setinfo ^"nb_cn^" %d", b )
   }
