Иконка ресурса

reapi [RE] Talisman 1.4

Нет прав для скачивания
Установка
  1. Скомпилируйте плагин ( )
  2. Скопируйте скомпилированный файл talisman.amxx в директорию: amxmodx/plugins/
  3. Пропишите talisman.amxx в файле /amxmodx/configs/plugins.ini
Настройки
// From which round to issue the talisman
// -
// Default: "3"
talisman_round "3"

// Minimum number of players to include
// -
// Default: "2"
talisman_min_player "2"
// Highlight a player if he has a talisman
// -
// Default: "1"
talisman_player_glow "1"

// Color Glow CT (red shade)
// -
// Default: "0"
talisman_player_ct_glow_color_r "0"

// Color Glow CT (green shade)
// -
// Default: "255"
talisman_player_ct_glow_color_g "255"

// Color Glow CT (blue shade)
// -
// Default: "0"
talisman_player_ct_glow_color_b "0"

// Color Glow TT (red shade)
// -
// Default: "0"
talisman_player_tt_glow_color_r "0"

// Color Glow TT (green shade)
// -
// Default: "255"
talisman_player_tt_glow_color_g "255"

// Color Glow TT (blue shade)
// -
// Default: "0"
talisman_player_tt_glow_color_b "0"

// The thickness of the glow effect
// -
// Default: "25"
talisman_thickness_glow "25"
// Darken the screen when regenerating health
// -
// Default: "1"
talisman_screenfede "1"

// screen darkening color (red shade)
// -
// Default: "0"
talisman_screenfede_color_r "0"

// screen darkening color (green shade)
// -
// Default: "255"
talisman_screenfede_color_g "255"

// screen darkening color (blue shade)
// -
// Default: "0"
talisman_screenfede_color_b "0"

// How much will restore health
// -
// Default: "5.0"
talisman_give_health "5.0"

// After how many seconds will health be added
// -
// Default: "3.0"
talisman_reg_interval "3.0"

// Maximum amount of health during regeneration
// -
// Default: "100.0"
talisman_max_reg_hp "100.0"
API
Код:
/**
    The function is called when the player has received a talisman
*/
forward give_talisman();


/**
    The function is called before the talisman is raised
    @param iPlayer  Player index
*/
forward rise_talisman_pre(iPlayer);

/**
    The function is called after lifting the talisman
    @param iPlayer  Player index
*/
forward rise_talisman_post(iPlayer);

/**
    The function is called before the talisman is lost
*/
forward drop_talisman_pre();

/**
    The function is called after the loss of the talisman
*/
forward drop_talisman_post(iPlayer);

// Checks who has the talisman
native player_is_talisman();

// Checks for the presence of a talisman in the player
native is_talisman();
Сверху Снизу