Пользователь
- Сообщения
- 76
- Реакции
- 3
- Помог
- 1 раз(а)
Неверный раздел форума
Возникает такая проблема при смене языка 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 Просмотры: 13
-
23.9 KB Просмотры: 13
-
42.3 KB Просмотры: 12
-
620 байт Просмотры: 11