- Ошибка
-
Ошибок при компиляции нету.
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5263 (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 27 2019 16:23:31
Built from: https://github.com/alliedmodders/amxmodx/commit/15a14a0
Build ID: 5263:15a14a0
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
- ReGamedll
-
Не установлен.
- Версия 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] LocalizeBug Fix RUN - localizebugfix.so v2.4 ini Start Never
[ 2] dproto_EF RUN - dproto.so v0.9.582 ini Start Never
[ 3] AMX Mod X RUN - amxmodx.so v1.9.0.5263 ini Start ANY
[ 4] VoiceTranscoder RUN - vtc.so v2017RC5 ini ANY
[ 5] Ultimate Unprecacher RUN - unprecacher_i386.so vBeta 2.5.3 ini Chlvl Chlvl
[ 6] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl3 ANY
[ 7] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl3 ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl3 ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl3 ANY
[10] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
[11] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
12 plugins, 12 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] Admin Loader v3.5 neygomon admin_loader.am running
[ 2] FreshBans v1.4.5b kanagava fresh_bans.amxx running
[ 3] Admin Chat v1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 4] Admin Commands v1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 5] Commands Menu v1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 6] Info. Messages v1.9.0.5263 AMXX Dev Team imessage.amxx running
[ 7] Menus Front-End v1.9.0.5263 AMXX Dev Team menufront.amxx running
[ 8] Plugin Menu v1.9.0.5263 AMXX Dev Team pluginmenu.amxx running
[ 9] Restrict Weapons v1.9.0.5263 AMXX Dev Team restmenu.amxx running
[ 10] Scrolling Message v1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 11] Admin Votes v1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 12] CS Misc. Stats v1.9.0.5263 AMXX Dev Team miscstats.amxx running
[ 13] CS Stats Logging v1.9.0.5263 AMXX Dev Team stats_logging.a running
[ 14] Stats Configuration v1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 15] [CSZONA.RU] Core v2.5 Sanlerus & Hellm jbe_core.amxx running
[ 16] Maps Menu v1.4.1 neugomon jbe_mapsmenu.am running
[ 17] Players Menu v1.8.2 AMXX Dev Team jbe_plmenu.amxx running
[ 18] Map Manager v2.5.54 Mistrick jbe_mapmanager. running
[ 19] Lite Translit v2.9 neygomon && Hell jbe_translit.am running
[ 20] [JBE] Addons: Deathmen v1.2 OverGame jbe_ghost.amxx running
[ 21] HUD Customizer v0.3 Igoreso jbe_hud.amxx running
[ 22] Block MOTD v1.0 Sn!ff3r jbe_motd.amxx running
[ 23] [SJB] Grab v2.1 AlexandrFiner & jbe_grab.amxx running
[ 24] [S_JB] Block Guard on v1.2 OverGame && Hell jbe_guard_block running
[ 25] Paint v1.0 OverGame & stupo jbe_chief_marke running
[ 26] [S_JB] Managing Menu v1.0 Hellmith jbe_managing_me running
[ 27] [JBE_DM] Ringolevio v1.1 Freedo.m jbe_dm_ringolev running
[ 28] [JBE_DM] Blindfolders v1.1 ToJI9IHGaa jbe_dm_blindfol running
[ 29] [JailMode] GhostBuster v2.1 AlexandrFiner jbe_dm_ghostbus running
[ 30] [JailMode] Galaxy v1.0 AlexandrFiner jbe_dm_galaxy.a running
[ 31] [JailMode] He v1.1 AlexandrFiner jbe_dm_he.amxx running
[ 32] [JailMode] Hot Potato v1.1 AlexandrFiner jbe_dm_hot_pota running
[ 33] [JBE_DM] Hide And Seek v1.1 Freedo.m jbe_dm_hideands running
[ 34] [JBS] Predator v1.0 Emerald jbe_dm_predator running
[ 35] [JBE] Nemises v2.0 semisem+freddom jbe_dm_nemises. running
[ 36] Light v1.0 Author jbe_lights.amxx running
[ 37] [S_JB] Snow v1.0 Hellmith jbe_snow.amxx running
[ 38] Cristmas grenades v1.0 OverGame jbe_ny_grenade. running
[ 39] [S_JB] Objects v1.0 AlexandrFiner jbe_objects.amx running
[ 40] JBE SPLEAF + CREATE BL v1.0 cut by thezoloto jbe_block.amxx running
[ 41] Lite Translit v2.8 neygomon lite_translit.a running
[ 42] [JBE] Cases Menu vv1.0 Atom CasesMenu.amxx running
[ 43] [JB ChiefGame] Mafia U vvk/krisiso g3cKpunTop ujbl_cg_mafia.a running
[ 44] Emotions v1.4 LeGioN jbe_emotion.amx running
[ 45] [JB] Boss Menu v[v2.6] Edit By NiKiTa JB_BossMenu.amx running
[ 46] [JBE] Ultimate Bank vvk.com/kri ToJI9IHGaa jbe_bank.amxx running
[ 47] Player Animations Menu v0.1.1 code PomanoB and jbe_dance_menu. running
[ 48] [JBE] Перевод ? v1.0 Hozon jbe_SimonTransl running
[ 49] Teleport Menu v1.0.1 w0w teleport_menu.a running
[ 50] Walls Creator v1.1 d3m37r4 jbe_walls_creat running
[ 51] JB set day v1.0 By thezolotoi && jbe_day_set_a.a running
[ 52] [UJBL_CG] Question vvk/krisiso g3cKpunTop jbe_cg_question running
[ 53] [UJBL_CG] Truth or lie vvk/krisiso g3cKpunTop jbe_cg_truth_or running
[ 54] Demo Recorder v2.4.1 F@nt0M jbe_demo_record running
[ 55] [ZP] Extra: Dual Deagl v1.0 LARS-DAY[BR]EAKE jbe_weapon_ddea running
[ 56] [AMXX] Weapon: Stinger v1.0.2 xUnicorn (t3rkec jbe_stinger.amx running
[ 57] ZP Extraitem: M950 Att v1.0 Base: Batcon & t jbe_m950se.amxx running
[ 58] [ZMO] Weapon: Skull-11 v0.1 Chrescoe1 jbe_skull11.amx running
[ 59] ZP Extraitem: FNP-45 v1.0 Base: Batcon; Re jbe_fnp45.amxx running
[ 60] [ZP] Extra: CSO Weapon v1.0 KORD_12.7 jbe_Crow9.amxx running
[ 61] [ZP] Weapon: AK47 Beas v1.0 | 2018 xUnicorn (t3rkec jbe_ak47_beast. running
[ 62] [ZP] Extra: CSO Weapon v1.1 KORD_12.7 jbe_awpz.amxx running
[ 63] [ZP] Addon: AWP Dragon v1.0 Crock / Lars ReE jbe_thunder.amx running
63 plugins, 63 running
- Автор плагина
- g3cKpunTop
- Версия плагина
- [UJBL_CG] Question
- Исходный код
-
//Версия плагина: исключительно 1.9.0
#include amxmodx
#include fakemeta
#tryinclude jbe_core_func
#if defined __JBE_CORE_FUNC
#include jbe_chief_game
#else
native jbe_get_chief_id();
#define UTIL_UserPrint(%1,%2) client_print_color(%1,%1,%2)
#endif
#define TaskId_EndGame 515372153
new g_iCurrentWord;
new const g_szWordList[][] = {
"Звезда", "Корреспондент", "Движение", "Фирма", "Рубеж", "Администрация", "Правительство", "Помощник", "Решение", "Ограничение", "Пропасть", "Середина", "Смех", "Цвет", "Вид", "Мальчишка", "Линия",
"Вагон", "Храм", "Чувство", "Локатор", "Фольга", "Поролон", "Приемник", "Пальма", "Шприц", "Букашка", "Борода", "Пружина", "Завтрак", "Киоск", "Воробей", "Двигатель", "Прогресс", "Персик", "Флаг",
"Дрожжи", "Кондуктор", "Мышка", "Крепость", "Волан", "Пиявка", "Вихрь", "Ласты", "Стрелка", "Банк", "Антрекот", "Наушники", "Самокат", "Водопад", "Ярмарка", "Сушка", "Студия", "Прививка", "Заря",
"Карась", "Степь", "Яйцо", "Майка", "Водогрязеторфопарафинолечение", "Превысокомногорассмотрительствующий"
};
#if defined __JBE_CORE_FUNC
new g_iGameId;
public jbe_load_cvars() { g_iGameId = JBE_ChiefGameRegister("JBE_CHIEF_GAME:QUESTION"); }
#endif
public plugin_init() {
register_plugin( "[UJBL_CG] Question", "vk/krisiso", "g3cKpunTop" );
register_clcmd("say", "ClientCommand_Say");
state dHookSay: Disabled;
register_menucmd(register_menuid("ShowMenu_Question"), (1<<0|1<<1|1<<8|1<<9), "HandleMenu_Question");
#if !defined __JBE_CORE_FUNC
register_clcmd("say /question", "ShowMenu_Question");
#endif
}
#if defined __JBE_CORE_FUNC
public JBE_FWD_StartChiefGame(iKey, pId) {
if(iKey == g_iGameId) {
ShowMenu_Question(pId);
}
}
#endif
public ClientCommand_Say(pId) <> { return PLUGIN_CONTINUE; }
public ClientCommand_Say(pId) <dHookSay: Disabled> { return PLUGIN_CONTINUE; }
public ClientCommand_Say(pId) <dHookSay: Enabled> {
new szArgs[64];
read_args(szArgs, charsmax(szArgs));
remove_quotes(szArgs);
if(equal(szArgs, g_szWordList[g_iCurrentWord])) {
UTIL_UserPrint(0, "Стоп! Первым слово ^1'^4%s^1' написал: ^3%n", g_szWordList[g_iCurrentWord], pId);
@TK_EndGame();
remove_task(TaskId_EndGame);
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
#if defined __JBE_CORE_FUNC
ShowMenu_Question(pId) {
#else
public ShowMenu_Question(pId) {
if(jbe_get_chief_id() != pId) return 1;
#endif
#if defined __JBE_CORE_FUNC
new szMenu[512], bitKeys = (1<<0|1<<8|1<<9), iLen = formatex(szMenu, charsmax(szMenu), "%L %L^n^n", LANG_PLAYER, "JBE_MENU_PREFIX", LANG_PLAYER, "JBE_CHIEF_GAME:QUESTION");
#else
new szMenu[512], bitKeys = (1<<0|1<<9), iLen = formatex(szMenu, charsmax(szMenu), "Меню 'Кто первый напишет?'^n^n");
#endif
if(task_exists(TaskId_EndGame)) {
bitKeys |= (1<<1);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[1] \wСменить слово \r->^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[2] \wЗавершить игру^n");
#if defined __JBE_CORE_FUNC
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "%L Слово: \y%s^n", pId, "JBE_KEY_LOCK", g_szWordList[g_iCurrentWord]);
#else
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[#] \wСлово: \y%s^n", g_szWordList[g_iCurrentWord]);
#endif
}
else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[1] \wСгенерировать слово \r->^n");
#if defined __JBE_CORE_FUNC
iLen += formatex( szMenu[ iLen ], charsmax( szMenu ) - iLen, "^n^n\r[9] \w%L", pId, "JBE_MENU_BACK");
#endif
iLen += formatex( szMenu[ iLen ], charsmax( szMenu ) - iLen, "^n\r[0] \w%L", pId, "JBE_MENU_EXIT");
return show_menu(pId, bitKeys, szMenu, -1, "ShowMenu_Question");
}
public HandleMenu_Question(pId, iKey) {
switch(iKey) {
case 0: {
g_iCurrentWord = random(sizeof g_szWordList - 1);
if(!task_exists(TaskId_EndGame)) {
set_task(30.0, "@TK_EndGame", TaskId_EndGame);
UTIL_UserPrint(0, "Начальник ^4%n ^1сгенерировал слово: ^3%s", pId, g_szWordList[g_iCurrentWord]);
} else {
change_task(TaskId_EndGame, 30.0);
UTIL_UserPrint(0, "Начальник ^4%n ^1сменил слово: ^3%s", pId, g_szWordList[g_iCurrentWord]);
}
state dHookSay: Enabled;
}
case 1: {
@TK_EndGame();
remove_task(TaskId_EndGame);
}
#if defined __JBE_CORE_FUNC
case 8: {
JBE_ChiefGameOpen(pId);
return;
}
#endif
case 9: return;
}
ShowMenu_Question(pId);
}
@TK_EndGame() {state dHookSay: Disabled; g_iCurrentWord = 0;}
Появляется слово в чате, но когда заключённый пишет слово, не показывает первого написавшего.
Должно быть как-то так:
UTIL_UserPrint(0, "Стоп! Первым слово ^1'^4%s^1' написал: ^3%n", g_szWordList[g_iCurrentWord], pId);
Должно быть как-то так:
UTIL_UserPrint(0, "Стоп! Первым слово ^1'^4%s^1' написал: ^3%n", g_szWordList[g_iCurrentWord], pId);
В этой теме было размещено решение! Перейти к решению.