cs_maxspeed_api.inc
Keep this always at the bottom of this file
VIP Сървъри
Всички сървъри
#if defined _cs_maxspeed_api_included
#endinput
#endif
#define _cs_maxspeed_api_included
#include <cs_maxspeed_api_const>
#if AMXX_VERSION_NUM >= 175
#pragma reqlib cs_maxspeed_api
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib cs_maxspeed_api
#endif
#else
#pragma library cs_maxspeed_api
#endif
/**
* Sets a player's maxspeed.
*
* @param id Player index.
* @param maxspeed Custom maxspeed.
* @param multiplier Treat maxspeed as multiplier instead of absolute value.
*/
native cs_set_player_maxspeed(id, Float:maxspeed, multiplier = false)
/**
* Resets a player's maxspeed to default CS maxspeed.
*
* @param id Player index.
*/
native cs_reset_player_maxspeed(id)
// Keep this always at the bottom of this file
#include <cs_maxspeed_api_stocks>
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <cs_maxspeed_api>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в
scripting/include/3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe