
   /* AMX Mod script.
   *
   * (c) 2003, TyGuS <tygus@dreaxteam.net>
   * This file is provided as is (no warranties).
   *
   */
   #include <amxmod>
   public plugin_init()
   {
       register_plugin("Team Report","0.1","TyGuS")
       register_clcmd("say_team   teamreport","sayReport",0,"-   displays
   informations about your team: weapon, ammo, health, etc.")
       return PLUGIN_CONTINUE
   }
   public sayReport(id)
   {
      new buffer[1024], players[32], name[32], num
      new wpn[32], ammo, clip
      get_user_team(id,name,31)
      get_players(players,num,"ae", name )
      new pos = copy(buffer,1023,"Friends Status :^n")
      for (new i=0; i<num; ++i)  {
         get_user_name(players[i], name , 31)
         get_weaponname( get_user_weapon(players[i],clip,ammo) , wpn , 31
   )
         new armor = get_user_armor(players[i])
         new money = get_user_money(players[i])
         new health = get_user_health(players[i])
         pos += format(buffer[pos],1023-pos,"%s -- %s (%d/%d) Life %d/%d,
   %d $^n",
             name,wpn[7],clip,ammo,health,armor,money)
      }
      set_hudmessage(255,255,0,0.05,0.4,0, 6.0, 12.0, 1.0, 2.0, 3)
      show_hudmessage(id,buffer)
      return PLUGIN_CONTINUE
   }
