AMXX-BG.INFO cs_maxspeed_api.inc Raw include

cs_maxspeed_api.inc

Original include source with line numbers.

Back Download .inc
1 #if defined _cs_maxspeed_api_included
2 #endinput
3 #endif
4 #define _cs_maxspeed_api_included
5
6 #include <cs_maxspeed_api_const>
7
8 #if AMXX_VERSION_NUM >= 175
9 #pragma reqlib cs_maxspeed_api
10 #if !defined AMXMODX_NOAUTOLOAD
11 #pragma loadlib cs_maxspeed_api
12 #endif
13 #else
14 #pragma library cs_maxspeed_api
15 #endif
16
17 /**
18 * Sets a player's maxspeed.
19 *
20 * @param id Player index.
21 * @param maxspeed Custom maxspeed.
22 * @param multiplier Treat maxspeed as multiplier instead of absolute value.
23 */
24 native cs_set_player_maxspeed(id, Float:maxspeed, multiplier = false)
25
26 /**
27 * Resets a player's maxspeed to default CS maxspeed.
28 *
29 * @param id Player index.
30 */
31 native cs_reset_player_maxspeed(id)
32
33 // Keep this always at the bottom of this file
34 #include <cs_maxspeed_api_stocks>