crxranks_const.inc
VIP Сървъри
Всички сървъри
#if defined _crxranks_const_included
#endinput
#endif
#define _crxranks_const_included
/**
* Plugin-specific return codes
*/
#define CRXRANKS_CONTINUE 900300
#define CRXRANKS_HANDLED 900301
/**
* Maximum buffer length for HUD information
*/
const CRXRANKS_MAX_HUDINFO_LENGTH = 192
/**
* Maximum buffer length for player information
*/
const CRXRANKS_MAX_PLAYER_INFO_LENGTH = 35
/**
* Maximum buffer length for a rank
*/
const CRXRANKS_MAX_RANK_LENGTH = 32
/**
* Maximum buffer length for a XP reward
*/
const CRXRANKS_MAX_XP_REWARD_LENGTH = 32
/**
* Maximum buffer length for XP as a string
*/
const CRXRANKS_MAX_XP_LENGTH = 11
/**
* Save types for crxranks_get_save_type()
*/
enum CRXRanks_SaveTypes
{
CRXRANKS_ST_NICKNAME = 0,
CRXRANKS_ST_IP,
CRXRANKS_ST_STEAMID
}
/**
* Types of sources when receiving XP
*/
enum CRXRanks_XPSources
{
CRXRANKS_XPS_PLUGIN = 0,
CRXRANKS_XPS_REWARD,
CRXRANKS_XPS_ADMIN
}
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <crxranks_const>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в
scripting/include/3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe