Проблема с отчётом бомбы в плагине.

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
59
Реакции
-14
Ошибка
Ошибок нет...
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5294
Билд
ReHLDS version: 3.13.0.788-dev
ReGamedll
ReGameDLL version: 5.22.0.593-dev
Версия Metamod
Metamod-r v1.3.0.138
Список метамодулей
[ 1] SafeNameAndChat   RUN   -    SafeNameAndChat.so          v1.2 Beta 3      ini  ANY   ANY  
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.92d ini Start Never
[ 3] ProcessCmds RUN - processcmds_mm_i386.so v1.2.0 ini Start Never
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 6] Print Center Fix RUN - printcenterfix_mm_i386.so v2.0.1 ini ANY ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 8] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 9] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[10] ReSemiclip RUN - resemiclip_mm_i386.so v2.4.3 ini Chlvl ANY
[11] HitBox Fix RUN - hitbox_fix_mm_i386.so v1.1.5 ini Start ANY
[12] AuthEmu RUN - authemu_amxx_i386.so v5.2.12.431 pl5 ANY Never
[13] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl5 ANY Never
l [14] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[15] ReAPI RUN - reapi_amxx_i386.so v5.22.0.254-dev pl5 ANY Never
[16] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[17] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[18] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[19] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[20] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[21] GeoIP+ RUN - geoip_amxx_i386.so v1.3.0 pl5 ANY ANY
Список плагинов
[  1] GameCMS_API             5.6.3       zhorzh78          gamecms_api_5.6  running  
[ 2] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 3] Unreal Cheater Cry 1.0.11 Karaulov unreal_cheater_ running
[ 4] [190] Cvar On Map 20.06.06 SKAJIbnEJIb cvar_on_map.amx running
[ 5] [190] AMXBans RBS 22.12.08BE SKAJIbnEJIb & La amxbans_rbs.amx running
[ 6] [190] AdminChat RBS 22.11.15 SKAJIbnEJIb adminchat_rbs.a running
[ 7] [190] Ultimate Informe 21.03.23 SKAJIbnEJIb ultimate_inform running
[ 8] [190] Army Ranks Ultim 20.06.06 SKAJIbnEJIb army_ranks_ulti running
[ 9] Menus Front-End 20.06.06 SKAJIbnEJIb & AM amxmodmenu_rbs. running
[ 10] [190] AfkKicker RBS 22.11.15 SKAJIbnEJIb afkkicker_rbs.a running
[ 11] [190] Chat Controller 20.06.06 SKAJIbnEJIb chat_controller running
[ 12] [190] Ad From Server 20.06.06 SKAJIbnEJIb ad_from_server. running
[ 13] [190] CsStats Editor 20.06.06 SKAJIbnEJIb csstats_editor. running
[ 14] [190] CsStats MySQL 22.11.15 SKAJIbnEJIb csstats_mysql.a running
l [ 15] [190] PTB RBS 20.06.06 SKAJIbnEJIb ptb_rbs.amxx running
[ 16] [190] Damager RBS 20.06.06 SKAJIbnEJIb damager_rbs.amx running
[ 17] [190] Parachute RBS 22.12.07BE SKAJIbnEJIb & KR parachute_rbs.a running
[ 18] [190] Screen Player 22.12.07BE SKAJIbnEJIb screen_player.a running
[ 19] [190] Skill ELO 22.11.15 SKAJIbnEJIb skill_elo.amxx running
[ 20] [190] Top Award RBS 20.06.06 SKAJIbnEJIb topaward_rbs.am running
[ 21] [190] Ultimate Flags 22.11.15 SKAJIbnEJIb ultimate_flags. running
[ 22] [190] WallHack Viewer 20.06.06 SKAJIbnEJIb wallhack_viewer running
[ 23] [190] Snipers RBS 20.06.06 SKAJIbnEJIb snipers_rbs.amx running
[ 24] [190] RestMenu RBS 20.06.06 SKAJIbnEJIb & AM restmenu_rbs.am running
[ 25] [190] SlayLosers RBS 20.06.06 SKAJIbnEJIb & d3 slaylosers_rbs. running
[ 26] [190] Block Reconnect 20.06.06 ShaTalKiN Block_Reconnect running
[ 27] [190] Bets RBS 20.10.24BE SKAJIbnEJIb bets_rbs.amxx running
[ 28] [190] Map Spawns Edito 20.06.06 SKAJIbnEJIb & iG MapSpawnsEditor running
[ 29] [190] MapChooser RBS 20.08.02 SKAJIbnEJIb & UF mapchooser_rbs. running
l [ 30] [190] NextMap 18.09.25 SKAJIbnEJIb & AM nextmap.amxx running
[ 31] [190] TimeLeft 18.09.25 SKAJIbnEJIb & AM timeleft.amxx running
[ 32] [190] Stats Configurat 20.06.06 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 33] [190] StatsX RBS 21.03.23 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 34] [190] DemoRecorder RBS 20.06.06 SKAJIbnEJIb demorecorder_rb running
[ 35] [190] NewYear RBS 22.12.08BE SKAJIbnEJIb newyear_rbs.amx running
[ 36] [190] Stimulation RBS 22.12.08BE SKAJIbnEJIb stimulation_rbs running
[ 37] [190] High Ping Kicker 20.06.06 SKAJIbnEJIb hpk_rbs.amxx running
[ 38] [190] No Team Flash 20.06.06 SKAJIbnEJIb NoTeamFlash.amx running
[ 39] [190] ESP RBS 20.06.06 SKAJIbnEJIb & Ko esp_rbs.amxx running
[ 40] [190] CsStats ResetSco 20.06.06 SKAJIbnEJIb csstats_resetsc running
[ 41] [190] Chat RBS 22.12.07BE SKAJIbnEJIb chat_rbs.amxx running
[ 42] Fake Ping For Bots 1.0 fl0wer fake_ping_for_b running
[ 43] [ReAPI] Healthnade 0.0.13f DEV-CS.RU Commun reapi_healthnad running
[ 44] AuthEmu API 1.0 Dev-MS Team authemu.amxx running
l [ 45] Top Bomber 0.2.0 Albertio top_bomber.amxx running
[ 46] Frags Counter 1.0 CHEL74 frags_counter.a running
[ 47] recoil_manager 1.0.0 fl0wer recoil_manager. running
[ 48] CheckSteamID 1.0 ApXuTekToR CheckSteamID.am running
[ 49] [ReAPI] Hint blocker 0.1.0 F@tn0M reapi_hint_bloc running
[ 50] Rechecker Log 0.1 F@nt0M rc_log.amxx running
[ 51] [ReAPI] Grenade Trile 1.2 Base Code: Fatih reapi_grenade_t running
[ 52] C4 Timer 0.1 Lightman bombtimer.amxx running
[ 53] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 54] Models Replacement 0.0.2+fix ConnorMcLeod | V models_replacem running
[ 55] Slots Reservation 1.9.0.5294 AMXX Dev Team adminslots.amxx running
[ 56] Multi-Lingual System 1.9.0.5294 AMXX Dev Team multilingual.am running
[ 57] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 58] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 59] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
l [ 60] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
Автор плагина
Lightman
Версия плагина
0.1
Исходный код
#include <amxmodx>
#include <engine>

#define MAX_SPRITES 2

#define PLUGIN "C4 Timer"
#define VERSION "0.1"
#define AUTHOR "Lightman"

new const g_timersprite[MAX_SPRITES][] = { "bombticking", "bombticking1"}

new g_c4timer

new g_msg_showtimer
new g_msg_roundtime
new g_msg_scenario

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_logevent("Logevent_Planted", 3, "2=Planted_The_Bomb");

g_msg_showtimer = get_user_msgid("ShowTimer");
g_msg_roundtime = get_user_msgid("RoundTime");
g_msg_scenario = get_user_msgid("Scenario");

g_c4timer = get_pcvar_num(get_cvar_pointer("mp_c4timer"));

if(find_ent_by_class(-1, "func_bomb_target") || find_ent_by_class(-1, "info_bomb_target"))
{return;} else {pause("ad");}
}

public Logevent_Planted()
{
new iPlayers[32], iNum, i;
get_players(iPlayers, iNum, "ach");
for(i=0; i < iNum; i++)
{
Bomb_Informer(iPlayers[i]);
}
}

stock Bomb_Informer(id)
{
message_begin(MSG_ONE_UNRELIABLE, g_msg_showtimer, _, id);
message_end();

message_begin(MSG_ONE_UNRELIABLE, g_msg_roundtime, _, id);
write_short(g_c4timer);
message_end();

message_begin(MSG_ONE_UNRELIABLE, g_msg_scenario, _, id);
write_byte(1);
write_string(g_timersprite[MAX_SPRITES - 1]);
write_byte(150);
write_short(20);
message_end();
}
Здравствуйте. Столкнулся с такой проблемой. при установке c4 стоит в server.cfg mp_c4timer 35 сек что бы разминировать её. но в самом плагине идёт отчёт от 45 сек. подскажите или может кто сможет исправить на 35 сек!)))
1ACxA4BlRWM.jpg
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
313
Реакции
21
Помог
7 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
Osenniy Shelest, а при написании в консоль сервера mp_c4timer, сервер какое значение квара выдаёт?
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Osenniy Shelest, кешировать значение квара нужно в нужное время, попробуй так
Код:
#include <amxmodx>
#include <engine>

#define MAX_SPRITES    2

#define PLUGIN    "C4 Timer"
#define VERSION    "0.1"
#define AUTHOR     "Lightman"

new const g_timersprite[MAX_SPRITES][] = { "bombticking", "bombticking1"}

new g_c4timer

new g_msg_showtimer
new g_msg_roundtime
new g_msg_scenario

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR);
    register_logevent("Logevent_Planted", 3, "2=Planted_The_Bomb");
  
    g_msg_showtimer    = get_user_msgid("ShowTimer");
    g_msg_roundtime    = get_user_msgid("RoundTime");
    g_msg_scenario    = get_user_msgid("Scenario");

    if(find_ent_by_class(-1, "func_bomb_target") || find_ent_by_class(-1, "info_bomb_target"))
    {return;} else {pause("ad");}
}

public plugin_cfg()
    g_c4timer = get_pcvar_num(get_cvar_pointer("mp_c4timer"));

public Logevent_Planted()
{
    new iPlayers[32], iNum, i;
    get_players(iPlayers, iNum, "ach");
    for(i=0; i < iNum; i++)
    {
        Bomb_Informer(iPlayers[i]);
    }
}
  
stock Bomb_Informer(id)
{
    message_begin(MSG_ONE_UNRELIABLE, g_msg_showtimer, _, id);
    message_end();

    message_begin(MSG_ONE_UNRELIABLE, g_msg_roundtime, _, id);
    write_short(g_c4timer);
    message_end();
  
    message_begin(MSG_ONE_UNRELIABLE, g_msg_scenario, _, id);
    write_byte(1);
    write_string(g_timersprite[MAX_SPRITES - 1]);
    write_byte(150);
    write_short(20);
    message_end();
}
 
Последнее редактирование:
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
для чего 35 ставить? Стандартный геймплей кс 45 же подразумевает
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Пропиши через консоль квар и смени карту
 
Статус
В этой теме нельзя размещать новые ответы.

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

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