get_user_stats2

Синтаксис

native get_user_stats2(index, stats[STATSX_MAX_OBJECTIVE]);

Употреба

index
Client index
stats
Buffer to copy statistics to

Описание

Retrieves the client's objective statistics from the permanent storage.

Забележка

The permanent storage is updated on every respawn or client disconnect.

Забележка

For a list of possible stat constants see the STATSX_* constants in
amxconst.inc

Забележка

The fields in the statistics are:
   0 - total defusions
   1 - bomb defused
   2 - bomb plants
   3 - bomb explosions

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

Players rank > 0 on success, or 0 if player is not ranked
and no statistics are available

Грешка

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