[BUG] 2 C4's

Сообщения
213
Реакции
71
Помог
2 раз(а)
Ошибка
In Description
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5249 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun 19 2019 13:31:53
Built from: https://github.com/alliedmodders/amxmodx/commit/6cecb34
Build ID: 5249:6cecb34
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.695-dev
Build date: 15:54:29 Apr 6 2020 (2186)
Build from: https://github.com/dreamstalker/rehlds/commit/7513e71
ReGamedll
ReGameDLL version: 5.15.0.458-dev
Build date: 11:28:46 Apr 2 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/5bbba22
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.135 ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5249 ini Start ANY
[ 4] Revoice RUN - revoice_mm_i386.so v0.1.0.34 ini Start Never
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 6] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 7] Fun RUN - fun_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[ 8] Engine RUN - engine_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[10] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[11] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[12] CSX RUN - csx_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl3 ANY Never
[15] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl3 ANY ANY
[16] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl3 ANY Never
[17] MySQL RUN - mysql_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
17 plugins, 17 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] My Ban System 1.1.2 K@[L]@uz kalauz_ban_syst running
[ 2] Admin Commands Log 1.2 w0w admin_commands_ running
[ 3] ServerNamePlay 1.8.2 Rock Rocky PSL_hostname.am running
[ 4] Scan_Say 31/08/2019 General Memer scan_say.amxx running
[ 5] Task Scheduler 0.2 JustinHoMi task_scheduler. running
[ 6] Mode 2x2 2.5re-19-0 s1lent PSL_mode_edit.a running
[ 7] Online Logger 06.04.18 mx?! PSL_online_logg running
[ 8] Free Look Crosshair Fi 1.3 Numb free_look_cross running
[ 9] Admin Base 1.9.0.5249 AMXX Dev Team admin.amxx running
[ 10] Admin Commands 1.9.0.5249 AMXX Dev Team admincmd.amxx running
[ 11] Admin Help 1.9.0.5249 AMXX Dev Team adminhelp.amxx running
[ 12] Multi-Lingual System 1.9.0.5249 AMXX Dev Team multilingual.am running
[ 13] Menus Front-End 1.9.0.5249 AMXX Dev Team menufront.amxx running
[ 14] Commands Menu 1.9.0.5249 AMXX Dev Team cmdmenu.amxx running
[ 15] New KickMenu 2.0 Flash kickmenu.amxx running
[ 16] Players Menu 1.9.0.5249 AMXX Dev Team plmenu.amxx running
[ 17] Maps Menu 1.9.0.5249 AMXX Dev Team mapsmenu.amxx running
[ 18] Plugin Menu 1.9.0.5249 AMXX Dev Team pluginmenu.amxx running
[ 19] Chat Manager 1.1.1-11 Mistrick PSL_GREEN_chatm running
[ 20] Chat Manager: Addon 0.0.4-70 Mistrick PSL_chatmanager running
[ 21] Anti Flood 1.9.0.5249 AMXX Dev Team antiflood.amxx running
[ 22] Admin Votes 1.9.0.5249 AMXX Dev Team adminvote.amxx running
[ 23] NextMap 1.9.0.5249 AMXX Dev Team nextmap.amxx running
[ 24] Roundsleft 0.2 JGHG roundsleft_nosp running
[ 25] Stats Configuration 1.9.0.5249 AMXX Dev Team statscfg.amxx running
[ 26] Restrict Weapons 1.9.0.5249 AMXX Dev Team restmenu.amxx running
[ 27] StatsX 1.9.0.5249 AMXX Dev Team statsx.amxx running
[ 28] CS Misc. Stats 1.9.0.5249 AMXX Dev Team miscstats.amxx running
[ 29] CS Stats Logging 1.9.0.5249 AMXX Dev Team stats_logging.a running
[ 30] Accuracy Fix 3.0 Numb accuracy_fix.am running
[ 31] [PSL] Admin Color Chat 1.0 Edit By Alber PSL_admin_color running
[ 32] Admin Chat 1.9.0.5249 AMXX Dev Team adminchat.amxx running
[ 33] Team Balancer 1.8b3 Ptahhotep ptb.amxx running
[ 34] Block IP Messages 1.0 Alpha Alik Inline Asla PSL_BlockIpInNi running
[ 35] Admin Spectator ESP 1.3 KoST admin_spec_esp. running
[ 36] FragCounter 1.01 Scarzzurs fragcounter.amx running
[ 37] KGB Bots 2.3 OvidiuS & Desika kgbbots.amxx running
[ 38] Steamers Info 1.0 K@[L]@uz steamers_info.a running
[ 39] Map Spawns Editor 1.0.16 iG_os Map_Spawns_Edit running
[ 40] Reset Score 0.0.2f wopox1337 PSL_ResetScore. running
[ 41] Fast Sniper Switch 1.3 Numb fast_sniper_swi running
[ 42] Spec Money Save 0.2 F@nt0M spec_money_save running
[ 43] AMX Slay Losers 1.1 [email protected] slaylosers.amxx running
[ 44] Autoresponder/Advertis 0.5 MaximusBrood ad_manager5.amx running
[ 45] Auto Join on Connect 0.1 VEN auto_join_on_co running
[ 46] Ping Faker 1.5a MeRcyLeZZ pingfaker.amxx running
[ 47] Server BETS 1.0 Mi-Ki PSL_bets.amxx running
[ 48] c4 timer 1.1 cheap_suit c4timer.amxx running
[ 49] [PSL] Info Rounds By A 1.0 K@[L]@uz PSL_inforounds. running
[ 50] Descriptive 'Fire in t 0.1 VEN colored_radio.a running
[ 51] WalkGuard 1.3.2 mogel walkguard.amxx running
[ 52] VIP Eng Version 3.0 Dunno PSL_VIP_FREE_WO running
[ 53] AMX Client Exec 0.03 v3x amx_exec.amxx running
[ 54] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 55] AMXX Gag 1.5.0 xPaw & Exolent amx_gag.amxx running
[ 56] Boost Server 1.0 K@[L]@UZ boost_server.am running
[ 57] Invisible Spectator 0.2 ConnorMcLeod PSL_Invis_Spec. running
[ 58] unknown unknown unknown pslgamename.amx running
[ 59] [ReAPI] No Team Flash 0.0.3 Vaqtincha no_team_flash.a running
[ 60] ReAimDetector API 0.2.1 ReHLDS Team reaimdetector.a running
[ 61] Permanent message 1.1 He3aBuCuM permanent_messa running
[ 62] Played Time 1.4 Alka > Edit By A PSL_played_time running
[ 63] Anti sv_password Chang 1.0 BesT autopassremover running
[ 64] Block Advertising 1.3 Alka block_advertisi running
[ 65] Block IP 1.0 bad_boy Anti_IP_With_Sp running
[ 66] xREDIRECT 1.0.3.3 x0R xredirect.amxx running
66 plugins, 66 running
2 C4's !!

Earlier I reported this bug some where but didn't have enough evidence to prove it but now I have enough evidence to prove it.



Last Time when I reported it:



Last Reported Thread:
https://dev-cs.ru/threads/8465/
 
Последнее редактирование:
  • wow
Реакции: Ayk
Сообщения
213
Реакции
71
Помог
2 раз(а)
The only, amxx plugin, which can make this problem is afk_control.amxx as Angerfist said, while rest have no connection with C4 till per my knowledge, even in that
Код:
afk_transfer_bomb is "0"
afk_control is Approved Plugin on Dev-cs.ru, I don't have idea, what could be problem, sharing code.

Second I got this bug after Regame introduced this feature:

Код:
// Player that have never moved since they last move
// will drop the bomb after this amount of time. (in seconds).
// 0 - disabled
// >5.0 - delay to drop
//
// Default value: "0"
mp_afk_bomb_drop_time "15"
Last Time I reported it, I was using:
ReGameDLL version: 5.11.0.420-dev+m

Код:
#include <amxmodx>
#include <amxmisc>
#include <reapi>
#include <xs>

#define CHAT_PREFIX "^1[^4AFKControl^1]"

enum _:cvars {
    MAX_AFK_WARNS,
    MAX_SPEC_WARNS,
    Float:TIME_AFK_CHECK,
    MIN_SPEC_PLAYERS_CHECK,
    IMMUNITY_FLAGS,
    TRANSFER_BOMB
}
enum coords {
    Float:ORIGIN[3],
    Float:ANGLES[3]
}
enum warns {
    AFK,
    SPEC
}

new Float:g_fCoords[MAX_PLAYERS + 1][coords];
new g_iPlayerWarn[MAX_PLAYERS + 1][warns];
new bool:g_IsBot[MAX_PLAYERS + 1];

new g_Cvar[cvars];

public plugin_init()
{
    register_plugin("AFK Control ReNew", "1.2(a)", "neygomon");
    register_dictionary("afk_control.txt");

    RegisterHookChain(RG_CSGameRules_PlayerSpawn, "CSGameRules_PlayerSpawn_Post", true);
    RegisterHookChain(RG_CBasePlayer_Killed, "CBasePlayer_Killed_Post", true);

    bind_pcvar_num(
        create_cvar(
            "afk_max_afk_warns",
            "3",
            .description = fmt("%l", "DESC_MAX_AFK_WARNS"),
            .has_min = true,
            .min_val = 1.0
        ),
        g_Cvar[MAX_AFK_WARNS]
    );
    bind_pcvar_num(
        create_cvar(
            "afk_max_spec_warns",
            "2",
            .description = fmt("%l", "DESC_MAX_SPEC_WARNS"),
            .has_min = true,
            .min_val = 1.0
        ),
        g_Cvar[MAX_SPEC_WARNS]
    );
    bind_pcvar_num(
        create_cvar(
            "afk_min_spec_players",
            "31",
            .description = fmt("%l", "DESC_MIN_SPEC_PLRS")
        ),
        g_Cvar[MIN_SPEC_PLAYERS_CHECK]
    );
    bind_pcvar_num(
        create_cvar(
            "afk_transfer_bomb",
            "0",
            .description = fmt("%l", "DESC_TRANSFER_BOMB")
        ),
        g_Cvar[TRANSFER_BOMB]
    );
    bind_pcvar_float(
        create_cvar(
            "afk_time_afk_check",
            "15.0",
            .description = fmt("%l", "DESC_TIME_AFK_CHECK"),
            .has_min = true,
            .min_val = 5.0
        ),
        g_Cvar[TIME_AFK_CHECK]
    );

    new pCvar1 = create_cvar(
        "afk_time_spec_check",
        "15.0",
        .description = fmt("%l", "DESC_TIME_SPEC_CHECK"),
        .has_min = true,
        .min_val = 10.0
    )

    new pCvar2 = create_cvar(
        "afk_immunity_flags",
        "r",
        .description = fmt("%l", "DESC_IMMUNITY_FLAGS")
    );

    AutoExecConfig();
    hook_cvar_change(pCvar2, "hook__cvar_change");
    new szFlags[32]; get_pcvar_string(pCvar2, szFlags, charsmax(szFlags));
    read__flags(szFlags);

    set_task_ex(get_pcvar_float(pCvar1), "check_spectators", .flags = SetTask_Repeat);
}

