Помогите решить проблему с админ меню

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
8
Реакции
-10
Ошибка
Ошибок нету
ОС
Linux
Amx Mod X
AMX Mod X 1.8.2
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 16:10:54 Aug 10 2018 (7960)
ReGamedll
Не установлен
Версия Metamod
Metamod v1.19p32
Список метамодулей
Currently running plugins:
[ 1] AMX Mod X, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 2] dproto, v0.4.8, 2010/01/28, by Crock, see
[ 3] Booster-Lite, v1.13, 31.1.2004, by Jussi Kivilinna <[email protected]>, see http://hullu.xtragaming.com/
[ 4] POD-Bot mm, v3.0B18c, Mar 27 2007, by Count Floyd & Bots United, see http://www.bots-united.com
[ 5] CStrike, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 6] CSX, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org/
[ 7] Fun, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 8] MySQL, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org/
[ 9] SQLite, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org/
[ 10] Engine, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 11] FakeMeta, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 12] Ham Sandwich, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 13] CSDM2, v2.1.2, Oct 25 2008, by CSDM Team, see http://www.bailopan.net/
13 plugins
Список плагинов
] amxx plugins
Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.8.1.3746 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.8.1.3746 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.8.1.3746 AMXX Dev Team adminhelp.amxx running
[ 4] AdminListen 2.3x /dev/ urandom adminlisten.amx running
[ 5] Slots Reservation 1.8.1.3746 AMXX Dev Team adminslots.amxx running
[ 6] Admin Votes 1.8.1.3746 AMXX Dev Team adminvote.amxx running
[ 7] Admin Spectator ESP 1.3 KoST admin_spec_esp. running
[ 8] Commands Menu 1.8.1.3746 AMXX Dev Team cmdmenu.amxx running
[ 9] AmxModMenu_New 1.0 lol ;D menufront.amxx running
[ 10] CSDM Equip 2.1.1 CSDM Team csdm_equipe.amx running
[ 11] CSDM Item Mode 2.1.1 FALUCO csdm_itemmode.a running
[ 12] CSDM Misc 2.1.1 CSDM Team csdm_misc.amxx running
[ 13] AdminMenu v0.2 Fix Jeka_Pro PZ_adminmenu.am running
[ 14] CSDM Mod 2.1.1 CSDM Team csdm_spawn_pres running
[ 15] CSDM Main 2.1.1 CSDM Team csdm_ffa.amxx running
[ 16] CSDM Main 2.1.1 CSDM Team csdm_main.amxx running
[ 17] CSDM Protection 2.1.1 BAILOPAN csdm_protection running
[ 18] CSDM Ticketing 2.1.1 BAILOPAN csdm_tickets.am running
[ 19] AES: Exp CSTRIKE 0.3 serfreeman1337 aes_exp_cstrike running
[ 20] AES: Informer 0.2 serfreeman1337 aes_informer.am running
[ 21] AES: Experience Editor 0.1 serfreeman1337 aes_exp_editor. running
[ 22] Advanced Experience Sy 0.4 serfreeman1337 aes_main.amxx running
[ 23] Build Dispenser 0.1 pro100iweb disp_mod.amxx running
[ 24] Sentry guns 1.1 JGHG & miRror sentrygun.amxx running
[ 25] SF TripMine 0.3.4 serfreeman1337 lasermine_v0_3_ running
[ 26] unknown unknown unknown laserfence.amxx running
[ 27] [CS] Runes of Quake 0.5 81x08 cs_runes_of_qua running
[ 28] Block 'Fire in the hol 0.1 Safety1st block_fire_in_t running
[ 29] AMX VIP Model 1.0 Starik amx_vipmodel.am running
[ 30] Block WallHack 4.5 OT block_wallhack. running
[ 31] CS Sprite fix 1.1.0 EKS/CheesyPeteza bomb_icon.amxx running
[ 32] Set console Plugin 1.0.0.1 Moxnatiy_aimm.co inp_medium.amxx running
[ 33] Map Manager RU 1.2.2 Mistrick mapmanager_ru.a running
[ 34] Maps Menu 1.8.1.3746 AMXX Dev Team mapsmenu.amxx running
[ 35] CS Misc. Stats 1.8.1.3746 AMXX Dev Team miscstats.amxx running
[ 36] Multi-Lingual System 1.8.1.3746 AMXX Dev Team multilingual.am running
[ 37] NextMap 1.8.1.3746 AMXX Dev Team nextmap.amxx running
[ 38] Pause Plugins 1.8.1.3746 AMXX Dev Team pausecfg.amxx running
[ 39] Players Menu 1.8.1.3746 AMXX Dev Team plmenu.amxx running
[ 40] Plugin Menu 1.8.1.3746 AMXX Dev Team pluginmenu.amxx running
[ 41] Restrict Weapons 1.8.1.3746 AMXX Dev Team restmenu.amxx running
[ 42] Scrolling Message 1.8.1.3746 AMXX Dev Team scrollmsg.amxx running
[ 43] Stats Configuration 1.8.1.3746 AMXX Dev Team statscfg.amxx running
[ 44] CS Stats Logging 1.8.1.3746 AMXX Dev Team stats_logging.a running
[ 45] Teleport Menu 1.8.1.3746 AMXX Dev Team telemenu.amxx running
[ 46] TimeLeft 1.8.1.3746 AMXX Dev Team timeleft.amxx running
[ 47] Weapon Menu 1.0 Mattcook & xerob weaponmenu.amxx running
[ 48] Weapon Icon 1.2 hoboman313/Zenix weapon_icon.amx running
[ 49] POD-Bot Menu 1.3 g4s|figurE.09 amxx_podbotmenu running
[ 50] Parachute 1.3 KRoT@L/JTP10181 Parachute.amxx running
[ 51] Advanced Bullet Damage 1.0 Sn!ff3r abd.amxx running
[ 52] Revolution Anti-Cheat 0.2 StRiKeR.csF Revolution_AC.a running
[ 53] Kill assist (for CS) 1.1b Digi (a.k.a. Hun kill_assist.amx running
[ 54] voteban menu 1.2 hjvl voteban.amxx running
[ 55] unknown unknown unknown transfer.amxx running
[ 56] Ultimate Sounds 1.7 Dizzy / Bmann_42 f_ultimate_soun running
[ 57] CS Shop 5.0 iNeedHelp CS_Shop.amxx running
[ 58] Fade Screen 20.15 LegenDa fade_screen[gre running
[ 59] SnowFlake Grenade Trai 1.0 seroff gt.amxx running
[ 60] NewCSDM_Menu 1.2 NewGame_PL menu.amxx running
[ 61] Player Status 1.0 Player Status hp_ap.amxx running
[ 62] VIP CSDM 1.0 Godzilla csdm_vipmenu.am running
[ 63] NewCSDM_Menu 1.2 NewGame_PL menu_csdm.amxx running
[ 64] AdminMenu v0.2 Fix Jeka_Pro CSDM_adminmenu. running
[ 65] Lite Translit 2.8 neygomon lite_translit.a running
[ 66] CSSB Destroyer 06.01.2017 SMaster cssbDestroyer.a running
[ 67] StatsX (MastaMan Editi 1.8.1.3746 AMXX Dev Team & statsx_shell.am running
[ 68] NewCSDM_Menu 1.2 NewGame_PL MENU_TOPA_MAPS_ running
[ 69] privilege info 1.0 Yukki buy_vip.amxx running
[ 70] NewCSDM_Menu 1.2 NewGame_PL MENU_buy.amxx running
[ 71] shop menu hop menu op menu shop_menu.amxx running
[ 72] [CSO] Dual Infinity Fi 1.0 Arwel dual_infinity_f running
[ 73] [ZP] Extra: M1887 1.0 Crock / =) (Popr vip_m1887.amxx running
[ 74] [ZP] Extra Item: AK47 3.0 4e/l vip_ak47.amxx running
[ 75] [ZP] Extra: M4A1 Gold 1.0 LARS-BLOODLIKER vip_m4a1.amxx running
[ 76] [ZP] Vip Weapon: M14EB 1.0 inf vip_m14ebr.amxx running
[ 77] VSK-94 1.0 Crock/Overkill vip_vsk94.amxx running
77 plugins, 77 running
Автор плагина
Jeka_Pro
Версия плагина
v0.2 Fix
Исходный код
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#include <engine>
#include <cstrike>
#include <fun>

#define DEBUG 0

#if AMXX_VERSION_NUM < 183
#include <dhudmessage>
#include <colorchat>
#define MAX_PLAYERS 32
#define Ham_CS_Player_ResetMaxSpeed Ham_Item_PreFrame
#endif

#pragma tabsize 0

new keys = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9|MENU_KEY_0

new Spawn[33]
new Gravity[33]
new SpeedA[33]
new Invis[33]
new Money[33]
new HP[33]
new Grenade[33]
new Spead[33]

new timeMoney[33];
new timeGravity[33];
new timeSpeedA[33];
new timeInvis[33];

new cvar_time_for_money;
new cvar_time_for_gravity;
new cvar_time_for_speeda;
new cvar_time_for_invis;
new cvar_time_invis;


#define PLUGIN "AdminMenu"
#define VERSION "v0.2 Fix"
#define AUTHOR "Jeka_Pro"

#define OFFSET_WEAPONSPEED 58

#define OFFSET_CLIPAMMO 51
#define OFFSET_LINUX_WEAPONS 4
#define fm_cs_set_weapon_ammo(%1,%2) set_pdata_int(%1, OFFSET_CLIPAMMO, %2, OFFSET_LINUX_WEAPONS)

#define m_pActiveItem 373

const NOCLIP_WPN_BS = ((1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_FLASHBANG)|(1<<CSW_KNIFE)|(1<<CSW_C4))

//new const g_iMaxClip[CSW_P90 + 1] = { -1, 13, -1, 10, 1, 7, 1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20, 10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 };

new bool:g_bDamage[33], bool:g_bUnlimitedAmmo[33];

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_menu("Menu 1", keys, "func_menu")
register_clcmd("adminmenu", "adminmenu")
register_event("CurWeapon" , "Event_CurWeapon" , "be" , "1=1" );
register_event("HLTV", "RoundNew", "a", "1=0", "2=0")

RegisterHam(Ham_CS_Player_ResetMaxSpeed, "player", "Check_Speed", 0);
RegisterHam(Ham_Spawn, "player", "Player_Spawn", 0)

RegisterHam(Ham_Killed, "player", "HamHook_Killed_Post", true);
RegisterHam(Ham_TakeDamage, "player", "HamHook_TakeDamage_Player", false);

cvar_time_for_money = register_cvar("time_for_money","15") //время в минутах
cvar_time_for_gravity = register_cvar("time_for_gravity","10") //время в минутах
cvar_time_for_speeda = register_cvar("time_for_speeda","10") //время в минутах
cvar_time_for_invis = register_cvar("time_for_invis","10") //время в минутах
cvar_time_invis = register_cvar("adminmenu_time_invis","300") //Время в секундах
}

public client_putinserver(id)
{
#if !DEBUG
static systime; systime = get_systime();
timeMoney[id] = systime + get_pcvar_num(cvar_time_for_money)*60;
timeGravity[id] = systime + get_pcvar_num(cvar_time_for_gravity)*60;
timeSpeedA[id] = systime + get_pcvar_num(cvar_time_for_speeda)*60;
timeInvis[id] = systime + get_pcvar_num(cvar_time_for_invis)*60;
#endif

Spawn[id] = 2
Gravity[id] = 3
SpeedA[id] = 3
Invis[id] = 3
Money[id] = 3
HP[id] = 3
Grenade[id] = 3
g_bDamage[id] = false;
g_bUnlimitedAmmo[id] = false;
}

public HamHook_Killed_Post(pIdv, pIda)
{
g_bDamage[pIdv] = false;
g_bUnlimitedAmmo[pIdv] = false;
}

public HamHook_TakeDamage_Player(pIdv, iInflictor, pIda, Float:fDamage, iDamageBitsum)
{
if(!is_user_connected(pIdv) || !is_user_connected(pIda) || pIdv == pIda) return;

if(g_bDamage[pIda])
{
SetHamParamFloat(4, fDamage * 2.0);
}
}

public RoundNew()
{
for(new id = 1;id <= 32; id++)
{
Spawn[id] = 2
Gravity[id] = 3
SpeedA[id] = 3
Invis[id] = 3
Money[id] = 3
HP[id] = 3
Grenade[id] = 3
g_bDamage[id] = false;
g_bUnlimitedAmmo[id] = false;
}
}

public adminmenu(id)
{
static systime; systime = get_systime();
static flags; flags = get_user_flags(id);
static m, s;
static menu[650], Len
Len = 0
Len = formatex(menu[Len], charsmax(menu) - Len, "\r[\yCSDM\r] \wADMIN Меню^n^n");

if(!is_user_alive(id))
{
if(flags & ADMIN_MAP)
{
if(!Spawn[id])
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[1] Воскреснуть^n")
keys &= ~MENU_KEY_1
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y1\r] \wВоскреснуть: \r(\y%d\r)^n", Spawn[id])
keys |= MENU_KEY_1
}
}
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[1] Воскреснуть^n")
keys &= ~MENU_KEY_1
}

if(flags & ADMIN_MAP)
{
if (!Gravity[id])
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[2] Взять гравитацию^n")
keys &= ~MENU_KEY_2
}
else
{
if (timeGravity[id] < systime)
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y2\r] \wВзять гравитацию: \r(\y%d\r)^n", Gravity[id])
keys |= MENU_KEY_2
}
else
{
m = (timeGravity[id] - systime) / 60; s = (timeGravity[id] - systime) % 60;
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[2] Взять гравитацию: (%d) [\y%d:%s%d\d]^n", Gravity[id], m, s < 10 ? "0" : "", s)
keys &= ~MENU_KEY_2
}
}
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[2] Взять гравитацию^n")
keys &= ~MENU_KEY_2
}

if(flags & ADMIN_MAP)
{
if (!SpeedA[id])
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[3] Взять скорость^n")
keys &= ~MENU_KEY_3
}
else
{
if (timeSpeedA[id] < systime)
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y3\r] \wВзять скорость: \r(\y%d\r)^n", SpeedA[id])
keys |= MENU_KEY_3
}
else
{
m = (timeSpeedA[id] - systime) / 60; s = (timeSpeedA[id] - systime) % 60;
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[3] Взять скорость: (%d) [\y%d:%s%d\d]^n", SpeedA[id], m, s < 10 ? "0" : "", s)
keys &= ~MENU_KEY_3
}
}
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[3] Взять скорость^n")
keys &= ~MENU_KEY_3
}

if(flags & ADMIN_MAP)
{
if (!Invis[id])
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[4] Взять невидимость^n")
keys &= ~MENU_KEY_4
}
else
{
if (timeInvis[id] < systime)
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y4\r] \wВзять невидимость: \r(\y%d\r)^n", Invis[id])
keys |= MENU_KEY_4
}
else
{
m = (timeInvis[id] - systime) / 60; s = (timeInvis[id] - systime) % 60;
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[4] Взять невидимость: (%d) [\y%d:%s%d\d]^n", Invis[id], m, s < 10 ? "0" : "", s)
keys &= ~MENU_KEY_4
}
}
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[4] Взять невидимость^n")
keys &= ~MENU_KEY_4
}

if(flags & ADMIN_MAP)
{
if (!Money[id])
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[5] Взять (5000$)^n")
keys &= ~MENU_KEY_5
}
else
{
if (timeMoney[id] < systime)
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y5\r] \wВзять (5000$): \r(\y%d\r)^n", Money[id])
keys |= MENU_KEY_5
}
else
{
m = (timeMoney[id] - systime) / 60; s = (timeMoney[id] - systime) % 60;
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[5] Взять (5000$): (%d) [\y%d:%s%d\d]^n", Money[id], m, s < 10 ? "0" : "", s)
keys &= ~MENU_KEY_5
}
}
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[5] Взять (5000$)^n")
keys &= ~MENU_KEY_5
}

if(flags & ADMIN_MAP)
{
if(!HP[id])
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[6] Взять 250HP и 250AP^n", HP[id])
keys &= ~MENU_KEY_6
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y6\r] \wВзять \y250HP и 250AP: \r(\y%d\r)^n", HP[id])
keys |= MENU_KEY_6
}
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[6] Взять 250HP и 250AP^n", HP[id])
keys &= ~MENU_KEY_6
}

if(flags & ADMIN_MAP)
{
if(!Grenade[id])
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[7] Взять гранаты^n^n", Grenade[id])
keys &= ~MENU_KEY_7
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y7\r] \wВзять гранаты: \r(\y%d\r)^n^n", Grenade[id])
keys |= MENU_KEY_7
}
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[7] Взять гранаты^n^n", Grenade[id])
keys &= ~MENU_KEY_7
}

if(g_bDamage[id])
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\d[8] AmxModMenu \yNew\r*^n")
keys &= ~MENU_KEY_8
}
else
{
Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y8\r] \wAmxModMenu \yNew\r*^n")
keys |= MENU_KEY_8
}

Len += formatex(menu[Len], charsmax(menu) - Len, "\r[\y0\r] \wВыход^n")
keys |= MENU_KEY_0

show_menu(id, keys, menu, -1, "Menu 1");
return PLUGIN_HANDLED
}

public func_menu(id, key)
{
static systime; systime = get_systime();
switch(key)
{
case 0:
{
if(!is_user_alive(id))
{
if(!Spawn[id])
{
return PLUGIN_CONTINUE
}
else
{
--Spawn[id]
ExecuteHam(Ham_CS_RoundRespawn, id)
}
}
}
case 1:
{
--Gravity[id]
set_user_gravity(id, 0.5)
timeGravity[id] = systime + get_pcvar_num(cvar_time_for_gravity)*60;
}
case 2:
{
--SpeedA[id]
set_user_maxspeed(id, 300.0)
Spead[id] = true
timeSpeedA[id] = systime + get_pcvar_num(cvar_time_for_speeda)*60;
}
case 3:
{
--Invis[id]
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,60)
set_task(get_pcvar_float(cvar_time_invis),"invisEnd",id);
timeInvis[id] = systime + get_pcvar_num(cvar_time_for_invis)*60;
}
case 4:
{
--Money[id]
cs_set_user_money(id, cs_get_user_money(id) + 5000)
timeMoney[id] = systime + get_pcvar_num(cvar_time_for_money)*60;
}
case 5:
{
--HP[id]
set_user_health(id, 250)
set_user_armor(id, 250)
}
case 6:
{
--Grenade[id]
give_item( id, "weapon_hegrenade")
give_item( id, "weapon_smokegrenade")
}
case 7:
{
client_cmd(id, "amxmodmenu")
}
}
if (key < 7)
adminmenu(id)
return PLUGIN_HANDLED
}

