Остановка плагина.

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
212
Реакции
-20
Ошибка
client_buy.amxx stopped
ОС
Linux
Amx Mod X
1.9.0
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.692-dev
Build date: 18:58:01 Sep 21 2019 (1988)
Build from: https://github.com/dreamstalker/rehlds/commit/e7232be
ReGamedll
5.12.0.425
Версия Metamod
re 1.3
Список метамодулей
linux addons/reunion/dlls/reunion.so
linux addons/reauthcheck/dlls/reauthcheck.so
linux addons/rechecker/dlls/rechecker.so
linux addons/resemiclip/dlls/resemiclip.so
linux addons/resrdetector/dlls/resrdetector.so
linux addons/whblocker/dlls/whblocker.so
linux addons/localizebugfix/dlls/localizebugfix.so
linux addons/amxmodx/dlls/amxmodx.so
linux addons/vtc/dlls/vtc.so
Список плагинов
[  1] Admin Load              v3.9.3 Dev   F@nt0M            admin_loader_fo  running  
[ 2] FreshBans v1.4.2b kanagava fresh_bans.amxx running
[ 3] Advanced Gag v1.4.2 neygomon amx_gag.amxx running
[ 4] Players Menu v1.9.0.5247 AMXX Dev Team plmenu.amxx running
[ 5] Restrict Weapons v1.9.0.5247 AMXX Dev Team restmenu.amxx running
[ 6] [182] AC Spectator ESP v17.08.09 SKAJIbnEJIb & Ko ac_esp.amxx running
[ 7] AMXMODMENU NEW v1.0 Nisko amxmodmenu_new. running
[ 8] AMX SSBan v2.5_RUS God@Dorin\Fysiks amx_ssban_rus.a running
[ 9] Auto Team Balance v1.1.1 Radius auto_teambalanc running
[ 10] Block Change Name v1.0 DJ_WEST block_change_na running
[ 11] [ReAPI] Block 'Fire in v0.0.1 sergrib block_fire_in_t running
[ 12] C4 CD Voice v1.1 c4timer_by_msk18 c4_cd_voice.amx running
[ 13] CS AFK Manager v1.0.6 (amx Freeman cs_afk_manager. running
[ 14] [ReAPI] Custom Models v1.6.1 neugomon custom_models.a running
[ 15] Damager v2.0 Prayer damager.amxx running
[ 16] [182] Demo Recorder RB v18.02.08 SKAJIbnEJIb demorecorder_rb running
[ 17] Mode 2x2 v2.5re s1lent mode_2x2.amxx running
[ 18] Auto-Give Privileges v1.0 SerGrib night_vip.amxx running
[ 19] [ReAPI] No Team Flash v0.0.2 Vaqtincha no_team_flash_l running
[ 20] Parachute for ALL [ReA v3.0 Leo_[BH] parachute_for_a running
[ 21] Autoresponder/Advertis v0.5 MaximusBrood reklama_in_chat running
[ 22] Smoke: HealthNade v0.0.2 wopox1337 smoke_healthnad running
[ 23] ReAimDetector API v0.2.2 ReHLDS Team reaimdetector.a debug
[ 24] Reset Score v0.0.2f wopox1337 ResetScore.amxx running
[ 25] SpecList v1.2a FatalisDK speclist.amxx running
[ 26] Steаm Bonus v1.9b Jack Daniel`s steam_bonus.amx running
[ 27] VIP Custom Weapons v1.0 Vaqtincha vip_custom_weap running
[ 28] WarmUP Sound v1.0 ill warmup_sound.am running
[ 29] [182] Army Ranks Ultim v18.05.15 SKAJIbnEJIb army_ranks_ulti running
[ 30] High Ping Kicker (Stea v0.16.2 OLO/shadow high_ping_kicke running
[ 31] Lite Kill Assist v1.17 neygomon lite_kill_assis running
[ 32] Advanced Rechecker v0.4 F@nt0M rechecker.amxx running
[ 33] Night Mode v1.2.3 Radius night_mode.amxx running
[ 34] Maps Menu v1.9.0.5235 AMXX Dev Team mapsmenu.amxx running
[ 35] Game Namer v1.1 NeuroToxin gamenamechanger running
[ 36] Map Manager v2.5.54 Mistrick map_manager_ru. running
[ 37] AuthEmu API v1.0 Dev-MS Team authemu.amxx running
[ 38] Christmas_C4 v1.0 MANCHIMOCYRUS christmas_c4.am running
[ 39] Earflaps hat v2.0 OverGame earflaps_hat.am running
[ 40] AWP limitter v1.03 neygomon awp_limitter.am running
[ 41] [182] Map Spawns Edito v17.08.27 iG_os & SKAJIbnE MapSpawnsEditor running
[ 42] client_buy forward v0.1.1 ConnorMcLeod client_buy.amxx stopped
[ 43] V.I.P Custom KNIFE v1.0.0 Vaqtincha custom_knife.am debug
[ 44] V.I.P Custom DEAGLE v1.0.0 Vaqtincha custom_deagle.a debug
[ 45] V.I.P Custom M4A1 v1.0.0 Vaqtincha custom_m4a1.amx debug
[ 46] V.I.P Custom AK-47 v1.0.0 Vaqtincha custom_ak47.amx debug
[ 47] V.I.P Custom AWP v1.0.0 Vaqtincha custom_awp.amxx debug
[ 48] Block Pickup Gold v0.1 Vaqtincha blockpickupgold running
[ 49] [182] Chat RBS v18.03.24 SKAJIbnEJIb chat_rbs.amxx running
[ 50] [182] CsStats MySQL v18.03.24 SKAJIbnEJIb csstats_mysql.a running
[ 51] Stats Configuration v18.05.15 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 52] [182] StatsX RBS v18.03.24 SKAJIbnEJIb & AM statsx_rbs.amxx running
Автор плагина
ConnorMcLeod
Версия плагина
v0.1.1
Исходный код
/*	Formatright © 2010, ConnorMcLeod

This plugin is free software;
you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this plugin; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>
#include <cstrike>

#define VERSION "0.1.1"
#define PLUGIN "client_buy forward"

enum {
CSW_DEFUSER = 33,
CSW_NVGS,
CSW_SHIELD,
CSW_PRIMAMMO,
CSW_SECAMMO
}

enum _:iMenus {
Menu_Buy = 4,
Menu_BuyPistol = 5,
Menu_BuyRifle = 6,
Menu_BuyMachineGun = 7,
Menu_BuyShotgun = 8,
Menu_BuySubMachineGun = 9,
Menu_BuyItem = 10
}

const TE_WEAPONS = 1<<CSW_ELITE | 1<<CSW_GALIL | 1<<CSW_AK47 | 1<<CSW_SG552 | 1<<CSW_G3SG1 | 1<<CSW_MAC10
const CT_WEAPONS = 1<<CSW_FIVESEVEN | 1<<CSW_FAMAS | 1<<CSW_M4A1 | 1<<CSW_AUG | 1<<CSW_SG550 | 1<<CSW_TMP | 1<<CSW_SHIELD

#define m_iMenu 205
#define cs_get_user_menu(%0) get_pdata_int(%0, m_iMenu)

new const g_iMenuItemsTe[][] = {
{0, 0, 0, 0, 0, 0, CSW_PRIMAMMO, CSW_SECAMMO, 0}, /* Menu_Buy */
{0, CSW_GLOCK18, CSW_USP, CSW_P228, CSW_DEAGLE, CSW_ELITE, 0, 0, 0}, /* Menu_BuyPistol */
{0, CSW_GALIL, CSW_AK47, CSW_SCOUT, CSW_SG552, CSW_AWP, CSW_G3SG1, 0, 0}, /* Menu_BuyRifle */
{0, CSW_M249, 0, 0, 0, 0, 0, 0, 0}, /* Menu_BuyMachineGun */
{0, CSW_M3, CSW_XM1014, 0, 0, 0, 0, 0, 0}, /* Menu_BuyShotgun */
{0, CSW_MAC10, CSW_MP5NAVY, CSW_UMP45, CSW_P90, 0, 0, 0, 0}, /* Menu_BuySubMachineGun */
{0, CSW_VEST, CSW_VESTHELM, CSW_FLASHBANG, CSW_HEGRENADE, CSW_SMOKEGRENADE, CSW_NVGS, 0, 0} /* Menu_BuyItem */
}

new const g_iMenuItemsCt[][] = {
{0, 0, 0, 0, 0, 0, CSW_PRIMAMMO, CSW_SECAMMO, 0}, /* Menu_Buy */
{0, CSW_GLOCK18, CSW_USP, CSW_P228, CSW_DEAGLE, CSW_FIVESEVEN, 0, 0, 0}, /* Menu_BuyPistol */
{0, CSW_FAMAS, CSW_SCOUT, CSW_M4A1, CSW_AUG, CSW_SG550, CSW_AWP, 0, 0}, /* Menu_BuyRifle */
{0, CSW_M249, 0, 0, 0, 0, 0, 0, 0}, /* Menu_BuyMachineGun */
{0, CSW_M3, CSW_XM1014, 0, 0, 0, 0, 0, 0}, /* Menu_BuyShotgun */
{0, CSW_TMP, CSW_MP5NAVY, CSW_UMP45, CSW_P90, 0, 0, 0, 0}, /* Menu_BuySubMachineGun */
{0, CSW_VEST, CSW_VESTHELM, CSW_FLASHBANG, CSW_HEGRENADE, CSW_SMOKEGRENADE, CSW_NVGS, CSW_DEFUSER, CSW_SHIELD} /* Menu_BuyItem */
}

new g_iBuyForward, g_iReturn

public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
}

public plugin_cfg()
{
new pluginsNum = get_pluginsnum()
for(new pluginIndex; pluginIndex<pluginsNum; pluginIndex++)
{
if( get_func_id("client_buy", pluginIndex) != -1 )
{
register_clcmd("menuselect", "ClCmd_MenuSelect")
g_iBuyForward = CreateMultiForward("client_buy", ET_STOP, FP_CELL, FP_CELL)
break
}
}

if( !g_iBuyForward )
{
log_amx("client_buy forward is not used by any other plugin, pausing plugin.")
pause("ad")
}
}

public plugin_natives()
{
register_library("cl_buy")
}

public client_command(id)
{
if( is_user_alive(id) )
{
new szCommand[13] // autoshotgun
if( read_argv(0, szCommand, charsmax(szCommand)) < 12 )
{
return CheckBuyCmd(id, szCommand)
}
}
return PLUGIN_CONTINUE
}

public CS_InternalCommand(id, const szCommand[])
{
if( is_user_alive(id) )
{
new szCmd[13]
if( copy(szCmd, charsmax(szCmd), szCommand) < 12 )
{
return CheckBuyCmd(id, szCmd)
}
}
return PLUGIN_CONTINUE
}

CheckBuyCmd(id , szCmd[])
{
new iItem = GetAliasId( szCmd )
if( iItem )
{
if( TE_WEAPONS & 1<<iItem )
{
if( cs_get_user_team(id) != CS_TEAM_T )
{
return PLUGIN_CONTINUE
}
}
else if( CT_WEAPONS & 1<<iItem )
{
if( cs_get_user_team(id) != CS_TEAM_CT )
{
return PLUGIN_CONTINUE
}
}

return CanBuyItem(id, iItem)
}
return PLUGIN_CONTINUE
}

public ClCmd_MenuSelect( id )
{
if( !is_user_alive(id) )
{
return PLUGIN_CONTINUE
}
new szSlot[3]
if( read_argv(1, szSlot, charsmax(szSlot)) == 1 )
{
new iSlot = szSlot[0] - '0'
if( 1 <= iSlot <= 8 )
{
new iMenu = cs_get_user_menu(id)
if( Menu_Buy <= iMenu <= Menu_BuyItem )
{
new iItem
switch( cs_get_user_team(id) )
{
case CS_TEAM_T:iItem = g_iMenuItemsTe[iMenu-4][iSlot]
case CS_TEAM_CT:iItem = g_iMenuItemsCt[iMenu-4][iSlot]
}
if( iItem )
{
return CanBuyItem(id, iItem)
}
}
}
}
return PLUGIN_CONTINUE
}

CanBuyItem(id, iItem)
{
ExecuteForward(g_iBuyForward, g_iReturn, id, iItem)
if( g_iReturn != PLUGIN_CONTINUE )
{
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}

GetAliasId( szAlias[] )
{
static Trie:tAliasesIds = Invalid_Trie
if( tAliasesIds == Invalid_Trie )
{
tAliasesIds = TrieCreate()
TrieSetCell(tAliasesIds, "p228", CSW_P228)
TrieSetCell(tAliasesIds, "228compact", CSW_P228)
TrieSetCell(tAliasesIds, "scout", CSW_SCOUT)
TrieSetCell(tAliasesIds, "hegren", CSW_HEGRENADE)
TrieSetCell(tAliasesIds, "xm1014", CSW_XM1014)
TrieSetCell(tAliasesIds, "autoshotgun", CSW_XM1014)
TrieSetCell(tAliasesIds, "mac10", CSW_MAC10)
TrieSetCell(tAliasesIds, "aug", CSW_AUG)
TrieSetCell(tAliasesIds, "bullpup", CSW_AUG)
TrieSetCell(tAliasesIds, "sgren", CSW_SMOKEGRENADE)
TrieSetCell(tAliasesIds, "elites", CSW_ELITE)
TrieSetCell(tAliasesIds, "fn57", CSW_FIVESEVEN)
TrieSetCell(tAliasesIds, "fiveseven", CSW_FIVESEVEN)
TrieSetCell(tAliasesIds, "ump45", CSW_UMP45)
TrieSetCell(tAliasesIds, "sg550", CSW_SG550)
TrieSetCell(tAliasesIds, "krieg550", CSW_SG550)
TrieSetCell(tAliasesIds, "galil", CSW_GALIL)
TrieSetCell(tAliasesIds, "defender", CSW_GALIL)
TrieSetCell(tAliasesIds, "famas", CSW_FAMAS)
TrieSetCell(tAliasesIds, "clarion", CSW_FAMAS)
TrieSetCell(tAliasesIds, "usp", CSW_USP)
TrieSetCell(tAliasesIds, "km45", CSW_USP)
TrieSetCell(tAliasesIds, "glock", CSW_GLOCK18)
TrieSetCell(tAliasesIds, "9x19mm", CSW_GLOCK18)
TrieSetCell(tAliasesIds, "awp", CSW_AWP)
TrieSetCell(tAliasesIds, "magnum", CSW_AWP)
TrieSetCell(tAliasesIds, "mp5", CSW_MP5NAVY)
TrieSetCell(tAliasesIds, "smg", CSW_MP5NAVY)
TrieSetCell(tAliasesIds, "m249", CSW_M249)
TrieSetCell(tAliasesIds, "m3", CSW_M3)
TrieSetCell(tAliasesIds, "12gauge", CSW_M3)
TrieSetCell(tAliasesIds, "m4a1", CSW_M4A1)
TrieSetCell(tAliasesIds, "tmp", CSW_TMP)
TrieSetCell(tAliasesIds, "mp", CSW_TMP)
TrieSetCell(tAliasesIds, "g3sg1", CSW_G3SG1)
TrieSetCell(tAliasesIds, "d3au1", CSW_G3SG1)
TrieSetCell(tAliasesIds, "flash", CSW_FLASHBANG)
TrieSetCell(tAliasesIds, "deagle", CSW_DEAGLE)
TrieSetCell(tAliasesIds, "nighthawk", CSW_DEAGLE)
TrieSetCell(tAliasesIds, "sg552", CSW_SG552)
TrieSetCell(tAliasesIds, "krieg552", CSW_SG552)
TrieSetCell(tAliasesIds, "ak47", CSW_AK47)
TrieSetCell(tAliasesIds, "cv47", CSW_AK47)
TrieSetCell(tAliasesIds, "p90", CSW_P90)
TrieSetCell(tAliasesIds, "c90", CSW_P90)

TrieSetCell(tAliasesIds, "vest", CSW_VEST)
TrieSetCell(tAliasesIds, "vesthelm", CSW_VESTHELM)

TrieSetCell(tAliasesIds, "defuser", CSW_DEFUSER)
TrieSetCell(tAliasesIds, "nvgs", CSW_NVGS)
TrieSetCell(tAliasesIds, "shield", CSW_SHIELD)
TrieSetCell(tAliasesIds, "buyammo1", CSW_PRIMAMMO)
TrieSetCell(tAliasesIds, "primammo", CSW_PRIMAMMO)
TrieSetCell(tAliasesIds, "buyammo2", CSW_SECAMMO)
TrieSetCell(tAliasesIds, "secammo", CSW_SECAMMO)
}

strtolower(szAlias)

new iId
if( TrieGetCell(tAliasesIds, szAlias, iId) )
{
return iId
}
return 0
}
Всем привет не пойму с чем связана проблема. Выходит в консоли [ 42] client_buy forward v0.1.1 ConnorMcLeod client_buy.amxx stopped
Кто знает с чем это связанно ранее буквально вчера не было этого. Все плагины работали коректно. Сегодня высвечивается такая не исправность. Кто знает подскажите.
 
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
koly,
Код:
    if( !g_iBuyForward )
    {
        log_amx("client_buy forward is not used by any other plugin, pausing plugin.")
        pause("ad")
    }
 
Сообщения
1,536
Реакции
2,324
Помог
39 раз(а)
когда-нибудь вы научитесь правильно заполнять поля, а пока закрываем.
 
Последнее редактирование модератором:
  • Like a Boss
Реакции: Ayk
Статус
В этой теме нельзя размещать новые ответы.

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

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