native get_user_wstats(index, wpnindex, stats[STATSX_MAX_STATS], bodyhits[MAX_BODYHITS]);
index | Client index |
wpnindex | Weapon id, or 0 to retrieve total statistics across all weapons |
stats | Buffer to copy statistics to |
bodyhits | Buffer to copy body hits to |
Retrieves the client's current weapon statistics.
For a list of default CS weapon ids see the CSW_* constants in amxconst.inc, this function also works on custom weapons.
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 for the weapon id
If an invalid client index or weapon id is provided, an error will be thrown.
This documentation was automatically generated using pawn-docgen made by xPaw for AlliedMods.