amxmodx/plugins/include/csstats.inc

52 lines
1.9 KiB
PHP
Raw Normal View History

2004-01-31 20:56:22 +00:00
/* CS Stats functions
2004-02-08 11:31:54 +00:00
*
* (c) 2002-2004, OLO
2004-02-15 02:29:51 +00:00
* modified by the AMX Mod X Development Team
2004-02-08 11:31:54 +00:00
*
* This file is provided as is (no warranties).
*/
2004-01-31 20:56:22 +00:00
/* Gets stats from given weapon index. If wpnindex is 0
2004-02-15 02:29:51 +00:00
* then the stats are from all weapons. If weapon has not been used function
* returns 0 in other case 1. Fields in stats are:
* 0 - kills
* 1 - deaths
* 2 - headshots
* 3 - teamkilling
* 4 - shots
* 5 - hits
* 6 - damage
* For body hits fields see amxconst.inc. */
2004-01-31 20:56:22 +00:00
native get_user_wstats(index,wpnindex,stats[8],bodyhits[8]);
/* Gets round stats from given weapon index.*/
native get_user_wrstats(index,wpnindex,stats[8],bodyhits[8]);
/* Gets overall stats which are stored in file on server
2004-02-15 02:29:51 +00:00
* and updated on every respawn or user disconnect.
* Function returns the position in stats by diff. kills to deaths. */
2004-01-31 20:56:22 +00:00
native get_user_stats(index,stats[8],bodyhits[8]);
/* Gets round stats of player. */
native get_user_rstats(index,stats[8],bodyhits[8]);
/* Gets stats with which user have killed/hurt his victim. If victim is 0
2004-02-15 02:29:51 +00:00
* then stats are from all victims. If victim has not been hurt, function
* returns 0 in other case 1. User stats are reset on his respawn. */
2004-01-31 20:56:22 +00:00
native get_user_vstats(index,victim,stats[8],bodyhits[8],wpnname[]="",len=0);
/* Gets stats with which user have been killed/hurt. If killer is 0
2004-02-15 02:29:51 +00:00
* then stats are from all attacks. If killer has not hurt user, function
* returns 0 in other case 1. User stats are reset on his respawn. */
2004-01-31 20:56:22 +00:00
native get_user_astats(index,wpnindex,stats[8],bodyhits[8],wpnname[]="",len=0);
/* Resets life, weapon, victims and attackers user stats. */
native reset_user_wstats(index);
/* Gets overall stats which stored in stats.dat file in amx folder
2004-02-15 02:29:51 +00:00
* and updated on every mapchange or user disconnect.
* Function returns next index of stats entry or 0 if no more exists. */
2004-01-31 20:56:22 +00:00
native get_stats(index,stats[8],bodyhits[8],name[],len);
/* Returns number of all entries in stats. */
2004-02-15 02:29:51 +00:00
native get_statsnum();