ranksultimate.inc
Original include source with line numbers.
| 1 | #if defined _ranksultimate_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | |
| 5 | #define _ranksultimate_included |
| 6 | |
| 7 | /** |
| 8 | * Called when the client's level changes. |
| 9 | * |
| 10 | * @param index Client index. |
| 11 | * @param level New level. |
| 12 | * @param levelup True if the client gained a level, false if he lost one. |
| 13 | * @noreturn |
| 14 | * |
| 15 | */ |
| 16 | forward rsu_user_level_updated(index, level, bool:levelup) |
| 17 | |
| 18 | /** |
| 19 | * Called right after the client's XP amount changes. |
| 20 | * |
| 21 | * @param index Client index. |
| 22 | * @param xp Amount of XP the client has after the change. |
| 23 | * @param teamxp True if Team XP, false otherwise. |
| 24 | * @noreturn |
| 25 | */ |
| 26 | forward rsu_user_xp_updated(index, xp, bool:teamxp) |
| 27 | |
| 28 | /** |
| 29 | * Returns client's current XP. |
| 30 | * |
| 31 | * @param index Client index. |
| 32 | * @return Client's current XP. |
| 33 | * |
| 34 | */ |
| 35 | native rsu_get_user_xp(index) |
| 36 | |
| 37 | /** |
| 38 | * Returns client's next rank XP. |
| 39 | * |
| 40 | * @param index Client index. |
| 41 | * @return Client's next rank XP. |
| 42 | * |
| 43 | */ |
| 44 | native rsu_get_user_next_xp(index) |
| 45 | |
| 46 | /** |
| 47 | * Returns client's current level. |
| 48 | * |
| 49 | * @param index Client index. |
| 50 | * @return Client's current level. |
| 51 | * |
| 52 | */ |
| 53 | native rsu_get_user_level(index) |
| 54 | |
| 55 | /** |
| 56 | * Returns client's kills. |
| 57 | * |
| 58 | * @param index Client index. |
| 59 | * @return Client's kills. |
| 60 | * |
| 61 | */ |
| 62 | native rsu_get_user_kills(index) |
| 63 | |
| 64 | /** |
| 65 | * Returns client's deaths. |
| 66 | * |
| 67 | * @param index Client index. |
| 68 | * @return Client's deaths. |
| 69 | * |
| 70 | */ |
| 71 | native rsu_get_user_deaths(index) |
| 72 | |
| 73 | /** |
| 74 | * Returns client's headshots. |
| 75 | * |
| 76 | * @param index Client index. |
| 77 | * @return Client's headshots. |
| 78 | * |
| 79 | */ |
| 80 | native rsu_get_user_headshots(index) |
| 81 | |
| 82 | /** |
| 83 | * Returns client's assists. |
| 84 | * |
| 85 | * @param index Client index. |
| 86 | * @return Client's assists. |
| 87 | * |
| 88 | */ |
| 89 | native rsu_get_user_assists(index) |
| 90 | |
| 91 | /** |
| 92 | * Returns client's shots. |
| 93 | * |
| 94 | * @param index Client index. |
| 95 | * @return Client's shots. |
| 96 | * |
| 97 | */ |
| 98 | native rsu_get_user_shots(index) |
| 99 | |
| 100 | /** |
| 101 | * Returns client's hits. |
| 102 | * |
| 103 | * @param index Client index. |
| 104 | * @return Client's hits. |
| 105 | * |
| 106 | */ |
| 107 | native rsu_get_user_hits(index) |
| 108 | |
| 109 | /** |
| 110 | * Returns client's damage. |
| 111 | * |
| 112 | * @param index Client index. |
| 113 | * @return Client's damage. |
| 114 | * |
| 115 | */ |
| 116 | native rsu_get_user_damage(index) |
| 117 | |
| 118 | /** |
| 119 | * Returns client's MVP count. |
| 120 | * |
| 121 | * @param index Client index. |
| 122 | * @return Client's MVP count. |
| 123 | * |
| 124 | */ |
| 125 | native rsu_get_user_mvp(index) |
| 126 | |
| 127 | /** |
| 128 | * Returns client's rounds won. |
| 129 | * |
| 130 | * @param index Client index. |
| 131 | * @return Client's rounds won. |
| 132 | * |
| 133 | */ |
| 134 | native rsu_get_user_rounds_won(index) |
| 135 | |
| 136 | /** |
| 137 | * Returns client's amount of bombs planted. |
| 138 | * |
| 139 | * @param index Client index. |
| 140 | * @return Client's bombs planted amount. |
| 141 | * |
| 142 | */ |
| 143 | native rsu_get_user_bombs_planted(index) |
| 144 | |
| 145 | /** |
| 146 | * Returns client's amount of bombs exploded. |
| 147 | * |
| 148 | * @param index Client index. |
| 149 | * @return Client's bombs exploded amount. |
| 150 | * |
| 151 | */ |
| 152 | native rsu_get_user_bombs_exploded(index) |
| 153 | |
| 154 | /** |
| 155 | * Returns client's amount of bombs defused. |
| 156 | * |
| 157 | * @param index Client index. |
| 158 | * @return Client's bombs defused amount. |
| 159 | * |
| 160 | */ |
| 161 | native rsu_get_user_bombs_defused(index) |
| 162 | |
| 163 | /** |
| 164 | * Returns client's total played time in seconds. |
| 165 | * |
| 166 | * @param index Client index. |
| 167 | * @return Client's played time in seconds. |
| 168 | * |
| 169 | */ |
| 170 | native rsu_get_user_played_time(index) |
| 171 | |
| 172 | /** |
| 173 | * Returns rank's name by a specific level. |
| 174 | * |
| 175 | * @param level Level number. |
| 176 | * @param buffer String buffer to store the name. |
| 177 | * @param len Maximum buffer lenght. |
| 178 | * @noreturn |
| 179 | * |
| 180 | */ |
| 181 | native rsu_get_rank_by_level(level, buffer[], len) |
| 182 | |
| 183 | /** |
| 184 | * Returns client's current rank name. |
| 185 | * |
| 186 | * @param index Client index. |
| 187 | * @param buffer String buffer to store the name. |
| 188 | * @param len Maximum buffer lenght. |
| 189 | * @noreturn |
| 190 | * |
| 191 | */ |
| 192 | native rsu_get_user_rank(index, buffer[], len) |
| 193 | |
| 194 | /** |
| 195 | * Returns client's current skill name. |
| 196 | * |
| 197 | * @param index Client index. |
| 198 | * @param buffer String buffer to store the name. |
| 199 | * @param len Maximum buffer lenght. |
| 200 | * @noreturn |
| 201 | * |
| 202 | */ |
| 203 | native rsu_get_user_skill(index, buffer[], len) |
| 204 | |
| 205 | /** |
| 206 | * Returns the client's skill range. |
| 207 | * |
| 208 | * @param index Client's index. |
| 209 | * @return Client's skill range. |
| 210 | * |
| 211 | */ |
| 212 | native rsu_get_user_skill_range(index) |
| 213 | |
| 214 | /** |
| 215 | * Returns the client's server rank. |
| 216 | * |
| 217 | * @param index Client's index. |
| 218 | * @return Client's server rank. |
| 219 | * |
| 220 | */ |
| 221 | native rsu_get_user_server_rank(index) |
| 222 | |
| 223 | /** |
| 224 | * Returns the maximum amount of levels. |
| 225 | * |
| 226 | * @return Maximum amount of levels. |
| 227 | * |
| 228 | */ |
| 229 | native rsu_get_max_levels() |
| 230 | |
| 231 | /** |
| 232 | * Returns the maximum amount of server ranks. |
| 233 | * |
| 234 | * @return Maximum amount of server ranks. |
| 235 | * |
| 236 | */ |
| 237 | native rsu_get_max_server_ranks() |
| 238 | |
| 239 | /** |
| 240 | * Gives specific amount of XP to the client. |
| 241 | * |
| 242 | * @param index Client index. |
| 243 | * @param amount XP amount. |
| 244 | * @return Amount of XP. |
| 245 | * |
| 246 | */ |
| 247 | native rsu_give_user_xp(index, amount = 0) |
| 248 | |
| 249 | /** |
| 250 | * Gives specific amount of XP to the specific team. |
| 251 | * |
| 252 | * @param team 0 - None, 1 - Terrorists, 2 - CTs, 3 - Spectators |
| 253 | * @param amount XP amount. |
| 254 | * @return Amount of XP. |
| 255 | * |
| 256 | */ |
| 257 | native rsu_give_team_xp(team = 0, amount = 0) |
| 258 | |
| 259 | /** |
| 260 | * Checks if client's stats are loaded. |
| 261 | * |
| 262 | * @param index Client index. |
| 263 | * @return True if client's stats are loaded, false otherwise. |
| 264 | * |
| 265 | */ |
| 266 | native rsu_is_level_loaded(index) |
| 267 | |
| 268 | /** |
| 269 | * Resets all stats from MySQL table. |
| 270 | * |
| 271 | * @noreturn |
| 272 | * |
| 273 | */ |
| 274 | native rsu_reset_stats() |