get_user_rstats

Синтаксис

native get_user_rstats(index, stats[STATSX_MAX_STATS], bodyhits[MAX_BODYHITS]);

Употреба

index
Client index
stats
Buffer to copy statistics to
bodyhits
Buffer to copy body hits to

Описание

Retrieves the client's statistics from the current round.

Забележка

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

Връщаща стойност

1 on success, 0 if no statistics are available

Грешка

If an invalid client index is provided, an error will be
thrown.