public client_putinserver(id)
{
    g_IsBot[id] = bool:(is_user_hltv(id) || is_user_bot(id));
    g_iPlayerWarn[id][SPEC] = 0;
}

public client_disconnected(id)
    remove_task(id);

public hook__cvar_change(pCvar, szOldValue[], szNewValue[])
    read__flags(szNewValue);

public CSGameRules_PlayerSpawn_Post(const id)
{
    if(g_IsBot[id]/* || !is_user_alive(id)*/ || get_user_flags(id) & g_Cvar[IMMUNITY_FLAGS])
        return;

    g_iPlayerWarn[id][AFK] = 0;
    get_entvar(id, var_origin, g_fCoords[id][ORIGIN]);
    get_entvar(id, var_angles, g_fCoords[id][ANGLES]);

    remove_task(id);
    set_task_ex(g_Cvar[TIME_AFK_CHECK], "check_afk", id, .flags = SetTask_Repeat);
}

public CBasePlayer_Killed_Post(const id)
    remove_task(id);

public check_afk(id)
{
    if(!is_user_alive(id))
        remove_task(id);
    else
    {
        static Float:fOrigin[3], Float:fAngles[3];
        get_entvar(id, var_origin, fOrigin);
        get_entvar(id, var_angles, fAngles);

        if(!xs_vec_equal(g_fCoords[id][ORIGIN], fOrigin) || !xs_vec_equal(g_fCoords[id][ANGLES], fAngles))
        {
            g_iPlayerWarn[id][AFK] = 0;
            xs_vec_copy(fOrigin, g_fCoords[id][ORIGIN]);
            xs_vec_copy(fAngles, g_fCoords[id][ANGLES]);
        }
        else if(++g_iPlayerWarn[id][AFK] >= g_Cvar[MAX_AFK_WARNS])
        {
            user_kill(id, 1);
            rg_internal_cmd(id, "jointeam", "6");
            rg_send_audio(id, "sound/events/friend_died.wav");
            client_print_color(0, id, "%s %l", CHAT_PREFIX, "MSG_TRANSFER_PLAYER", id);
        }
        else
        {
            if(rg_has_item_by_name(id, "weapon_c4"))
            {
                client_print_color(0, id, "%s %l", CHAT_PREFIX, "MSG_TRANSFER_BOMB", id);
           
                if(g_Cvar[TRANSFER_BOMB])
                    rg_transfer_c4(id, 0);
                else    rg_drop_items_by_slot(id, C4_SLOT);
            }
   
            rg_send_audio(id, "sound/events/tutor_msg.wav");
            client_print_color(id, print_team_default, "%s %l", CHAT_PREFIX, "MSG_PLAYER_CHECK_ACTIVITY", g_iPlayerWarn[id][AFK], g_Cvar[MAX_AFK_WARNS]);
        }
    }
}

public check_spectators()
{
    if(get_playersnum() < g_Cvar[MIN_SPEC_PLAYERS_CHECK])
        return;

    new players[MAX_PLAYERS], pnum;
    get_players_ex(players, pnum, GetPlayers_ExcludeBots|GetPlayers_ExcludeHLTV|GetPlayers_MatchTeam, "SPECTATOR");
    for(new i, id; i < pnum; i++)
    {
        id = players[i];

        if(get_user_flags(id) & g_Cvar[IMMUNITY_FLAGS])
            continue;
   
        switch(get_member(id, m_iTeam))
        {
            case TEAM_UNASSIGNED, TEAM_SPECTATOR:
            {
                if(++g_iPlayerWarn[id][SPEC] >= g_Cvar[MAX_SPEC_WARNS])
                {
                    client_print_color(0, id, "%s %l", CHAT_PREFIX, "MSG_KICK_SPEC_REASON", id);
                    server_cmd("kick #%d %l", get_user_userid(id), "MSG_KICK_PLAYER_REASON");
                }
            }
        }
    }
}

read__flags(str[])
    g_Cvar[IMMUNITY_FLAGS] = read_flags(str);
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу