HeartShells 0.0.1 не работает

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
93
Реакции
1
Помог
3 раз(а)
Ошибка
нет ошибки. гильзы не заменяются
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5232 (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: Oct 14 2018 08:47:55
Built from: https://github.com/alliedmodders/amxmodx/commit/be52641
Build ID: 5232:be52641
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.668-dev
Build date: 09:47:42 Sep 29 2018 (1631)
Build from: https://github.com/dreamstalker/rehlds/commit/89be216
ReGamedll
ReGameDLL version: 5.7.0.319-dev
Build date: 10:52:38 Dec 23 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/9d89a34
Версия 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] Reunion RUN - reunion.so v0.1.0.89 ini Start Never
[ 2] AMX Mod X RUN - amxmodx.so v1.9.0.5232 ini ANY
[ 3] VoiceTranscoder RUN - vtc.so v2017RC3 ini ANY
[ 4] Rechecker RUN - rechecker.so v2.5 ini ANY
[ 5] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 6] ReSRDetector RUN - resrdetector.so v0.1.0 ini ANY
[ 7] ReAPI RUN - reapi_amxx_i386.so v5.6.0.160-dev pl2 ANY Never
[ 8] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5232 pl2 ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5232 pl2 ANY
[10] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5219 pl2 ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5219 pl2 ANY
[12] Engine RUN - engine_amxx_i386.so v1.9.0.5232 pl2 ANY
[13] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5232 pl2 ANY
[14] Fun RUN - fun_amxx_i386.so v1.9.0.5232 pl2 ANY
[15] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
15 plugins, 15 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] [183] Cvar on Map 18.05.29 SKAJIbnEJIb cvar_on_map.amx running
[ 2] FreshBans 1.3.7b kanagava fresh_bans.amxx running
[ 3] Stop SpamBots 0.1 mx?! stop_spambots.a running
[ 4] Heard Shells 0.0.1 Vaqtincha HeartShells.amx running
[ 5] Advanced Gag 1.4.2 neygomon amx_gag.amxx running
[ 6] Admin Load 3.10.0 F@nt0M adminload.amxx running
[ 7] Admin Commands 1.8.2 AMXX Dev Team base/admincmd.a running
[ 8] Commands Menu 1.8.2 AMXX Dev Team base/cmdmenu.am running
[ 9] Players Menu 1.8.2 Leo_[BH] & AMXX plmenu.amxx running
[ 10] Maps Menu 1.8.2 AMXX Dev Team base/mapsmenu.a running
[ 11] Admin Chat 1.8.2 AMXX Dev Team base/adminchat. running
[ 12] Admin Votes 1.8.2 AMXX Dev Team base/adminvote. running
[ 13] mute menu 1.0 cheap_suit mutemenu.amxx running
[ 14] Check Admin & Vip 2.2 Leo_[BH] check_admin_vip running
[ 15] Status Info 1.1 Leo_[BH] status_me.amxx running
[ 16] Connect users 1.0 maFFyoZZyk liteconnect.amx running
[ 17] Pause Plugins 1.8.2 AMXX Dev Team base/pausecfg.a running
[ 18] Stats Configuration 1.8.2 AMXX Dev Team base/statscfg.a running
[ 19] Restrict Weapons 1.8.2 AMXX Dev Team base/restmenu.a running
[ 20] StatsX (MastaMan Editi 1.9.0.5232 AMXX Dev Team & statsx_shell.am running
[ 21] Autoresponder/Advertis 0.5 MaximusBrood reklama_in_chat running
[ 22] High Ping Kicker 1.6 UFPS.Team hpk.amxx running
[ 23] AFK Kicker cs_get_user 1.0 Leo_[BH] afk_kicker.amxx running
[ 24] AFK Kicker by Leo_[BH] 2.0 Leo_[BH] / Chees afkkicker_leo.a running
[ 25] [183] Map Spawns Edito 17.08.27 iG_os & SKAJIbnE MapSpawnsEditor running
[ 26] ResetScore 1.0 Leo_[BH] resetscore.amxx running
[ 27] AntiFlash FINAL 5.0 Leo_[BH] antiflash5.amxx running
[ 28] Automatic knife duel 0.3x JGHG / Leo_[BH] knf_duel.amxx running
[ 29] [HP] 1.0 Leo_[BH] hp.amxx running
[ 30] Screen Fade [True Flas 1.0 Leo_[BH] screen_fade_fla running
[ 31] STEAM BONUS 2.0 Leo_[BH] steam_bonus.amx running
[ 32] Lite Translit 2.8 neygomon lite_translit.a running
[ 33] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 34] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 35] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_off.amxx running
[ 36] Advanced Kill Assists 0.9 Spection advanced_kill_a running
[ 37] Nice Killer 1.6 Got Milk? / HoHo nice_killer.amx running
[ 38] NO_FITH_TEXT 1.1w perf no_fith_text.am running
[ 39] Team Grenade Trail 1.2 Numb team_grenade_tr running
[ 40] AmxModMenu 1.2 Sn1kO{Dmitriy.T) menufront.amxx running
[ 41] Bomb HUD Timer 0.2 Twe3k bomb_hud_timer. running
[ 42] [ReAPI] Parachute 1.1 ReHLDS Team parachute.amxx running
[ 43] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 44] Top Awards 0.11c Safety1st top_awards.amxx running
[ 45] Team Balance Control 1.3.9 gyxoBka TeamBalanceCont running
[ 46] ScreenMaker 1.1 neygomon screen_maker.am running
[ 47] Unnamed 1.0 Deadly|Darkness dd_domination.a running
[ 48] Accuracy Fix 3.0 Numb accuracy_fix.am running
[ 49] Weapon Model + Sound R 1.3 GHW_Chronic new_weapons.amx running
[ 50] Round End Music 2.3.1 OciXCrom crx_remusic.amx running
[ 51] Block Audio Win 0.0.1 Block Audio Win cwin_block.amxx running
[ 52] [183] VIP RBS 18.12.17BE SKAJIbnEJIb vip_rbs.amxx running
[ 53] [183] Warmup RBS 18.08.06BE SKAJIbnEJIb warmup_rbs.amxx running
[ 54] Spect Bot 1.2 SKAJIbnEJIb & Bo SpectBot.amxx running
[ 55] Mode 2x2 2.5re s1lent mode.amxx running
[ 56] Lite Rank System 1.5 AcE re_lrs_csstats. running
[ 57] Default FOV 0.0.1 ConnorMcLeod fov.amxx running
[ 58] Damager 0.11b Subb98 damager.amxx running
[ 59] Announcer Killstreak 2.1 Jumper & mx?! Announcer_Kills running
[ 60] DHUD_Adverts_Deads 1.3.1 pUzzlik dhud_message_de running
[ 61] Crux Ansata 1.0 DUKKHAZ0R crux_ansata.amx running
[ 62] CT Bomb Cracker 0.0.4 Vaqtincha re_ct_bomb_crac stopped
[ 63] Erotic Bomb 0.4 8dp & Spection erotic_bomb.amx running
[ 64] Map Manager: Core 3.0.0 Mistrick map_manager_cor running
[ 65] Map Manager: Scheduler 0.1.0 Mistrick map_manager_sch running
[ 66] Map Manager: Rtv 0.0.4 Mistrick map_manager_rtv running
[ 67] Map Manager: Nominatio 0.0.8 Mistrick map_manager_nom running
[ 68] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 69] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 70] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 71] unknown unknown unknown mapname_neugomo running
71 plugins, 70 running
Автор плагина
Vaqtincha
Версия плагина
0.0.1
Исходный код
// Copyright 2016 Vaqtincha

//■■■■■■■■■■■■■■■■■■■■■■■ CONFIG START ■■■■■■■■■■■■■■■■■■■■■■■//

#define ACCESS_FLAG ADMIN_ALL // flag 't' by default
#define RANDOM_HEART // or 'team specific'

//■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG END ■■■■■■■■■■■■■■■■■■■■■■■■//

#include <amxmodx>

#define SetFlag(%1,%2) (%1 |= (1 << (%2 & 31)))
#define CheckFlag(%1,%2) (%1 & (1 << (%2 & 31)))
#define ClearFlag(%1,%2) (%1 &= ~(1 << (%2 & 31)))

#if defined RANDOM_HEART
new g_iModelIds
#else
new g_iModeltt, g_iModelct
#endif
new g_bAccess

public plugin_precache()
{
#if defined RANDOM_HEART
g_iModelIds = precache_model("models/heart/hearts.mdl")
#else
g_iModeltt = precache_model("models/heart/red.mdl")
g_iModelct = precache_model("models/heart/blue.mdl")
#endif
}

public plugin_init()
{
register_plugin("Heard Shells", "0.0.1", "Vaqtincha")
register_message(get_user_msgid("Brass"), "Message_Brass")
}

public client_putinserver(id)
{
get_user_flags(id) & ACCESS_FLAG ? SetFlag(g_bAccess, id) : ClearFlag(g_bAccess, id)
}

public Message_Brass(iMesgId, iMsgType, iMsgEnt)
{
const Brass_ModelIndex = 12
// const Brass_Life = 14
const Brass_PlayerID = 15

new id = get_msg_arg_int(Brass_PlayerID)
if(CheckFlag(g_bAccess, id))
{
#if defined RANDOM_HEART
set_msg_arg_int(Brass_ModelIndex, ARG_SHORT, g_iModelIds)
#else
set_msg_arg_int(Brass_ModelIndex, ARG_SHORT, get_user_team(id) == 1 ? g_iModeltt : g_iModelct)
#endif
// set_msg_arg_int(Brass_Life, ARG_BYTE, 66) // not work?
}
}
/
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
491
Реакции
89
Помог
5 раз(а)
Вам же известно, что гильзы меняются на таких оружиях, как: AWP, Scout and other?
 
Сообщения
2,491
Реакции
2,794
Помог
61 раз(а)
Код:
// Copyright 2016 Vaqtincha

//■■■■■■■■■■■■■■■■■■■■■■■ CONFIG START ■■■■■■■■■■■■■■■■■■■■■■■//
#define RANDOM_HEART                    // or 'team specific'

//■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG END ■■■■■■■■■■■■■■■■■■■■■■■■//

#include <amxmodx>

#if defined RANDOM_HEART
new g_iModelIds
#else
new g_iModeltt, g_iModelct
#endif

public plugin_precache()
{
    #if defined RANDOM_HEART
    g_iModelIds = precache_model("models/heart/hearts.mdl")
    #else
    g_iModeltt = precache_model("models/heart/red.mdl")
    g_iModelct = precache_model("models/heart/blue.mdl")
    #endif
}

public plugin_init()
{
    register_plugin("Heard Shells", "0.0.1", "Vaqtincha")
    register_message(get_user_msgid("Brass"), "Message_Brass")
}

public Message_Brass(iMesgId, iMsgType, iMsgEnt)
{
    const Brass_ModelIndex = 12
    #if defined RANDOM_HEART
    set_msg_arg_int(Brass_ModelIndex, ARG_SHORT, g_iModelIds)
    #else
    set_msg_arg_int(Brass_ModelIndex, ARG_SHORT, get_user_team(id) == 1 ? g_iModeltt : g_iModelct)
    #endif
}
 
Сообщения
93
Реакции
1
Помог
3 раз(а)
fantom, спасибо, проверю - отпишу
23 Янв 2019
fantom, работает, еще раз спасибо
 
Сообщения
2,491
Реакции
2,794
Помог
61 раз(а)
AlexButs, причина в моем админ лоадере. Он не успевает прогрузить админкы до того момента как плагин пробует закэшировать флагы.
 
Статус
В этой теме нельзя размещать новые ответы.

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

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