- Ошибка
-
Не работает раздатчик в меню
- ОС
- Linux
- Amx Mod X
-
[14:45:21] AMX Mod X 1.8.1.3746 (http://www.amxmodx.org)
[14:45:21] Authors:
[14:45:21] David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
[14:45:21] Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
[14:45:21] Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
[14:45:21] Borja "faluco" Ferrer, Scott "Damaged Soul" Ehlert
[14:45:21] Compiled: Aug 16 2008, 19:59:00
[14:45:21] Core mode: JIT+ASM32
- Билд
-
[14:45:41] Protocol version 48
[14:45:41] Exe version 1.1.2.7/Stdio (cstrike)
[14:45:41] ReHLDS version: 3.0.0.398-dev
[14:45:41] Build date: 20:51:58 Jan 17 2017 (1011)
[14:45:41] Build from: https://github.com/dreamstalker/rehlds/commit/b6fe0ac
- ReGamedll
-
[14:45:56] ReGameDLL version: 5.3.0.217-dev
[14:45:56] Build date: 18:18:45 Jul 17 2017
[14:45:56] Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/0f1f4c0
[14:45:56] 146.120.124.105:27005: password failed
- Версия Metamod
-
[14:46:11] Metamod v1.21p37 2013/05/30 (5:13)
[14:46:11] by Will Day
[14:46:11] http://www.metamod.org/
[14:46:11] Patch: Metamod-P (mm-p) v37
[14:46:11] by Jussi Kivilinna
[14:46:11] http://metamod-p.sourceforge.net/
[14:46:11] compiled: May 30 2013, 11:41:16 EET (optimized)
- Список метамодулей
-
[14:46:36] Currently loaded plugins:
[14:46:36] description stat pend file vers src load unlod
[14:46:36] [ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.1.3 ini Start ANY
[14:46:36] [ 2] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never
[14:46:36] [ 3] ReAuthCheck RUN - reauthcheck_mm_i v0.1.5 ini Start Never
[14:46:36] [ 4] Rechecker RUN - rechecker_mm_i38 v2.3 ini Chlvl ANY
[14:46:36] [ 5] WHBlocker RUN - whblocker_mm_i38 v1.5.672 ini Chlvl ANY
[14:46:36] [ 6] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[14:46:36] [ 7] MySQL RUN - mysql_amxx_i386. v1.8.2 pl1 ANY ANY
[14:46:36] [ 8] ReAPI RUN - reapi_amxx_i386. v5.1.0.1 pl1 ANY Never
[14:46:36] [ 9] Fun RUN - fun_amxx_i386.so v1.8.2 pl1 ANY ANY
[14:46:36] [10] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl1 ANY ANY
[14:46:36] [11] CSX RUN - csx_amxx_i386.so v1.8.2 pl1 ANY ANY
[14:46:36] [12] Engine RUN - engine_amxx_i386 v1.8.2 pl1 ANY ANY
[14:46:36] [13] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl1 ANY ANY
[14:46:36] [14] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl1 ANY ANY
[14:46:36] [15] ReCSDM RUN - csdm_amxx_i386.s v3.6 pl1 ANY ANY
[14:46:36] 15 plugins, 15 running
- Список плагинов
-
[14:46:51] Currently loaded plugins:
[14:46:51] name version author file status
[14:46:51] [ 1] AMXBans: Core Gm 1.6 Larte Team amxbans_core.am running
[14:46:51] [ 2] AMXBans: Main Gm 1.6 Larte Team amxbans_main.am running
[14:46:51] [ 3] Fix AutoBuy Bug 1.1 PomanoB & UFPS.T antiautobuybag. running
[14:46:51] [ 4] Anti Crash Bug 1.9 fix5 maarik (wWw.Game crushbugfix.amx running
[14:46:51] [ 5] Custom Radio Commands 0.6 KaLoSZyFeR custom_radio.am running
[14:46:51] [ 6] StatsX (MastaMan Editi 1.8.1.3746 AMXX Dev Team & statsx_shell.am running
[14:46:51] [ 7] StatsX 1.8.1.3746 AMXX Dev Team statsx.amxx paused
[14:46:51] [ 8] Stats Configuration 1.8.1.3746 AMXX Dev Team statscfg.amxx running
[14:46:51] [ 9] Admin Commands 1.8.1.3746 AMXX Dev Team admincmd.amxx running
[14:46:51] [ 10] Admin Chat 1.8.1.3746 AMXX Dev Team adminchat.amxx paused
[14:46:51] [ 11] Admin Votes 1.8.1.3746 AMXX Dev Team adminvote.amxx running
[14:46:51] [ 12] Anti Flood 1.8.1.3746 AMXX Dev Team antiflood.amxx running
[14:46:51] [ 13] Commands Menu 1.8.1.3746 AMXX Dev Team cmdmenu.amxx running
[14:46:51] [ 14] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[14:46:51] [ 15] Maps Menu 1.8.1.3746 AMXX Dev Team mapsmenu.amxx running
[14:46:51] [ 16] Menus Front-End 1.8.1.3746 AMXX Dev Team menufront.amxx running
[14:46:51] [ 17] Multi-Lingual System 1.8.1.3746 AMXX Dev Team multilingual.am running
[14:46:51] [ 18] Pause Plugins 1.8.1.3746 AMXX Dev Team pausecfg.amxx running
[14:46:51] [ 19] Players Menu 1.8.1.3746 AMXX Dev Team plmenu.amxx running
[14:46:51] [ 20] Nextmap Chooser 1.8.1.3746 AMXX Dev Team mapchooser.amxx debug
[14:46:51] [ 21] Plugin Menu 1.8.1.3746 AMXX Dev Team pluginmenu.amxx running
[14:46:51] [ 22] TimeLeft 1.8.1.3746 AMXX Dev Team timeleft.amxx running
[14:46:51] [ 23] NextMap 1.8.1.3746 AMXX Dev Team nextmap.amxx running
[14:46:51] [ 24] CSDM Equip 2.1.1 CSDM Team csdm_equip.amxx running
[14:46:51] [ 25] CSDM Item Mode 2.1.1 FALUCO csdm_itemmode.a running
[14:46:51] [ 26] CSDM Main 2.1.1 CSDM Team csdm_main.amxx running
[14:46:51] [ 27] CSDM Misc 2.1.1 CSDM Team csdm_misc.amxx running
[14:46:51] [ 28] CSDM Protection 2.1.1 BAILOPAN csdm_protection running
[14:46:51] [ 29] CSDM Mod 2.1.1 CSDM Team csdm_spawn_pres running
[14:46:51] [ 30] CSDM Main 2.1.1 CSDM Team csdm_ffa.amxx running
[14:46:51] [ 31] Nice Colored Damage 1.0 sector nice_colored_da running
[14:46:51] [ 32] CSDM Spawn Editor 2.1.1 CSDM Team spawn_editor.am running
[14:46:51] [ 33] Client Autoexec on Con 1.0 Torch client_autoexec running
[14:46:51] [ 34] Sentry guns 0.5.3 JGHG sentry.amxx running
[14:46:51] [ 35] 'Fire in the hole' blo 1.0 xPaw hidefireintheho running
[14:46:51] [ 36] CSSB [WC3] Shopmenu3 1.3 CSSB wc3Shopmenu3.am running
[14:46:51] [ 37] CSSB [WC3] Minigun 1.1 CSSB wc3_extra_minig running
[14:46:51] [ 38] CSSB [WC3] No Flash 1.1 CSSB wc3_no_team_fla running
[14:46:51] [ 39] CSSB [WC3] Unlimited C 1.1 CSSB wc3_extra_unlim running
[14:46:51] [ 40] CSSB [WC3] All Grenade 1.1 CSSB wc3_all_grenade running
[14:46:51] [ 41] BazookaAdvanced 1.3 Major Victory wc3_bazooka.amx running
[14:46:51] [ 42] Golden Ak 47 1.0 AlejandroSk wc3_goldenak.am debug
[14:46:51] [ 43] Golden m4 1.0 AlejandroSk wc3_Goldenm4.am running
[14:46:51] [ 44] Build Dispenser #1.0.1 tuty BuildDispenser. running
[14:46:51] [ 45] LaserMine Entity 1.0 +ARUKARI- lasermine.amxx running
[14:46:51] [ 46] Aim Info + money 1.0 Eg@r4$il{ VictimInfo.amxx running
[14:46:51] [ 47] High Ping Kicker 1.0 Shadow/Bo0m! amx_hpk.amxx running
[14:46:51] [ 48] Roundend Blocker 1.1.100 Nextra roundend_blocke running
[14:46:51] [ 49] Admins are VIP's + gre 1.0 Eg@r4$il{ admin_vgk.amxx running
[14:46:51] [ 50] Health 1.0 Admin hp_vision.amxx running
[14:46:51] [ 51] CSDM Auto Balance 1.0 xPaw csdm_auto_balan running
[14:46:51] [ 52] autojoin by VEN autojoin b autojoin by VEN autojoin.amxx running
[14:46:51] [ 53] Spec Switch 0.0.3 many spec_switch.amx running
[14:46:51] [ 54] AMX Admin Model 1.1.1 whitemike admin_model.amx running
[14:46:51] [ 55] Reset_Score 1.0 Silenttt Fixed b resetscore.amxx running
[14:46:51] [ 56] Auto Restart vl 1.4 vato loco [GE-S] auto_restart.am running
[14:46:51] [ 57] PLUGIN VERSION AUTHOR noslash.amxx running
[14:46:51] [ 58] HUD Customizer 0.3 Igoreso hud_customizer. running
[14:46:51] [ 59] Money Transferer 1.3 kalash1k, Edit b money_transfer. running
[14:46:51] [ 60] unknown unknown unknown blockchangeteam running
[14:46:51] [ 61] Admins Restore 0.1 Fedcomp33 admin_restore.a running
[14:46:51] [ 62] azure demo 1.0 Amxx Newbie loadingsong.amx running
[14:46:51] [ 63] Spectator Hud Informat 0.0.1 ConnorMcLeod spec_hud_info.a running
[14:46:51] [ 64] Knife Scratch 1.0 PahanCS KnifeScratch.am running
[14:46:51] [ 65] Damage Money 2.1 GHW_Chronic damage_bonus.am running
[14:46:51] [ 66] Admin-Check 5.5 p1Mp & S1n[L]Ss admin-ch.amxx running
[14:46:51] [ 67] NadeModes 11.2 Nomexous & OT nademodes.amxx running
[14:46:51] [ 68] Clip Ammo Giver 0.3 Flash clipammogiver.a running
[14:46:51] [ 69] Weapon Model + Sound R 1.2 GHW_Chronic Weapon_Replacem running
[14:46:51] [ 70] AMXX Gag 1.4.9 xPaw & Exolent admin_gag.amxx running
[14:46:51] [ 71] Kill Icon 0.1 muxaz kill_icon.amxx running
[14:46:51] [ 72] Info. Messages 1.8.1.3746 AMXX Dev Team imessage.amxx running
[14:46:51] [ 73] Con Color 1.0 miRror concolor.amxx running
[14:46:51] [ 74] TOP Hats 0.1 TTuCTOH top_hats.amxx running
[14:46:51] [ 75] AMX Admin Model 1.1.1 whitemike amx_adminmodel. running
[14:46:51] [ 76] AES: Bonus CSTRIKE 0.4 serfreeman1337 aes_bonus_cstri running
[14:46:51] [ 77] AES: Bonus System 0.2 serfreeman1337 aes_bonus_syste running
[14:46:51] [ 78] AES: Exp CSTRIKE 0.3 serfreeman1337 aes_exp_cstrike running
[14:46:51] [ 79] AES: Experience Editor 0.1 serfreeman1337 aes_exp_editor. running
[14:46:51] [ 80] AES: Informer 0.2 serfreeman1337 aes_informer.am running
[14:46:51] [ 81] Advanced Experience Sy 0.4 serfreeman1337 aes_main.amxx running
[14:46:51] [ 82] Lite Translit 2.8 neygomon lite_translit.a running
[14:46:51] [ 83] dhud advert 1.0 DUKKHAZ0R dhud_advert.amx running
[14:46:51] [ 84] dhud advert 1.0 DUKKHAZ0R dhud_advert_rou running
[14:46:51] [ 85] Ping Control 1.31 neygomon Ping_Control.am running
[14:46:51] [ 86] Vampire 1.0c Shalfey vampire.amxx running
[14:46:51] [ 87] CSDM Auto Balance 1.0 xPaw balance.amxx running
[14:46:51] [ 88] CS Shop 5.0 iNeedHelp CS_Shop.amxx running
[14:46:51] [ 89] CSDM Menu ultimate 1.1 MrKiller1779 csdm_menu_ultim running
[14:46:51] [ 90] AMXBans: Screens Gm 1.6 Larte Team amxbans_ssban.a running
[14:46:51] [ 91] unknown unknown unknown csdm_stripper.a bad load
[14:46:51] ( 91) Load fails: Plugin uses an unknown function (name "csdm_write_cfg") - check your modules.ini.
[14:46:51] 91 plugins, 88 running
- Автор плагина
- MrKiller1779
- Версия плагина
- 1.1
- Исходный код
-
// //
// //
// Основное и Admin Menu было создано: MrKiller1779. //
// Вип меню от автора: Prorok. //
// Вип меню было интегрировано и улучшено: MrKiller1779. //
// //
// //
// //
////////////////////////////////////////////////////////////////
#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#include <amxmisc>
#define PLUGIN "CSDM Menu ultimate"
#define VERSION "1.1"
#define AUTHOR "MrKiller1779"
#define MAX_PLAYERS 32
//Глобавльные настройки
#define VIP ADMIN_IMMUNITY //Флаг доступа для ВИП
#define ADMIN ADMIN_MENU //Флаг доступа для АДМИНА
//Глобавльные настройки
//Параметры Оружия
//Модели
new M4_V_MODEL[64] = "models/v_gold_m4a1.mdl" //Модель золотой M4A1
new M4_P_MODEL[64] = "models/p_gold_m4a1.mdl" //Модель золотой M4A1
new AK_V_MODEL[64] = "models/v_golden_ak47.mdl" //Модель золотой AK47
new AK_P_MODEL[64] = "models/p_golden_ak47.mdl" //Модель золотой AK47
//Модели
//Другое
#define is_valid_player(%1) (1 <= %1 <= 32)
//M4A1
new cvar_dmgmultiplier //
new cvar_goldbullets //
new cvar_custommodel //
new cvar_uclip //
new bool:g_HasM4[33] //
new bullets[ 33 ] //
new m_spriteTexture //
//M4A1
//AK47
new const AK47_BIT_SUM = (1<<CSW_AK47)
new g_hasZoom[33]
new gold_damage
new golden_model
new bool:g_HasAk[33]
//AK47
//Другое
//Параметры Оружия
//Параметры вип меню
#define DELAY_MONEY 600 //Время после которого, можно взять деньги | По умолчанию: 600 (10 мин.)
#define DELAY_HP 60 //Время после которого, можно взять HP | По умолчанию: 60 (10 мин.)
#define DELAY_MENU 300 //Время после которого, меню включится | По умолчанию: 300 (5 мин.)
#define DELAY_GM4A1 120 //Время после которого, можно взять Gold M4a1 | По умолчанию: 120 (2 мин.)
#define DELAY_GAK47 120 //Время после которого, можно взять Gold M4a1 | По умолчанию: 120 (2 мин.)
#define VIP_MONEYS 10000 //Сколько денег выдавать | По умолчанию: 10000
#define VIP_HP 100 //Сколько здоровья выдавать | По умолчанию: 100
#define VIP_SPEED 500.0 //Сколько скорости выдавать s| По умолчанию: 100
#define VIP_GRAVITY 0.5 //Сколько гравитации выдавать | По умолчанию: 100
//Другое
new MenuTimeHP[MAX_PLAYERS + 1];
new MenuTimeMoney[MAX_PLAYERS + 1];
new MenuTimeGOLDM4A1[MAX_PLAYERS + 1];
new MenuTimeGOLDAK47[MAX_PLAYERS + 1];
new VipMenuTimeGOLDM4A1 [MAX_PLAYERS + 1];
new VipMenuTimeGOLDAK47 [MAX_PLAYERS + 1];
new VipMenuTimeMoney [MAX_PLAYERS + 1];
new VipMenuTimeHP [MAX_PLAYERS + 1];
new VipMenuTime;
new GravityTake [MAX_PLAYERS + 1];
new SpeedTake [MAX_PLAYERS + 1];
new PlayerDeathNow [MAX_PLAYERS + 1];
new PlayerDeathLast [MAX_PLAYERS + 1];
new bool:g_speed[MAX_PLAYERS+1] = false;
#if AMXX_VERSION_NUM < 183
#define Ham_CS_Player_ResetMaxSpeed Ham_Item_PreFrame
#endif
//Другое
//Параметры вип меню
//Параметры основного меню
#define MONEY_LASER 800 // Цена лазера для обычного игрока | По умолчанию: 800
#define MONEY_DISPANSER 4000 //Цена раздатчика для обычного игрока | По умолчанию: 4000
#define VIP_MONEY_LASER 800 //Цена лазера для ВИП игрока | По умолчанию: 800
#define VIP_MONEY_DISPANSER 4000 //Цена раздатчика для ВИП игрока | По умолчанию: 4000
//Другое
new MoneysPlayer[MAX_PLAYERS + 1];
//Другое
//Параметры основного меню
//Параметры Spec
new PlayerInSpec;
new PlayerInTeam;
//Параметры Spec
public plugin_init() {
//Рег. плагин
register_plugin(PLUGIN, VERSION, AUTHOR);
//Рег. плагин
//Параметры для меню
register_clcmd("menu", "csdmMenuFirst");
register_clcmd("chooseteam","csdmMenuFirst");
register_menucmd(register_menuid("csdmMenuFirst"), (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9), "csdmMenuHandle");
//Параметры для меню
//Параметры для админ меню
register_clcmd("amxmodmenu", "csdmAdminMenu");
register_menucmd(register_menuid("csdmAdminMenu"), (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9), "csdmAdminMenuHandle");
//Параметры для админ меню
//Параметры для вип меню
register_clcmd("say /vipmenu", "csdmVipMenu");
register_clcmd("say_team /vipmenu", "csdmVipMenu");
register_clcmd("vipmenu", "csdmVipMenu");
register_menucmd(register_menuid("csdmVipMenu"), (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9), "csdmVipMenuHandle");
RegisterHam(Ham_CS_Player_ResetMaxSpeed, "player", "Check_speed", 0);
//Параметры для вип меню
VipMenuTime = get_systime() + DELAY_MENU; //Время, после которого меню начнет работу (в сек.)
//Параметры для вип меню
//Параметры для ResetScore
register_clcmd("say_team /resetscore","ResetScore");
register_clcmd("say /resetscore","ResetScore");
register_clcmd("say_team /rs","ResetScore");
register_clcmd("say /rs","ResetScore");
//Параметры для ResetScore
//Параметры для /spec
register_clcmd("say /spec", "spec");
register_clcmd("say_team /spec", "spec");
register_clcmd("say /back", "back");
register_clcmd("say_team /back", "back");
//Параметры для /spec
//Параметры для Оружия
//Квары
//Оружие: M4A1
cvar_dmgmultiplier = register_cvar("goldenm4_dmg_multiplier", "2");
cvar_custommodel = register_cvar("goldenm4_custom_model", "1");
cvar_goldbullets = register_cvar("goldenm4_gold_bullets", "1");
cvar_uclip = register_cvar("goldenm4_unlimited_clip", "1");
//Оружие: M4A1
//Оружие: AK47
gold_damage = register_cvar("goldenak_dmg", "5")
golden_model = register_cvar("goldenak_custommodel", "1")
//Оружие: AK47
//Квары
register_event("DeathMsg", "Death", "a");
register_event("WeapPickup","checkModel","b","1=19");
register_event("CurWeapon","checkWeapon","be","1=1");
register_event("CurWeapon", "make_tracer", "be", "1=1", "3>0");
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage");
register_forward( FM_CmdStart, "fw_CmdStart" );
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
//Параметры для Оружия
}
public csdmMenuFirst(id) {
//Параметры НЕ МЕНЯТЬ
remove_task(id);
MoneysPlayer[id] = cs_get_user_money(id);
//Параметры НЕ МЕНЯТЬ
new szMenu[1024];
new iKeys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9);
new iLen = formatex(szMenu, charsmax(szMenu), "\yМеню Сервера^n^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r1.\w Поставить \yПушку ^n" );
//Лазер
if ((MoneysPlayer[id] >= MONEY_LASER) && (!VIP)){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r2.\w Поставить \yЛазер \r[\w%d\r]^n", MONEY_LASER);
} else if ((MoneysPlayer[id] >= VIP_MONEY_LASER) && (VIP)) {
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r2.\w Поставить \yЛазер \r[\w%d\r]^n", VIP_MONEY_LASER);
} else if ((MoneysPlayer[id] < VIP_MONEY_LASER) && (VIP)){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r2.\w Поставить \yЛазер \w[\r%d\w]^n", VIP_MONEY_LASER);
} else if ((MoneysPlayer[id] < MONEY_LASER) && (!VIP)){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r2.\w Поставить \yЛазер \w[\r%d\w]^n", MONEY_LASER);
}
//Лазер
//Раздатчик
if ((MoneysPlayer[id] >= MONEY_DISPANSER) && (!VIP)){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r3.\w Поставить \yРаздатчик \r[\w%d\r]^n^n", MONEY_DISPANSER);
} else if ((MoneysPlayer[id] >= VIP_MONEY_DISPANSER) && (VIP)) {
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r3.\w Поставить \yРаздатчик \r[\w%d\r]^n^n", VIP_MONEY_DISPANSER);
} else if ((MoneysPlayer[id] < VIP_MONEY_DISPANSER) && (VIP)){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r3.\w Поставить \yРаздатчик \w[\r%d\w]^n^n", VIP_MONEY_DISPANSER);
} else if ((MoneysPlayer[id] < MONEY_DISPANSER) && (!VIP)){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r3.\w Поставить \yРаздатчик \w[\r%d\w]^n^n", MONEY_DISPANSER);
}
//Раздатчик
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r4.\w Магазин \r| \yОружия ^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r5.\w Магазин \r| \yНавыков ^n^n");
if(get_user_flags(id) & ADMIN){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r6.\w Админ \yМеню - \r[\wЕсть доступ\r]^n");
} else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r6.\w Админ \yМеню - \w[\rНет доступа\w]^n");
if(get_user_flags(id) & VIP){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r7.\w Вип \yМеню - \r[\wЕсть доступ\r] ^n^n");
} else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r7.\w Вип \yМеню - \w[\rНет доступ\w] ^n^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r0.\w Выход");
return show_menu(id, iKeys, szMenu, -1, "csdmMenuFirst");
}
public csdmAdminMenu(id) {
//Параметры не менять
remove_task(id)
//Параметры не менять
new szMenu[1024];
new iKeys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9);
new iLen = formatex(szMenu, charsmax(szMenu), "\yАдмин Меню^n^n");
if(get_user_flags(id) & ADMIN){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r1.\w Забанить \yигрока^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r2.\w Кикнуть \yигрока ^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r3.\w Ударить\r/\yУбить \yигрока^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r4.\w Сменить команду \yигрока^n^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r5.\w Сменить \yкарту ^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r6.\w Начать \yголосование ^n^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r7.\w Сделать \yрестарт ^n^n");
}
else {
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d1. Забанить игрока^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d2. Кикнуть игрока ^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d3. Пнуть/Убить игрока^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d3. Сменить команду игрока ^n^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d5. Сменить голосование ^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d6. Начать голосование ^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d7. Сделать рестарт ^n^n");
}
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r0.\w Выход");
return show_menu(id, iKeys, szMenu, -1, "csdmAdminMenu");
}
public csdmVipMenu(id) {
//Параметры
new szMenu[1024];
new MenuTime = VipMenuTime - get_systime();
MenuTimeHP[id] = VipMenuTimeHP[id] - get_systime();
MenuTimeMoney[id] = VipMenuTimeMoney[id] - get_systime();
MenuTimeGOLDM4A1[id] = VipMenuTimeGOLDM4A1[id] - get_systime();
MenuTimeGOLDAK47[id] = VipMenuTimeGOLDAK47[id] - get_systime();
new iKeys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9);
PlayerDeathNow[id] = cs_get_user_deaths(id);
//Параметры
//Отображение
if ((MenuTime >= -1) || (MenuTimeHP[id] >= -1) || (MenuTimeHP[id] >= -1) || (MenuTimeGOLDM4A1[id] >= -1)) {
set_task (1.0 , "csdmVipMenu", id);
} else remove_task(id);
//Отображение
new iLen = formatex(szMenu, charsmax(szMenu), "\yВип Меню^n^n");
if (PlayerDeathNow[id] != PlayerDeathLast[id]){
GravityTake[id] = 0;
SpeedTake[id] = 0;
PlayerDeathLast[id] = PlayerDeathNow[id];
}
if (is_user_admin(id) && VIP){
if (VipMenuTime > get_systime()){
iLen += formatex(szMenu[iLen], charsmax(szMenu), "\wМеню заработает через \w[\r%d\w] сек.^n^n", MenuTime);
}
} else iLen += formatex(szMenu[iLen], charsmax(szMenu), "\dМеню заработает через [%d] сек.^n^n", DELAY_MENU);
if ((VipMenuTime < get_systime()) && (VIP)){
if(VipMenuTimeMoney[id] > get_systime()){
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d1. Деньги [%d] - [\r%d\d] сек.^n", VIP_MONEYS,MenuTimeMoney[id]);
} else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r1.\w Деньги \y[\r%d$\y] - \y[\rГотово\y]^n", VIP_MONEYS);
if (VipMenuTimeHP[id] > get_systime())
{
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d2.\d Здоровье \d[\d%d HP\d] - [\r%d\d] сек.^n", VIP_HP,MenuTimeHP[id]);
} else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r2.\w Здоровье \y[\r%d HP\y] - \y[\rГотово\y]^n", VIP_HP);
if (SpeedTake[id] == 1) {
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r3.\w Скорость - \y[\rВзято\y]^n");
} else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r3.\w Скорость^n");
if (GravityTake[id] == 1) {
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r4.\w Гравитация - \y[\rВзято\y]^n");
} else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r4.\w Гравитация^n");
if ((VipMenuTimeGOLDM4A1[id] > get_systime()) && (VIP)) {
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d5. Взять Золотой [M4A1] - [\r%d\d] сек.^n", MenuTimeGOLDM4A1[id]);
} else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r5.\w Взять Золотой \y[\rM4A1\y]\w - \y[\rГотово\y]^n");
if ((VipMenuTimeGOLDAK47[id] > get_systime()) && (VIP)) {
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d6. Взять Золотой [AK47] - [\r%d\d] сек.^n^n", MenuTimeGOLDAK47[id]);
} else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r6.\w Взять Золотой \y[\rAK47\y]\w - \y[\rГотово\y]^n^n");
}
else {
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d1. Деньги [%d$] - [%d] сек.^n", VIP_MONEYS, DELAY_MONEY);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d2. Здоровье [%d HP] - [%d] сек.^n", VIP_HP, DELAY_HP);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d3. Гравитация^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d4. Скорость^n");
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d5. Взять Золотой [M4A1] - [%d] сек.^n", DELAY_GM4A1);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d6. Взять Золотой [AK47] - [%d] сек.^n^n", DELAY_GAK47);
}
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r0.\w Выход");
return show_menu(id, iKeys, szMenu, -1, "csdmVipMenu");
}
public csdmVipMenuHandle(id, iKey)
{
remove_task(id)
if(!is_user_admin(id) && !VIP)
{
ColorChat(id, "!y[!gСервер!y] !tУ вас нету доступа к Вип Меню!");
return PLUGIN_HANDLED;
}
switch(iKey)
{
case 0:
{
if (VipMenuTime < get_systime())
{
if (VipMenuTimeMoney[id] > get_systime())
{
return PLUGIN_HANDLED;
}
ColorChat(id, "!y[!gСервер!y] !gВы взяли деньги. Удачной игры!");
cs_set_user_money(id, cs_get_user_money(id) + VIP_MONEYS);
VipMenuTimeMoney[id] = get_systime(DELAY_MONEY);
}
else csdmVipMenu(id);
}
case 1:
{
if (VipMenuTime < get_systime())
{
ColorChat(id, "!y[!gСервер!y] !gВы взяли здоровье. Удачной игры!");
set_user_health(id, get_user_health(id) + VIP_HP);
VipMenuTimeHP[id] = get_systime(DELAY_HP);
}
else csdmVipMenu(id);
}
case 2:
{
if (VipMenuTime < get_systime())
{
ColorChat(id, "!y[!gСервер!y] !gВы взяли 'Скорость'. Удачной игры!");
speedhack(id);
SpeedTake[id] = 1;
PlayerDeathLast[id] = get_user_deaths(id);
}
else csdmVipMenu(id);
}
case 3:
{
if (VipMenuTime < get_systime())
{
ColorChat(id, "!y[!gСервер!y] !gВы взяли 'Гравитацию'. Удачной игры!");
set_user_gravity(id, VIP_GRAVITY);
GravityTake[id] = 1;
PlayerDeathLast[id] = get_user_deaths(id);
}
else csdmVipMenu(id);
}
case 4: {
if ( !is_user_alive(id) )
{
ColorChat(id, "!y[!gСервер!y] !tЧтобы взять золотую M4A1 вы должны быть живы!");
return PLUGIN_HANDLED
}
if (VipMenuTime < get_systime())
{
if(VipMenuTimeGOLDM4A1[id] > get_systime())
{
return PLUGIN_HANDLED;
}
give_item(id, "weapon_m4a1");
g_HasM4[id] = true;
ColorChat(id, "!y[!gСервер!y] !gВы взяли Золотой M4A1. Удачной игры!");
VipMenuTimeGOLDM4A1[id] = get_systime(DELAY_GM4A1);
}
}
case 5: {
if ( !is_user_alive(id) )
{
ColorChat(id, "!y[!gСервер!y] !tЧтобы взять золотой АК47 вы должны быть живы!");
return PLUGIN_HANDLED
}
if (VipMenuTime < get_systime())
{
if (VipMenuTimeGOLDAK47[id] > get_systime())
{
return PLUGIN_HANDLED;
}
drop_weapon(id, 1)
give_item(id, "weapon_ak47")
cs_set_user_bpammo(id, CSW_AK47, 90)
g_HasAk[id] = true
ColorChat(id, "!y[!gСервер!y] !gВы взяли Золотой AK47. Удачной игры!");
VipMenuTimeGOLDAK47[id] = get_systime(DELAY_GAK47);
}
}
case 9: {
remove_task(id);
}
}
return PLUGIN_HANDLED;
}
public csdmAdminMenuHandle(id, iKey)
{
if(!is_user_admin(id) && !ADMIN)
{
ColorChat(id, "!y[!gСервер!y] У вас нету доступа к Админ Меню!");
return PLUGIN_HANDLED;
}
switch(iKey)
{
case 0: client_cmd(id, "amx_banmenu")
case 1: client_cmd(id, "amx_kickmenu")
case 2: client_cmd(id, "amx_slapmenu")
case 3: client_cmd(id, "amx_teammenu")
case 4: client_cmd(id, "amx_mapmenu")
case 5: client_cmd(id, "amx_votemapmenu")
case 6:
{
server_cmd("sv_restartround 1")
new name[32]
get_user_name(id, name, 31)
ColorChat(0, "!y[!gСервер!y] !tАдмин !g%s !tСделал рестарт", name)
}
}
return PLUGIN_HANDLED;
}
public csdmMenuHandle(id, iKey) {
switch(iKey)
{
case 0: client_cmd(id, "sentry_build")
case 1: client_cmd(id, "+setlaser")
case 2: client_cmd(id, "buy_disp")
case 3: client_cmd(id, "shopmenu3")
case 4: client_cmd(id, "say /shop")
case 5: client_cmd(id, "amxmodmenu")
case 6: client_cmd(id, "say /vipmenu")
}
return PLUGIN_HANDLED;
}
//-----------------------Доп.Плагины--------------------
public speedhack(id){
g_speed[id] = !g_speed[id];
set_pev(id, pev_maxspeed, VIP_SPEED);
}
public Check_speed(id){
if(g_speed[id])
return HAM_SUPERCEDE;
return HAM_IGNORED;
}
public ResetScore(id) {
if(is_user_connected(id))
{
new name[32]
get_user_name(id, name, 31)
set_user_frags(id, 0);
cs_set_user_deaths(id, 0);
ColorChat(id, "!y[!gСервер!y] !t%s !gВы сбросили счет!", name);
}
}//ResetScore
public spec(id) {
PlayerInSpec = cs_get_user_deaths(id);
if (cs_get_user_team(id) == CS_TEAM_SPECTATOR)
return PLUGIN_HANDLED
else {
PlayerInTeam = cs_get_user_team(id);
cs_set_user_team(id, CS_TEAM_SPECTATOR);
user_kill(id, 1);
}
return PLUGIN_CONTINUE
}//SPEC
public back(id) {
if ((cs_get_user_team(id) == CS_TEAM_SPECTATOR) && (!is_user_alive(id))){
cs_set_user_team(id, PlayerInTeam);
cs_set_user_deaths(id, PlayerInSpec);
cs_user_spawn(id);
}
}//SPEC
//------------------------GOLD------------------------
public client_connect(id)
{
g_HasM4[id] = false
g_HasAk[id] = false
}
public client_disconnect(id)
{
g_HasM4[id] = false
g_HasAk[id] = false
}
public Death(id)
{
g_HasM4[read_data(2)] = false
g_HasAk[read_data(2)] = false
set_pev(id, pev_maxspeed, 400.0);
}
public fwHamPlayerSpawnPost(id)
{
g_HasM4[id] = false
g_HasAk[id] = false
}
public plugin_precache()
{
precache_model(M4_V_MODEL)
precache_model(M4_P_MODEL)
precache_model(AK_V_MODEL)
precache_model(AK_P_MODEL)
m_spriteTexture = precache_model("sprites/dot.spr")
precache_sound("weapons/zoom.wav")
}
public checkModel(id)
{
new szWeapID = read_data(2)
if ( szWeapID == CSW_M4A1 && g_HasM4[id] == true && get_pcvar_num(cvar_custommodel) )
{
set_pev(id, pev_viewmodel2, M4_V_MODEL)
set_pev(id, pev_weaponmodel2, M4_P_MODEL)
}
if(szWeapID == CSW_AK47 && g_HasAk[id] == true && get_pcvar_num(golden_model) == 1) {
set_pev(id, pev_viewmodel2, AK_V_MODEL)
set_pev(id, pev_weaponmodel2, AK_P_MODEL)
}
return PLUGIN_HANDLED
}
public checkWeapon(id)
{
new plrClip, plrAmmo, plrWeap[32]
new plrWeapId
plrWeapId = get_user_weapon(id, plrClip , plrAmmo)
if (plrWeapId == CSW_AK47 && g_HasAk[id])
checkModel(id)
else
{
if (plrWeapId == CSW_M4A1 && g_HasM4[id])
{
checkModel(id)
}
else
{
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
if (plrClip == 0 && get_pcvar_num(cvar_uclip))
{
get_weaponname(plrWeapId, plrWeap, 31)
give_item(id, plrWeap)
engclient_cmd(id, plrWeap)
engclient_cmd(id, plrWeap)
engclient_cmd(id, plrWeap)
}
return PLUGIN_HANDLED
}
public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
if (is_valid_player(attacker) && get_user_weapon(attacker) == CSW_M4A1 && g_HasM4[attacker])
SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmgmultiplier))
if(is_valid_player(attacker) && get_user_weapon(attacker) == CSW_AK47 && g_HasAk[attacker])
SetHamParamFloat(4, damage * get_pcvar_float(gold_damage))
}
public make_tracer(id)
{
if (get_pcvar_num(cvar_goldbullets))
{
new clip,ammo
new wpnid = get_user_weapon(id,clip,ammo)
new pteam[16]
get_user_team(id, pteam, 15)
if ((bullets[id] > clip) && (((wpnid == CSW_M4A1) && g_HasM4[id]) || ((wpnid == CSW_AK47) && g_HasAk[id])))
{
new vec1[3], vec2[3]
get_user_origin(id, vec1, 1) // origin; your camera point.
get_user_origin(id, vec2, 4) // termina; where your bullet goes (4 is cs-only)
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte (0) //TE_BEAMENTPOINTS 0
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
write_short( m_spriteTexture )
write_byte(1) // framestart
write_byte(5) // framerate
write_byte(2) // life
write_byte(10) // width
write_byte(0) // noise
write_byte( 255 ) // r, g, b
write_byte( 215 ) // r, g, b
write_byte( 0 ) // r, g, b
write_byte(200) // brightness
write_byte(150) // speed
message_end()
}
bullets[id] = clip
}
}
public CmdBuyM4(id)
{
if ( !is_user_alive(id) )
{
client_print(id,print_chat, "Чтобы купить золотую M4A1 вы должны быть живы!")
return PLUGIN_HANDLED
}
give_item(id, "weapon_m4a1")
g_HasM4[id] = true
return PLUGIN_HANDLED
}
public CmdGiveM4(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED;
new arg[32];
read_argv(1,arg,31);
new player = cmd_target(id,arg,7);
if (!player)
return PLUGIN_HANDLED;
new name[32];
get_user_name(player,name,31);
give_item(player, "weapon_m4a1")
g_HasM4[player] = true
return PLUGIN_HANDLED
}
public fw_CmdStart( id, uc_handle, seed ) {
if(!is_user_alive(id))
return PLUGIN_HANDLED
if((get_uc(uc_handle, UC_Buttons) & IN_ATTACK2) && !( pev(id, pev_oldbuttons) & IN_ATTACK2)) {
new szWeapID = get_user_weapon(id)
if(szWeapID == CSW_AK47 && g_HasAk[id] == true && !g_hasZoom[id] == true) {
g_hasZoom[id] = true
cs_set_user_zoom(id, CS_SET_AUGSG552_ZOOM, 0)
emit_sound(id, CHAN_ITEM, "weapons/zoom.wav", 0.20, 2.40, 0, 100)
} else if(szWeapID == CSW_AK47 && g_HasAk[id] == true && g_hasZoom[id]) {
g_hasZoom[id] = false
cs_set_user_zoom(id, CS_RESET_ZOOM, 0)
}
}
return PLUGIN_HANDLED
}
//-------------------------GOLD------------------------
//-----------------------Доп.Плагины--------------------
//-----------------------Другое-------------------------
stock ColorChat(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
format(msg, sizeof(msg), "%s", msg)
replace_all(msg, 190, "!g", "^4") // Green Color
replace_all(msg, 190, "!y", "^1") // Default Color
replace_all(msg, 190, "!t", "^3") // Team Color
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
stock drop_weapon(id, dropwhat) {
static weapons[32], num, i, weaponid
num = 0
get_user_weapons(id, weapons, num)
for (i = 0; i < num; i++) {
weaponid = weapons[i]
if ((dropwhat == 1 && ((1<<weaponid) & AK47_BIT_SUM))) {
static wname[32]
get_weaponname(weaponid, wname, charsmax(wname))
engclient_cmd(id, "drop", wname)
}
}
}
Доброго времени суток, нужна ваша помощь. В меню не работает Раздатчик, я уже где только не скачивал его, а он всё равно не работает. Не поможете? В чём может быть проблема, до этого, на хлдс всё работало, а сегодня перешёл на рехлдс и всё, раздатчик перестал работать
В этой теме было размещено решение! Перейти к решению.