public invisEnd(id)
{
set_rendering(id,kRenderFxNone,255,255,255,kRenderNormal,16)
#if AMXX_VERSION_NUM < 183
ColorChat(id,GREEN,"[ADMIN Меню] ^1Действие невидимости закончилось, вас снова видят.")
#else
client_print_color(id, print_team_default, "[ADMIN Меню] ^1Действие невидимости закончилось, вас снова видят.")
#endif
}

public Check_Speed(id)
{
if(Spead[id])
{
return HAM_SUPERCEDE;
}
return HAM_IGNORED;
}

public Player_Spawn(id)
{
if (!is_user_connected(id))
return HAM_IGNORED
if(Spead[id])
{
Spead[id] = false;
set_pev(id, pev_gravity, 1.0)
ExecuteHamB(Ham_CS_Player_ResetMaxSpeed, id)
}
return HAM_IGNORED
}
Всех с новым годом

Помогите такая проблема у меня все флаги прописаны когда я открываю меню то мне там не доступна не одна функция
y8qKbwiws_8.jpg
 
Сообщения
56
Реакции
8
Помог
3 раз(а)
"Если ваша версия Amx Mod X = 1.8.2 (и ниже) или ReAMXX, то заполнять анкету смысла нет. На нашем форуме не поддерживаются устаревшие версии."
 
Статус
В этой теме нельзя размещать новые ответы.

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

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