SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

- Chat Info Gold [v2.1] » AmxModX
| |
 RSS
  • OnLine

    : 3
    : 2
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Valer4 : 13-10-2014, 13:39 : 2672

    - Chat Info Gold [v2.1]

    : Valer4
    : 2.1 http://amxxmodx.ru
    : , .
    - - .
    chat_info.txt. !
      - Chat Info Gold [v2.1]







    :
      /

    : AMX MOD X 1.8.3

    :
    #include<amxmodx>

    newg_delay,
    g_count,
    _hide

    #define _is_hide(%1) (_hide & 1<<%1)
    #define _set_hide(%1) _hide |= 1<<%1
    #define _set_no_hide(%1) _hide &= (~1<<%1)

    public plugin_init() {
    register_plugin("[http://amxxmodx.ru] Chat Info Gold", "2.1", "Valer4")
    g_delay = register_cvar("ci_delay", "13.0")
    register_clcmd("ci", "switch_show")
    register_clcmd("say ci", "switch_show")
    register_clcmd("say /ci", "switch_show")
    register_clcmd("say \ci", "switch_show")
    register_clcmd("say_team ci", "switch_show")
    register_clcmd("say_team /ci", "switch_show")
    register_clcmd("say_team \ci", "switch_show")
    register_dictionary("chat_info.txt")
    static key[8]
    do {
    g_count ++
    formatex(key, 7, "TEXT_%d", g_count)
    }
    while(GetLangTransKey(key) != TransKey_Bad)
    g_count --
    }
    public client_putinserver(id) {
    static buffer[32]
    get_user_info(id, "server", buffer, 31)
    if(buffer[2] == '0')
    _set_hide(id)
    }
    public client_disconnect(id)
    if(_is_hide(id))
    _set_no_hide(id)
    public client_death(killer, victim)
    set_task(get_pcvar_float(g_delay), "message", victim)
    public message(id)
    if(is_user_connected(id))
    if(!is_user_alive(id))
    if(!_is_hide(id)) {
    static key[8]
    formatex(key, 7, "TEXT_%d", random_num(1, g_count))
    client_print_color(id, print_team_red, "%L", id, key)
    }
    public switch_show(id) {
    static buffer[32], len, value[3]
    value = "10"
    get_user_info(id, "server", buffer, 31)
    len = strlen(buffer)
    if(len < 2)
    formatex(buffer[len], 31, value[len])
    if(!_is_hide(id)) {
    _set_hide(id)
    buffer[2] = '0'
    client_cmd(id, "setinfo server %s", buffer)
    client_print_color(id, print_team_red, "%L", id, "CI_OFF")
    return PLUGIN_HANDLED
    }
    else {
    _set_no_hide(id)
    buffer[2] = '1'
    client_cmd(id, "setinfo server %s", buffer)
    client_print_color(id, print_team_red, "%L", id, "CI_ON")
    return PLUGIN_HANDLED
    }
    }
    public client_infochanged(id) {
    static buffer[32]
    get_user_info(id, "server", buffer, 31)
    if(!_is_hide(id)) {
    if(buffer[2] == '0')
    _set_hide(id)
    }
    else
    if(buffer[2] == '1')
    _set_no_hide(id)
    }
    , .
    .
    - Chat Info Gold [v2.1]
    Valer4

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    - #define _set_no_hide(%1) _hide &= (~1<<%1)
    - #define _set_no_hide(%1) _hide &= ~(1<<%1) - .

    , , .