Пользователь
- Сообщения
- 76
- Реакции
- 3
- Помог
- 1 раз(а)
- Ошибка
-
Ошибка с переводом в меню, при смене языка client_language
- ОС
- Windows
- Amx Mod X
-
1.9.0
- Билд
-
rehlds 3.6.0
- ReGamedll
-
5.20
- Версия Metamod
-
v1.3.0
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm.dll v1.9.0.5249 ini Start ANY
[ 2] ReAPI RUN - reapi_amxx.dll v5.19.0.211-dev pl1 ANY Never
[ 3] FakeMeta RUN - fakemeta_amxx.dll v1.9.0.5249 pl1 ANY ANY
[ 4] Ham Sandwich RUN - hamsandwich_amxx.dll v1.9.0.5249 pl1 ANY ANY
[ 5] CStrike RUN - cstrike_amxx.dll v1.9.0.5249 pl1 ANY ANY
[ 6] Fun RUN - fun_amxx.dll v1.9.0.5249 pl1 ANY ANY
[ 7] Engine RUN - engine_amxx.dll v1.9.0.5249 pl1 ANY ANY
- Список плагинов
-
[ 1] Admin Base 1.9.0.5249 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0.5249 AMXX Dev Team admincmd.amxx running
[ 3] Language Menu 1.0 F@nt0M langmenu.amxx running
[ 4] AmxModMenu v 1.1 Bitter menufront.amxx running
[ 5] Commands Menu 1.9.0.5249 AMXX Dev Team cmdmenu.amxx running
[ 6] Players Menu 1.9.0.5249 AMXX Dev Team plmenu.amxx running
[ 7] Maps Menu 1.9.0.5249 AMXX Dev Team mapsmenu.amxx running
[ 8] Plugin Menu 1.9.0.5249 AMXX Dev Team pluginmenu.amxx running
[ 9] VIP MENU v 1.0 Bitter vip_menu.amxx debug
[ 10] ADMIN MENU v 1.0 Bitter admin_menu.amxx debug
[ 11] BOSS MENU v 1.0 Bitter boss_menu.amxx debug
[ 12] ServerMenu CSDM v 1.0 Bitter menu_servera.am debug
[ 13] VIP/ADMIN GUN v 1.0 Bitter menupriv.amxx debug
[ 14] [ZP] Extra Item: No Re 0.1.0 fezh zp_norecoil.amx running
[ 15] Teleport Smoke Grenade 0.1 VEN teleport_smokeg running
- Автор плагина
- -
- Версия плагина
- -
- Исходный код
-
-
Возникает такая проблема при смене языка setinfo lang ru,en,ua, если не менять все норм.
Код:
[ua]
MENU_BOSS_1 = \yМеню BOSSA ^n^n
TAKE_BOSS_MONEY1 = \r2. \dВзяти [%d] \R%d сек. ^n
TAKE_BOSS_MONEY2 = \r2. \wВзяти \y[\r%d$\y] - \y[\rГотово\y] ^n
TAKE_BOSS_MONEY3 = \r2. \dВзяти [\r%d$\d] ^n
TAKE_BOSS_HPAP1 = \r3. \dВзяти [+600HP/AP] \R%d сек. ^n
TAKE_BOSS_HPAP2 = \r3. \wВзяти \y[\r+600HP/AP\y] - \y[\rГотово\y] ^n
TAKE_BOSS_HPAP3 = \r3. \dВзяти [\r+600HP/AP\d] ^n
TAKE_BOSS_SpeedGrav1 = \r4. \dВзяти [Speed/Grav] \R%d сек. ^n^n
TAKE_BOSS_SpeedGrav2 = \r4. \wВзяти \y[\rSpeed/Grav\y] - \y[\rГотово\y] ^n^n
TAKE_BOSS_SpeedGrav3 = \r4. \dВзяти [\rSpeed/Grav\d] ^n^n
BACK_BOSS = \r8. \wНазад ^n
MENU_BOSS_USIL_1 = \r1. \wМеню \yПосиленої зброї ^n
EXIT_BOSS = r0. \wВихід :) ^n^n \y Createt menu by: \wBitter
MENU_BOSS_ZARABOT_1 = \wМеню заробить через \R%d сек. ^n^n
MENU_BOSS_ZARABOT_2 = \dМеню заробить через \R%d сек. ^n^n
TAKES_BOSS_MONEY = ^1[^4DOSTAUKR^1] Ви взяли гроші. ^4Вдалої гри!
TAKES_BOSS_HPAR = ^1[^4DOSTAUKR^1] Ви взяли +600HP/AP. ^4Вдалої гри!
TAKES_BOSS_SPEEDGRAV = ^1[^4DOSTAUKR^1] Ви взяли Speed/Grav. ^4Вдалої гри!
WAITTS_BOSS = ^1[^4DOSTAUKR^1] Зачекайте, поки буде доступна ^4BOSS Меню!
DOSTUP_BOSS = ^1[^4DOSTAUKR^1] Доступно лише для: ^4Босс гравців!
[en]
MENU_BOSS_1 = \yMenu BOSSA ^n^n
TAKE_BOSS_MONEY1 = \r2. \dTake [%d] \R%d sec. ^n
TAKE_BOSS_MONEY2 = \r2. \wGet \y[\r%d$\y] - \y[\rDone\y] ^n
TAKE_BOSS_MONEY3 = \r2. \dTake [\r%d$\d] ^n
TAKE_BOSS_HPAP1 = \r3. \dTake [+600HP/AP] \R%d sec. ^n
TAKE_BOSS_HPAP2 = \r3. \wTake \y[\r+600HP/AP\y] - \y[\rDone\y] ^n
TAKE_BOSS_HPAP3 = \r3. \dTake [\r+600HP/AP\d] ^n
TAKE_BOSS_SpeedGrav1 = \r4. \dTake [Speed/Grav] \R%d sec. ^n^n
TAKE_BOSS_SpeedGrav2 = \r4. \wGet \y[\rSpeed/Grav\y] - \y[\rDone\y] ^n^n
TAKE_BOSS_SpeedGrav3 = \r4. \dTake [\rSpeed/Grav\d] ^n^n
BACK_BOSS = \r8. \wBack ^n
MENU_BOSS_USIL_1 = \r1. \wMenu \yPowered weapons ^n
EXIT_BOSS = \r0. \wExit :) ^n^n \y Createt menu by: \wBitter
MENU_BOSS_ZARABOT_1 = \wMenu will be active in \R%d seconds. ^n^n
MENU_BOSS_ZARABOT_2 = \dMenu will be active in \R%d seconds. ^n^n
TAKES_BOSS_MONEY = ^1[^4DOSTAUKR^1] You took the money. ^4Have a good game!
TAKES_BOSS_HPAR = ^1[^4DOSTAUKR^1] You've taken +600HP/AP. ^4Have a good game!
TAKES_BOSS_SPEEDGRAV = ^1[^4DOSTAUKR^1] You have taken Speed/Grav. ^4Have a good game!
WAITTS_BOSS = ^1[^4DOSTAUKR^1] Please wait until the ^4BOSS Menu is available!
DOSTUP_BOSS = ^1[^4DOSTAUKR^1] Only available for: ^4Boss players!
[ru]
MENU_BOSS_1 = \yМеню BOSSA ^n^n
TAKE_BOSS_MONEY1 = \r2. \dВзять [%d] \R%d сек. ^n
TAKE_BOSS_MONEY2 = \r2. \wВзять \y[\r%d$\y] - \y[\rГотово\y] ^n
TAKE_BOSS_MONEY3 = \r2. \dВзять [\r%d$\d] ^n
TAKE_BOSS_HPAP1 = \r3. \dВзять [+600HP/AP] \R%d сек. ^n
TAKE_BOSS_HPAP2 = \r3. \wВзять \y[\r+600HP/AP\y] - \y[\rГотово\y] ^n
TAKE_BOSS_HPAP3 = \r3. \dВзять [\r+600HP/AP\d] ^n
TAKE_BOSS_SpeedGrav1 = \r4. \dВзять [Speed/Grav] \R%d сек. ^n^n
TAKE_BOSS_SpeedGrav2 = \r4. \wВзять \y[\rSpeed/Grav\y] - \y[\rГотово\y] ^n^n
TAKE_BOSS_SpeedGrav3 = \r4. \dВзять [\rSpeed/Grav\d] ^n^n
BACK_BOSS = \r8. \wНазад ^n
MENU_BOSS_USIL_1 = \r1. \wМеню \yУсилиного оружия ^n
EXIT_BOSS = \r0. \wВыход :) ^n^n \y Createt menu by: \wBitter
MENU_BOSS_ZARABOT_1 = \wМеню заработает через \R%d сек. ^n^n
MENU_BOSS_ZARABOT_2 = \dМеню заработает через \R%d сек. ^n^n
TAKES_BOSS_MONEY = ^1[^4DOSTAUKR^1] Вы взяли деньги. ^4Удачной игры!
TAKES_BOSS_HPAR = ^1[^4DOSTAUKR^1] Вы взяли +600HP/AP. ^4Удачной игры!
TAKES_BOSS_SPEEDGRAV = ^1[^4DOSTAUKR^1] Вы взяли Speed/Grav. ^4Удачной игры!
WAITTS_BOSS = ^1[^4DOSTAUKR^1] Подождите пока будет доступна ^4BOSS Меню!
DOSTUP_BOSS = ^1[^4DOSTAUKR^1] Доступно только для: ^4Босс игроков!
Код:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "VIP/ADMIN GUN"
#define VERSION "v 1.0"
#define AUTHOR "Bitter"
#define VIP ADMIN_LEVEL_H
#define ADMIN ADMIN_BAN
#define BOSS ADMIN_LEVEL_G
new keys_gun_priv = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_8|MENU_KEY_0
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_dictionary ("menuprivileg.txt")
register_menu("menu_gun_priv", keys_gun_priv, "cmd_gun_priv")
register_clcmd("test", "GUNMENU1")
}
public GUNMENU1(id)
{
if(get_user_flags(id) & VIP)
{
menu_privileg(id);
}else{
client_print_color(id, 0, "%L", LANG_PLAYER,"PREV_DOSTUP");
}
return PLUGIN_HANDLED;
}
public menu_privileg(id)
{
static menu[650], iLen = 0;
iLen = formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_MENU_PRIV_1")
if(get_user_flags(id) & VIP)
{
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_VIP_MENU_1")
}else{
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_VIP_MENU_2")
}
if(get_user_flags(id) & ADMIN)
{
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_ADMIN_MENU_3")
}else{
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_ADMIN_MENU_4")
}
if(get_user_flags(id) & BOSS)
{
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_BOSS_MENU_5")
}else{
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_BOSS_MENU_6")
}
if(get_user_flags(id) & ADMIN_MENU)
{
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_ADMIN_MENU_7")
}else{
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_ADMIN_MENU_8")
}
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_BACK")
iLen += formatex(menu[iLen], charsmax(menu) - iLen, "%L", LANG_PLAYER,"PREV_EXIT")
return show_menu(id, keys_gun_priv, menu, -1, "menu_gun_priv")
}
public cmd_gun_priv(id, key)
{
switch(key)
{
case 0:
{
if(get_user_flags(id) & VIP)
{
client_cmd(id, "vip_menu")
}else{
client_print_color(id, 0, "%L", LANG_PLAYER,"PREV_DOSTUP_VIP");
menu_privileg(id);
}
}
case 1:
{
if(get_user_flags(id) & ADMIN)
{
client_cmd(id, "admin_menu")
}else{
client_print_color(id, 0, "%L", LANG_PLAYER,"PREV_DOSTUP_ADMIN");
menu_privileg(id);
}
}
case 2:
{
if(get_user_flags(id) & BOSS)
{
client_cmd(id, "boss_menu")
}else{
client_print_color(id, 0, "%L", LANG_PLAYER,"PREV_DOSTUP_BOSS");
menu_privileg(id);
}
}
case 3:
{
if(get_user_flags(id) & ADMIN)
{
client_cmd(id, "amxmodmenu")
}else{
client_print_color(id, 0, "%L", LANG_PLAYER,"PREV_DOSTUP_ADMIN");
menu_privileg(id);
}
}
case 7: client_cmd(id, "menu")
}
return PLUGIN_HANDLED;
}
В этой теме было размещено решение! Перейти к решению.
Download all Attachments
-
24.4 KB Просмотры: 145
-
23.9 KB Просмотры: 152
-
42.3 KB Просмотры: 136
-
620 байт Просмотры: 138
Последнее редактирование: