[Half-Life AMXX] / include / csstats.inc Repository:
ViewVC logotype

Annotation of /include/csstats.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (view) (download)

1 : ian 1
2 :     #if defined _csstats_included
3 :     #endinput
4 :     #endif
5 :     #define _csstats_included
6 :    
7 :     /* Gets stats from given weapon index. If wpnindex is 0
8 :     * then the stats are from all weapons. If weapon has not been used function
9 :     * returns 0 in other case 1. Fields in stats are:
10 :     * 0 - kills
11 :     * 1 - deaths
12 :     * 2 - headshots
13 :     * 3 - teamkilling
14 :     * 4 - shots
15 :     * 5 - hits
16 :     * 6 - damage
17 :    
18 :     * For body hits fields see amxconst.inc. */
19 :     native get_user_wstats(index,wpnindex,stats[8],bodyhits[8]);
20 :    
21 :     /* Gets round stats from given weapon index.*/
22 :     native get_user_wrstats(index,wpnindex,stats[8],bodyhits[8]);
23 :    
24 :     /* Gets overall stats which are stored in file on server
25 :     * and updated on every respawn or user disconnect.
26 :     * Function returns the position in stats by diff. kills to deaths. */
27 :     native get_user_stats(index,stats[8],bodyhits[8]);
28 :    
29 :     /* Gets round stats of player. */
30 :     native get_user_rstats(index,stats[8],bodyhits[8]);
31 :    
32 :     /* Gets stats with which user have killed/hurt his victim. If victim is 0
33 :     * then stats are from all victims. If victim has not been hurt, function
34 :     * returns 0 in other case 1. User stats are reset on his respawn. */
35 :     native get_user_vstats(index,victim,stats[8],bodyhits[8],wpnname[]="",len=0);
36 :    
37 :     /* Gets stats with which user have been killed/hurt. If killer is 0
38 :     * then stats are from all attacks. If killer has not hurt user, function
39 :     * returns 0 in other case 1. User stats are reset on his respawn. */
40 :     native get_user_astats(index,wpnindex,stats[8],bodyhits[8],wpnname[]="",len=0);
41 :    
42 :     /* Resets life, weapon, victims and attackers user stats. */
43 :     native reset_user_wstats(index);
44 :    
45 :     /* Gets overall stats which stored in stats.dat file in amx folder
46 :     * and updated on every mapchange or user disconnect.
47 :     * Function returns next index of stats entry or 0 if no more exists. */
48 :     native get_stats(index,stats[8],bodyhits[8],name[],len,authid[] = "",authidlen = 0);
49 :    
50 :     /* Returns number of all entries in stats. */
51 :     native get_statsnum();
52 :    
53 :     /*
54 :     * new stats:
55 :     * 0 - total defusions
56 :     * 1 - bomb defused
57 :     * 2 - bomb plants
58 :     * 3 - bomb explosions
59 :     */
60 :     native get_user_stats2(index,stats[4]);
61 :     native get_stats2(index,stats[4],authid[] = "",authidlen = 0);

Contact
ViewVC Help
Powered by ViewVC 1.0.4