AMXX-BG.INFO ranksmysql.inc Raw include

ranksmysql.inc

Original include source with line numbers.

Back Download .inc
1 #if defined _rsm_included
2 #endinput
3 #endif
4
5 #define _rsm_included
6
7 /**
8 * Returns client's current XP.
9 *
10 * @param index Client index.
11 * @return Client's current XP.
12 *
13 */
14 native rsm_get_user_xp(index)
15
16 /**
17 * Returns client's current level.
18 *
19 * @param index Client index.
20 * @return Client's current level.
21 *
22 */
23 native rsm_get_user_level(index)
24
25 /**
26 * Returns client's kills.
27 *
28 * @param index Client index.
29 * @return Client's kills.
30 *
31 */
32 native rsm_get_user_kills(index)
33
34 /**
35 * Returns client's deaths.
36 *
37 * @param index Client index.
38 * @return Client's deaths.
39 *
40 */
41 native rsm_get_user_deaths(index)
42
43 /**
44 * Returns client's headshots.
45 *
46 * @param index Client index.
47 * @return Client's headshots.
48 *
49 */
50 native rsm_get_user_headshots(index)
51
52 /**
53 * Returns client's assists.
54 *
55 * @param index Client index.
56 * @return Client's assists.
57 *
58 */
59 native rsm_get_user_assists(index)
60
61 /**
62 * Returns client's shots.
63 *
64 * @param index Client index.
65 * @return Client's shots.
66 *
67 */
68 native rsm_get_user_shots(index)
69
70 /**
71 * Returns client's hits.
72 *
73 * @param index Client index.
74 * @return Client's hits.
75 *
76 */
77 native rsm_get_user_hits(index)
78
79 /**
80 * Returns client's damage.
81 *
82 * @param index Client index.
83 * @return Client's damage.
84 *
85 */
86 native rsm_get_user_damage(index)
87
88 /**
89 * Returns client's MVP count.
90 *
91 * @param index Client index.
92 * @return Client's MVP count.
93 *
94 */
95 native rsm_get_user_mvp(index)
96
97 /**
98 * Returns client's rounds won.
99 *
100 * @param index Client index.
101 * @return Client's rounds won.
102 *
103 */
104 native rsm_get_user_rounds_won(index)
105
106 /**
107 * Returns client's amount of bombs planted.
108 *
109 * @param index Client index.
110 * @return Client's bombs planted amount.
111 *
112 */
113 native rsm_get_user_bombs_planted(index)
114
115 /**
116 * Returns client's amount of bombs defused.
117 *
118 * @param index Client index.
119 * @return Client's bombs defused amount.
120 *
121 */
122 native rsm_get_user_bombs_defused(index)
123
124 /**
125 * Returns client's total played time in seconds.
126 *
127 * @param index Client index.
128 * @return Client's played time in seconds.
129 *
130 */
131 native rsm_get_user_played_time(index)
132
133 /**
134 * Returns client's current rank name.
135 *
136 * @param index Client index.
137 * @param buffer String buffer to store the name.
138 * @param len Maximum buffer lenght.
139 * @noreturn
140 *
141 */
142 native rsm_get_user_rank(index, buffer[], len)
143
144 /**
145 * Returns client's current skill name.
146 *
147 * @param index Client index.
148 * @param buffer String buffer to store the name.
149 * @param len Maximum buffer lenght.
150 * @noreturn
151 *
152 */
153 native rsm_get_user_skill(index, buffer[], len)
154
155 /**
156 * Returns the client's skill range.
157 *
158 * @param index Client's index.
159 * @return Client's skill range.
160 *
161 */
162 native rsm_get_user_skill_range(index)
163
164 /**
165 * Returns the client's server rank.
166 *
167 * @param index Client's index.
168 * @return Client's server rank.
169 *
170 */
171 native rsm_get_user_server_rank(index)
172
173 /**
174 * Returns the maximum amount of levels.
175 *
176 * @return Maximum amount of levels.
177 *
178 */
179 native rsm_get_max_levels()
180
181 /**
182 * Returns the maximum amount of server ranks.
183 *
184 * @return Maximum amount of server ranks.
185 *
186 */
187 native rsm_get_max_server_ranks()
188
189 /**
190 * Gives specific amount of XP to the client.
191 *
192 * @param index Client index.
193 * @param amount XP amount.
194 * @return Amount of XP.
195 *
196 */
197 native rsm_give_user_xp(index, amount = 0)
198
199 /**
200 * Gives specific amount of XP to the specific team.
201 *
202 * @param team 0 - None, 1 - Terrorists, 2 - CTs, 3 - Spectators
203 * @param amount XP amount.
204 * @return Amount of XP.
205 *
206 */
207 native rsm_give_team_xp(team = 0, amount = 0)
208
209 /**
210 * Resets all stats from MySQL table.
211 *
212 * @noreturn
213 *
214 */
215 native rsm_reset_stats()