- Ошибка
-
Удаляю и menucmd и case 5: и функции но единственное чего могу добиться что выбор отображается но меню тупо не открывается.
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5294 (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: Dec 3 2021 15:54:56
Built from: https://github.com/alliedmodders/amxmodx/commit/363871a
Build ID: 5294:363871a
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 21:47:32 Aug 8 2018 (7882)
- ReGamedll
-
-
- Версия Metamod
-
Metamod-r v1.3.0.131, API (5:13)
Metamod-r build: 18:51:02 Jul 11 2022
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/adc9414
- Список метамодулей
-
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.5294 ini Start ANY
[ 4] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl3 ANY
[ 5] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl3 ANY
[ 6] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl3 ANY
[ 7] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl3 ANY
[ 8] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl3 ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl3 ANY
[10] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl3 ANY ANY
10 plugins, 10 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] Admin Loader 3.5 neygomon admin_loader.am running
[ 2] FreshBans 1.4.8b kanagava fresh_bans.amxx running
[ 3] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 4] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 5] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 6] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 7] Info. Messages 1.9.0.5294 AMXX Dev Team imessage.amxx running
[ 8] Menus Front-End 1.9.0.5294 AMXX Dev Team menufront.amxx running
[ 9] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 10] NextMap 1.9.0.5294 AMXX Dev Team nextmap.amxx running
[ 11] Nextmap Chooser 1.9.0.5294 AMXX Dev Team mapchooser.amxx running
[ 12] Players Menu 1.8.2 AMXX Dev Team plmenu.amxx running
[ 13] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 14] Restrict Weapons 1.9.0.5294 AMXX Dev Team restmenu.amxx running
[ 15] TimeLeft 1.9.0.5294 AMXX Dev Team timeleft.amxx running
[ 16] Scrolling Message 1.9.0.5294 AMXX Dev Team scrollmsg.amxx running
[ 17] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 18] CS Misc. Stats 1.9.0.5294 AMXX Dev Team miscstats.amxx running
[ 19] CS Stats Logging 1.9.0.5294 AMXX Dev Team stats_logging.a running
[ 20] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 21] Advanced Parachute 0.1.2 Blizzard_87 advanced_parach running
[ 22] [L-JB] CoreAPI \r[\yX\r] [B]lac[K]*[L]eGi jbe_core_new.am debug
[ 23] [JBE] GirlMenu v1.2 Girl Mr Atom || LeGio jbe_girl_menu.a running
[ 24] [JBE] Block 2.0 LeGioN jbe_block_ct_in running
[ 25] Set Objects A2-U2 OverGame jbe_spawn_model running
[ 26] [JBE] LTranslit 4.0 neygomon && LeGi jbe_ltranslit.a running
[ 27] [JBE] Grab + Menu 3.0 arttty7 jbe_grab.amxx running
[ 28] Emotions 1.4 LeGioN jbe_emotion.amx running
[ 29] [JBE] GuardWeapon 1.0 Mistrik & Alexan jbe_gweapons.am running
[ 30] [JBE] BossMenu 2.8 arttty7 jbe_smotrmenu.a debug
[ 31] [Hats] Costumes 1.0 Limbo jbe_costumes.am running
[ 32] [JBE_DM] Hide And Seek 1.1 Freedo.m jbe_dm_hideands running
[ 33] [JBE_DM] Sparta 1.1 Freedo.m jbe_dm_sparta.a running
[ 34] [JBE_DM] Birth Day 1.1 Freedo.m jbe_dm_birthday running
[ 35] [JBE_DM] Starwars 1.1 DARLOK jbe_dm_starwars running
[ 36] [JBE_DM] NY 1.0 Byca jbe_dm_new_year running
[ 37] [JBE]Штурм 0.0.0.1 B@N@N jbe_dm_shturm.a running
[ 38] [JBE_DM] GALAXY 1.0 BANTYP jbe_dm_galaxy.a running
[ 39] [JBE_DM] M9so 1.1 DARLOK jbe_dm_m9so.amx running
[ 40] ***[DEAD]~[RECLAMA]*** 1.0 [VaMpIr] DEAD jbe_reclama.amx running
[ 41] Tutor API Alpha [WPMG]PRoSToTeM@ TutorAPI.amxx running
41 plugins, 41 running
- Автор плагина
- Black SokoL & LeGioN
- Версия плагина
- \r[\yX\r] (???) так указано в версии
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#define PREFIX "Костюмы"
#define DICTIONARY "custom_costume.txt"
#define MAX_MODELS 4
#define MAX_MODELS_HEAD 46 //Максимально шапок для головы(При добавление указать!)
#define MAX_MODELS_BACK 11 //Максимально шапок для спины(При добавление указать!)
#define MAX_MODELS_PELVIS 4 //Максимально шапок для зада(При добавление указать!)
#define MAX_MODELS_FACE 3 //Максимально шапок для лица(При добавление указать!)
#define PLAYERS_PER_PAGE 8
//#define NATIVE_INFORMER
#if defined NATIVE_INFORMER
native jbe_informer_offset_up(id) //Раскоментируете если для джайл мода
#endif
new g_iMenuPosition[33][4], g_CostumeModelBack[33], g_CostumeModelFace[33], g_CostumeModelHead[64], g_CostumeModelPelvis[33],
costume_back[33], costume_head[64], costume_pelvis[33], costume_face[33],bool:g_HadCostumeModel[33]
new const CostumeModels[MAX_MODELS][] =
{
"models/jb_engine/costumes/jbe_costumes_12_sub_back.mdl",
"models/jb_engine/costumes/jbe_costumes_4_sub_face.mdl",
"models/jb_engine/costumes/jbe_costumes_47_sub_head.mdl",
"models/jb_engine/costumes/jbe_costumes_5_sub_pelvis.mdl"
}
public plugin_init()
{
register_plugin("[Hats] Costumes", "1.0", "Limbo")
register_menucmd(register_menuid("Show_CostumesMenu"), (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<8|1<<9), "Handle_CostumesMenu");
register_menucmd(register_menuid("Show_HeadCosMenu"), (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9), "Handle_HeadCosmenu");
register_menucmd(register_menuid("Show_FaceCosMenu"), (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9), "Handle_FaceCosmenu");
register_menucmd(register_menuid("Show_PelvisCosMenu"), (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9), "Handle_PelvisCosmenu");
register_menucmd(register_menuid("Show_BackCosMenu"), (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9), "Handle_BackCosmenu");
register_dictionary(DICTIONARY)
}
public Cmd_CostumesMenu(id) return Show_CostumesMenu(id)
public plugin_natives() register_native("Cmd_CostumesMenu", "Cmd_CostumesMenu", 1)
public client_putinserver(id)
{
g_CostumeModelBack[id] = 0
g_CostumeModelFace[id] = 0
g_CostumeModelHead[id] = 0
g_CostumeModelPelvis[id] = 0
costume_back[id] = 0
costume_head[id] = 0
costume_pelvis[id] = 0
costume_face[id] = 0
g_HadCostumeModel[id] = false
}
public client_disconnect(id)
{
g_CostumeModelBack[id] = 0
g_CostumeModelFace[id] = 0
g_CostumeModelHead[id] = 0
g_CostumeModelPelvis[id] = 0
costume_back[id] = 0
costume_head[id] = 0
costume_pelvis[id] = 0
costume_face[id] = 0
g_HadCostumeModel[id] = false
}
public plugin_precache()
{
for(new i = 0; i < MAX_MODELS; i++) precache_model(CostumeModels[i])
}
Show_CostumesMenu(id)
{
new szMenu[512], iKeys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<8|1<<9),
iLen = formatex(szMenu, charsmax(szMenu), "\y%L^n^n", id, "JBE_CHOOSE_CATEGORY");
#if defined NATIVE_INFORMER
jbe_informer_offset_up(id);
#endif
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y1\r] \y%L^n^n", id, "JBE_NO_COSTUME");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y2\r] \w%L^n", id, "JBE_HEAD");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y3\r] \w%L^n", id, "JBE_FACE");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y4\r] \w%L^n", id, "JBE_BACK");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y5\r] \w%L^n", id, "JBE_PELVIS");
formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n\r[\y0\r] \w%L", id, "JBE_MENU_EXIT");
return show_menu(id, iKeys, szMenu, -1, "Show_CostumesMenu");
}
public Handle_CostumesMenu(id, iKey)
{
switch(iKey)
{
case 0:
{
if(!g_HadCostumeModel[id])
{
print_colorchat(id, "!g[%s] !n%L", PREFIX, LANG_PLAYER, "JBE_NF_COSTUME")
}
else
{
reset_costume(id, 1)
reset_costume(id, 2)
reset_costume(id, 3)
reset_costume(id, 4)
costume_back[id] = 0
costume_head[id] = 0
costume_pelvis[id] = 0
costume_face[id] = 0
print_colorchat(id, "!g[%s] !n%L", PREFIX, LANG_PLAYER, "JBE_REMOVED")
g_HadCostumeModel[id] = false
}
}
case 1: return head_menu(id)
case 2: return face_menu(id)
case 3: return back_menu(id)
case 4: return pelvis_menu(id)
case 9: return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
head_menu(id) return Show_HeadCosMenu(id, g_iMenuPosition[id][3] = 0);
Show_HeadCosMenu(id, iPos)
{
if(iPos < 0) return PLUGIN_HANDLED;
#if defined NATIVE_INFORMER
jbe_informer_offset_up(id);
#endif
new iStart = iPos * PLAYERS_PER_PAGE;
if(iStart > MAX_MODELS_HEAD) iStart = MAX_MODELS_HEAD;
iStart = iStart - (iStart % 8);
g_iMenuPosition[id][3] = iStart / PLAYERS_PER_PAGE;
new iEnd = iStart + PLAYERS_PER_PAGE;
if(iEnd > MAX_MODELS_HEAD) iEnd = MAX_MODELS_HEAD + (iPos ? 0 : 1);
new szLangPlayer[33], szMenu[512], iLen, iPagesNum = (MAX_MODELS_HEAD / PLAYERS_PER_PAGE + ((MAX_MODELS_FACE % PLAYERS_PER_PAGE) ? 1 : 0))
iLen = formatex(szMenu, charsmax(szMenu), "\y%L \w[%d|%d]^n^n", id, "JBE_CHOOSE_COSTUME", iPos + 1, iPagesNum);
new iKeys = (1<<9), b;
for(new a = iStart; a < iEnd; a++)
{
formatex(szLangPlayer, charsmax(szLangPlayer), "JBE_MENU_COSTUMES_HEAD_%d", a);
new temp = a+1
if(costume_head[id] != temp)
{
iKeys |= (1<<b);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y%d\r] \w%L^n", ++b, id, szLangPlayer);
}
else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y%d\r] \d%L \r[\yВыбран\r]^n", ++b, id, szLangPlayer);
}
for(new i = b; i < PLAYERS_PER_PAGE; i++) iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n");
if(iEnd < MAX_MODELS_HEAD)
{
iKeys |= (1<<8);
formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n\r[\y9\r] \w%L^n\r[\y0\r] \w%L", id, "JBE_MENU_NEXT", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
}
else formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n^n\r[\y0\r] \w%L", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
return show_menu(id, iKeys, szMenu, -1, "Show_HeadCosMenu");
}
public Handle_HeadCosmenu(id, iKey)
{
switch(iKey)
{
case 8: return Show_HeadCosMenu(id, ++g_iMenuPosition[id][3]);
case 9: return Show_HeadCosMenu(id, --g_iMenuPosition[id][3]);
default:
{
new iCostumes = g_iMenuPosition[id][3] * PLAYERS_PER_PAGE + iKey;
reset_costume(id, 2)
make_costume(id, CostumeModels[2],2, iCostumes)
new szLangPlayer[33]
formatex(szLangPlayer, charsmax(szLangPlayer), "JBE_MENU_COSTUMES_HEAD_%d", iKey);
print_colorchat(id, "!g[%s] !n%L: !g%L", PREFIX, LANG_PLAYER, "JBE_CHOOSED", id, szLangPlayer)
g_HadCostumeModel[id] = true
costume_head[id] = iCostumes + 1
return Show_HeadCosMenu(id, g_iMenuPosition[id][3]);
}
}
return PLUGIN_HANDLED;
}
face_menu(id) return Show_FaceCosMenu(id, g_iMenuPosition[id][2] = 0);
Show_FaceCosMenu(id, iPos)
{
if(iPos < 0) return PLUGIN_HANDLED;
#if defined NATIVE_INFORMER
jbe_informer_offset_up(id);
#endif
new iStart = iPos * PLAYERS_PER_PAGE;
if(iStart > MAX_MODELS_FACE) iStart = MAX_MODELS_FACE;
iStart = iStart - (iStart % 8);
g_iMenuPosition[id][2] = iStart / PLAYERS_PER_PAGE;
new iEnd = iStart + PLAYERS_PER_PAGE;
if(iEnd > MAX_MODELS_FACE) iEnd = MAX_MODELS_FACE + (iPos ? 0 : 1);
new szLangPlayer[33], szMenu[512], iLen, iPagesNum = (MAX_MODELS_FACE / PLAYERS_PER_PAGE + ((MAX_MODELS_FACE % PLAYERS_PER_PAGE) ? 1 : 0));
iLen = formatex(szMenu, charsmax(szMenu), "\y%L \w[%d|%d]^n^n", id, "JBE_CHOOSE_COSTUME", iPos + 1, iPagesNum);
new iKeys = (1<<9), b;
for(new a = iStart; a < iEnd; a++)
{
formatex(szLangPlayer, charsmax(szLangPlayer), "JBE_MENU_COSTUMES_FACE_%d", a);
new temp = a+1
if(costume_face[id] != temp)
{
iKeys |= (1<<b);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y%d\r] \w%L^n", ++b, id, szLangPlayer);
}
else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y%d\r] \d%L \r[\yВыбран\r]^n", ++b, id, szLangPlayer);
}
for(new i = b; i < PLAYERS_PER_PAGE; i++) iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n");
if(iEnd < MAX_MODELS_FACE)
{
iKeys |= (1<<8);
formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n\r[\y9\r] \w%L^n\r[\y0\r] \w%L", id, "JBE_MENU_NEXT", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
}
else formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n^n\r[\y0\r] \w%L", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
return show_menu(id, iKeys, szMenu, -1, "Show_FaceCosMenu");
}
public Handle_FaceCosmenu(id, iKey)
{
switch(iKey)
{
case 8: return Show_FaceCosMenu(id, ++g_iMenuPosition[id][2]);
case 9: return Show_FaceCosMenu(id, --g_iMenuPosition[id][2]);
default:
{
new iCostumes = g_iMenuPosition[id][2] * PLAYERS_PER_PAGE + iKey;
reset_costume(id, 4)
make_costume(id, CostumeModels[1],4, iCostumes)
new szLangPlayer[33]
formatex(szLangPlayer, charsmax(szLangPlayer), "JBE_MENU_COSTUMES_FACE_%d", iKey);
print_colorchat(id, "!g[%s] !n%L: !g%L", PREFIX, LANG_PLAYER, "JBE_CHOOSED", id, szLangPlayer)
g_HadCostumeModel[id] = true
costume_face[id] = iCostumes + 1
return Show_FaceCosMenu(id, g_iMenuPosition[id][2]);
}
}
return PLUGIN_HANDLED;
}
pelvis_menu(id) return Show_PelvisCosMenu(id, g_iMenuPosition[id][1] = 0);
Show_PelvisCosMenu(id, iPos)
{
if(iPos < 0) return PLUGIN_HANDLED;
#if defined NATIVE_INFORMER
jbe_informer_offset_up(id);
#endif
new iStart = iPos * PLAYERS_PER_PAGE;
if(iStart > MAX_MODELS_PELVIS) iStart = MAX_MODELS_PELVIS;
iStart = iStart - (iStart % 8);
g_iMenuPosition[id][1] = iStart / PLAYERS_PER_PAGE;
new iEnd = iStart + PLAYERS_PER_PAGE;
if(iEnd > MAX_MODELS_PELVIS) iEnd = MAX_MODELS_PELVIS + (iPos ? 0 : 1);
new szLangPlayer[33], szMenu[512], iLen, iPagesNum = (MAX_MODELS_PELVIS / PLAYERS_PER_PAGE + ((MAX_MODELS_PELVIS % PLAYERS_PER_PAGE) ? 1 : 0));
iLen = formatex(szMenu, charsmax(szMenu), "\y%L \w[%d|%d]^n^n", id, "JBE_CHOOSE_COSTUME", iPos + 1, iPagesNum);
new iKeys = (1<<9), b;
for(new a = iStart; a < iEnd; a++)
{
formatex(szLangPlayer, charsmax(szLangPlayer), "JBE_MENU_COSTUMES_PELVIS_%d", a);
new temp = a+1
if(costume_pelvis[id] != temp)
{
iKeys |= (1<<b);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y%d\r] \w%L^n", ++b, id, szLangPlayer);
}
else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y%d\r] \d%L \r[\yВыбран\r]^n", ++b, id, szLangPlayer);
}
for(new i = b; i < PLAYERS_PER_PAGE; i++) iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n");
if(iEnd < MAX_MODELS_PELVIS)
{
iKeys |= (1<<8);
formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n\r[\y9\r] \w%L^n\r[\y0\r] \w%L", id, "JBE_MENU_NEXT", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
}
else formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n^n\r[\y0\r] \w%L", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
return show_menu(id, iKeys, szMenu, -1, "Show_PelvisCosMenu");
}
public Handle_PelvisCosmenu(id, iKey)
{
switch(iKey)
{
case 8: return Show_PelvisCosMenu(id, ++g_iMenuPosition[id][1]);
case 9: return Show_PelvisCosMenu(id, --g_iMenuPosition[id][1]);
default:
{
new iCostumes = g_iMenuPosition[id][1] * PLAYERS_PER_PAGE + iKey;
reset_costume(id, 3)
make_costume(id, CostumeModels[3],3, iCostumes)
new szLangPlayer[33]
formatex(szLangPlayer, charsmax(szLangPlayer), "JBE_MENU_COSTUMES_PELVIS_%d", iKey);
print_colorchat(id, "!g[%s] !n%L: !g%L", PREFIX, LANG_PLAYER, "JBE_CHOOSED", id, szLangPlayer)
g_HadCostumeModel[id] = true
costume_pelvis[id] = iCostumes + 1
return Show_PelvisCosMenu(id, g_iMenuPosition[id][1]);
}
}
return PLUGIN_HANDLED;
}
back_menu(id) return Show_BackCosMenu(id, g_iMenuPosition[id][0] = 0);
Show_BackCosMenu(id, iPos)
{
if(iPos < 0) return PLUGIN_HANDLED;
#if defined NATIVE_INFORMER
jbe_informer_offset_up(id);
#endif
new iStart = iPos * PLAYERS_PER_PAGE;
if(iStart > MAX_MODELS_BACK) iStart = MAX_MODELS_BACK;
iStart = iStart - (iStart % 8);
g_iMenuPosition[id][0] = iStart / PLAYERS_PER_PAGE;
new iEnd = iStart + PLAYERS_PER_PAGE;
if(iEnd > MAX_MODELS_BACK) iEnd = MAX_MODELS_BACK + (iPos ? 0 : 1);
new szLangPlayer[33], szMenu[512], iLen, iPagesNum = (MAX_MODELS_BACK / PLAYERS_PER_PAGE + ((MAX_MODELS_BACK % PLAYERS_PER_PAGE) ? 1 : 0));
iLen = formatex(szMenu, charsmax(szMenu), "\y%L \w[%d|%d]^n^n", id, "JBE_CHOOSE_COSTUME", iPos + 1, iPagesNum);
new iKeys = (1<<9), b;
for(new a = iStart; a < iEnd; a++)
{
formatex(szLangPlayer, charsmax(szLangPlayer), "JBE_MENU_COSTUMES_BACK_%d", a);
new temp = a+1
if(costume_back[id] != temp)
{
iKeys |= (1<<b);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y%d\r] \w%L^n", ++b, id, szLangPlayer);
}
else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r[\y%d\r] \d%L \r[\yВыбран\r]^n", ++b, id, szLangPlayer);
}
for(new i = b; i < PLAYERS_PER_PAGE; i++) iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n");
if(iEnd < MAX_MODELS_BACK)
{
iKeys |= (1<<8);
formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n\r[\y9\r] \w%L^n\r[\y0\r] \w%L", id, "JBE_MENU_NEXT", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
}
else formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n^n\r[\y0\r] \w%L", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
return show_menu(id, iKeys, szMenu, -1, "Show_BackCosMenu");
}
public Handle_BackCosmenu(id, iKey)
{
switch(iKey)
{
case 8: return Show_BackCosMenu(id, ++g_iMenuPosition[id][0]);
case 9: return Show_BackCosMenu(id, --g_iMenuPosition[id][0]);
default:
{
new iCostumes = g_iMenuPosition[id][0] * PLAYERS_PER_PAGE + iKey;
reset_costume(id, 1)
make_costume(id, CostumeModels[0],1, iCostumes)
new szLangPlayer[33]
formatex(szLangPlayer, charsmax(szLangPlayer), "JBE_MENU_COSTUMES_BACK_%d", iKey);
print_colorchat(id, "!g[%s] !n%L: !g%L", PREFIX, LANG_PLAYER, "JBE_CHOOSED", id, szLangPlayer)
g_HadCostumeModel[id] = true
costume_back[id] = iCostumes + 1
return Show_BackCosMenu(id, g_iMenuPosition[id][0]);
}
}
return PLUGIN_HANDLED;
}
public make_costume(id, model[],part, anim)
{
switch(part)
{
case 1:
{
g_CostumeModelBack[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
set_pev(g_CostumeModelBack[id], pev_movetype, MOVETYPE_FOLLOW)
set_pev(g_CostumeModelBack[id], pev_aiment, id)
set_pev(g_CostumeModelBack[id], pev_rendermode, kRenderNormal)
engfunc(EngFunc_SetModel, g_CostumeModelBack[id], model)
set_pev(g_CostumeModelBack[id], pev_body, anim)
set_pev(g_CostumeModelBack[id], pev_sequence, anim)
set_pev(g_CostumeModelBack[id], pev_animtime, get_gametime())
set_pev(g_CostumeModelBack[id], pev_framerate, 1.0)
}
case 2:
{
g_CostumeModelHead[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
set_pev(g_CostumeModelHead[id], pev_movetype, MOVETYPE_FOLLOW)
set_pev(g_CostumeModelHead[id], pev_aiment, id)
set_pev(g_CostumeModelHead[id], pev_rendermode, kRenderNormal)
engfunc(EngFunc_SetModel, g_CostumeModelHead[id], model)
set_pev(g_CostumeModelHead[id], pev_body, anim)
set_pev(g_CostumeModelHead[id], pev_sequence, anim)
set_pev(g_CostumeModelHead[id], pev_animtime, get_gametime())
set_pev(g_CostumeModelHead[id], pev_framerate, 1.0)
}
case 3:
{
g_CostumeModelPelvis[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
set_pev(g_CostumeModelPelvis[id], pev_movetype, MOVETYPE_FOLLOW)
set_pev(g_CostumeModelPelvis[id], pev_aiment, id)
set_pev(g_CostumeModelPelvis[id], pev_rendermode, kRenderNormal)
engfunc(EngFunc_SetModel, g_CostumeModelPelvis[id], model)
set_pev(g_CostumeModelPelvis[id], pev_body, anim)
set_pev(g_CostumeModelPelvis[id], pev_sequence, anim)
set_pev(g_CostumeModelPelvis[id], pev_animtime, get_gametime())
set_pev(g_CostumeModelPelvis[id], pev_framerate, 1.0)
}
case 4:
{
g_CostumeModelFace[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
set_pev(g_CostumeModelFace[id], pev_movetype, MOVETYPE_FOLLOW)
set_pev(g_CostumeModelFace[id], pev_aiment, id)
set_pev(g_CostumeModelFace[id], pev_rendermode, kRenderNormal)
engfunc(EngFunc_SetModel, g_CostumeModelFace[id], model)
set_pev(g_CostumeModelFace[id], pev_body, anim)
set_pev(g_CostumeModelFace[id], pev_sequence, anim)
set_pev(g_CostumeModelFace[id], pev_animtime, get_gametime())
set_pev(g_CostumeModelFace[id], pev_framerate, 1.0)
}
}
}
public reset_costume(id, number)
{
switch(number)
{
case 1:
{
fm_set_entity_visibility(g_CostumeModelBack[id], 0)
g_CostumeModelBack[id] = 0
}
case 2:
{
fm_set_entity_visibility(g_CostumeModelHead[id], 0)
g_CostumeModelHead[id] = 0
}
case 3:
{
fm_set_entity_visibility(g_CostumeModelPelvis[id], 0)
g_CostumeModelPelvis[id] = 0
}
case 4:
{
fm_set_entity_visibility(g_CostumeModelFace[id], 0)
g_CostumeModelFace[id] = 0
}
}
}
stock print_colorchat(id, String[], any:...)
{
new SzMsg[192]
vformat(SzMsg, charsmax(SzMsg), String, 3)
replace_all(SzMsg, charsmax(SzMsg), "!n", "^1")
replace_all(SzMsg, charsmax(SzMsg), "!t", "^3")
replace_all(SzMsg, charsmax(SzMsg), "!g", "^4")
static msgSayText = 0
static fake_user
if(!msgSayText)
{
msgSayText = get_user_msgid("SayText")
fake_user = get_maxplayers() + 1
}
message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, _, id)
write_byte(id ? id : fake_user)
write_string(SzMsg)
message_end()
}
Пытаюсь удалить 6 пункт (информация)
Так же в jbe_core.txt если изменить информацию то она не меняется. Хотя вроде как должна, тоже не знаю почему.
Так же в jbe_core.txt если изменить информацию то она не меняется. Хотя вроде как должна, тоже не знаю почему.
В этой теме было размещено решение! Перейти к решению.
Download all Attachments
-
72.4 KB Просмотры: 54