AMX Mod X API Documentation

Signature
native get_user_astats(index, wpnindex, stats[STATSX_MAX_STATS], bodyhits[MAX_BODYHITS], wpnname[] = "", len = 0);
Description

Retrieves the client's statistics received from another client from the

current round.

Notes
  • For a list of possible body hitplaces see the HIT_* constants in

    amxconst.inc

  • For a list of possible stat constants see the STATSX_* constants in

    amxconst.inc

  • The fields in the statistics are:

    0 - Kills

    1 - Deaths

    2 - Headshots

    3 - Teamkills

    4 - Shots

    5 - Hits

    6 - Damage

Parameters
  • index Client index
  • wpnindex Attacker client index, or 0 to retrieve the statistics from

    all attackers

  • stats Buffer to copy statistics to
  • bodyhits Buffer to copy body hits to
  • wpnname Optional buffer to copy last used weapon name to
  • len Maximum buffer size
Returns

1 on success, 0 if no statistics are available against the

specified attacker

Errors
  • If an invalid client index is provided, an error will be

    thrown.

Назад
Верх