Advanced Rank System

amxx reapi Advanced Rank System 0.0.2

Нет прав для скачивания
Установка
Скомпилируйте плагин.
Скопируйте файлы .spr в каталог: sprites/ars/
Скопируйте файлы .inc в каталог: amxmodx/scripting/include/
Скопируйте скомпилированный файл .amxx в директорию: amxmodx/plugins/
Пропишите .amxx в файле /amxmodx/configs/plugins.ini
Настройки
ars_dead_xp Sets xp value to give/take to/from people when killed by an enemy. (Default: -2)
ars_kill_xp - Sets xp value to give/take to/from people when kills an enemy.
ars_kill_hs_xp - Sets extra xp value to give people when headshot kills.
ars_defuse_xp - Sets xp value to give people when defuses the bomb.
ars_plant_xp - Sets xp value to give people when plants the bomb.
ars_spr_appear_time - Sets the appear time of rank sprite. (Not recommend to set "0" to turn off)
API
forward ars_rank_up(const id); - Called just after client rank up
forward ars_rank_down(const id); - Called just after client rank down

native ars_get_user_xp(const id); - Gets xp value from client
native ars_get_user_rank(const id); - Gets rank value from client
native ars_get_user_rankname(const id, const rankname[], const len); Gets rank name from client

You don't have to deal with numbers when you get rank value. You can use these strings.
e.g. if(ars_get_user_rank(id) == ARS_GOLD_NOVA_I)
Код:
enum {
    ARS_SILVER_I,
    ARS_SILVER_II,
    ARS_SILVER_III,
    ARS_SILVER_IV,
    ARS_SILVER_ELITE,
    ARS_SILVER_ELITE_MASTER,
    ARS_GOLD_NOVA_I,
    ARS_GOLD_NOVA_II,
    ARS_GOLD_NOVA_III,
    ARS_GOLD_NOVA_MASTER,
    ARS_MASTER_GUARDIAN_I,
    ARS_MASTER_GUARDIAN_II,
    ARS_MASTER_GUARDIAN_ELITE,
    ARS_DISTINGUISHED_MASTER_GUARDIAN,
    ARS_LEGENDARY_EAGLE,
    ARS_LEGENDARY_EAGLE_MASTER,
    ARS_SUPREME_MASTER_FIRST_CLASS,
    ARS_THE_GLOBAL_ELITE
}
Сверху Снизу