Пользователь
- Сообщения
- 5
- Реакции
- 0
- Ошибка
-
Не работает мод CSDM
- ОС
- Windows
- Билд
-
6153
- ReGamedll
-
нет
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 2] dproto_EF RUN - dproto_i386.so v0.9.548 ini Start Never
[ 3] CustomizationEx RUN - cef.so v0.0.2 ini ANY ANY
[ 4] ImpulseFullUpda RUN - ifuf.so v1.0 ini ANY Never
[ 5] LocalizeBug Fix RUN - localizebugfix_m v2.4 ini Start Never
[ 6] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[ 7] Fun RUN - fun_amxx_i386.so v1.8.2 pl1 ANY ANY
[ 8] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl1 ANY ANY
[ 9] CSX RUN - csx_amxx_i386.so v1.8.2 pl1 ANY ANY
[10] CSDM2 RUN - csdm_amxx_i386.s v2.1.3c- pl1 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl1 ANY ANY
[12] Engine RUN - engine_amxx_i386 v1.8.2 pl1 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl1 ANY ANY
- Список плагинов
-
[ 1] Admin Base 1.8.2 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.8.2 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.8.2 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.8.2 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.8.2 AMXX Dev Team plmenu.amxx running
[ 9] Teleport Menu 1.8.2 AMXX Dev Team telemenu.amxx running
[ 10] Maps Menu 1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 11] Plugin Menu 1.8.2 AMXX Dev Team pluginmenu.amxx running
[ 12] Admin Chat 1.8.2 AMXX Dev Team adminchat.amxx running
[ 13] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running
[ 14] Scrolling Message 1.8.2 AMXX Dev Team scrollmsg.amxx running
[ 15] Info. Messages 1.8.2 AMXX Dev Team imessage.amxx running
[ 16] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 17] NextMap 1.8.2 AMXX Dev Team nextmap.amxx running
[ 18] Nextmap Chooser 1.8.2 AMXX Dev Team mapchooser.amxx running
[ 19] TimeLeft 1.8.2 AMXX Dev Team timeleft.amxx running
[ 20] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 21] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 22] Restrict Weapons 1.8.2 AMXX Dev Team restmenu.amxx running
[ 23] StatsX 1.8.2 AMXX Dev Team statsx.amxx running
[ 24] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 25] Damager 1.1 Prayer|STR@TEG damager.amxx running
[ 26] Chat RBS | MultiPlay 15.07.15 SKAJIbnEJIb chat_rbs_multip running
[ 27] Army Ranks Ultimate | 15.07.15 SKAJIbnEJIb army_ranks_ulti running
[ 28] Parachute 1.3 KRoT@L/JTP10181 parachute.amxx running
[ 29] Eye Lids 0.1 jsauce and VEN eyelids.amxx running
[ 30] unknown unknown unknown csstats.amxx running
[ 31] Ultimate Sound 1.5 Dizzy ultimate_sounds running
[ 32] Smoke Grenade Features 1.4 Numb sgren_features. running
[ 33] RoundSound 1.0 PaintLancer round.amxx running
[ 34] Welcom 1.0 No aue1234.amxx debug
[ 35] Bazooka 0.9 More bazooka.amxx running
[ 36] POD-Bot Menu 1.3 g4s|figurE.09 amxx_podbotmenu running
[ 37] Kill assist (for CS) 1.1b Digi (a.k.a. Hun kill_assist.amx running
[ 38] Blue Fade 0.1 Stimul Blue_Fade.amxx running
[ 39] CSDM Equip 2.1.3c CSDM Team csdm_equip.amxx debug
[ 40] CSDM FFA 2.1.3c CSDM Team csdm_ffa.amxx debug
[ 41] CSDM Item Mode 2.1.3c FALUCO & KWo & S csdm_itemmode.a debug
[ 42] CSDM Main 2.1.3c CSDM Team csdm_main.amxx debug
[ 43] CSDM Misc 2.1.3c CSDM Team csdm_misc.amxx debug
[ 44] CSDM Protection 2.1.3c BAILOPAN csdm_protection debug
[ 45] CSDM Spawns 2.1.3c CSDM Team csdm_spawn_pres debug
[ 46] CDSM Stop Respawn 1.0 teame06 csdm_stop_respa debug
[ 47] CSDM Stripper 2.1.3c KWo csdm_stripper.a debug
[ 48] CSDM Ticketing 2.1.3c BAILOPAN csdm_tickets.am debug
- Исходный код
-
/**
* csdm_main.sma
* Allows for Counter-Strike to be played as DeathMatch.
*
* CSDM Main - Main plugin to communicate with module
*
* (C)2003-2013 David "BAILOPAN" Anderson
*
* Give credit where due.
* Share the source - it sets you free
* http://www.opensource.org/
* http://www.gnu.org/
*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <csdm>
new D_PLUGIN[] = "CSDM Main"
new D_ACCESS = ADMIN_MAP
#define CSDM_OPTIONS_TOTAL 2
new bool:g_StripWeapons = true
new bool:g_RemoveBomb = true
new g_StayTime
new g_drop_fwd
new g_options[CSDM_OPTIONS_TOTAL]
new g_MainMenu = -1
new g_SettingsMenu = -1
new g_MainSettMenu = -1
// part taken from VEN's noweapondrop plugin
new g_max_clients
new const g_wbox_model[] = "models/w_weaponbox.mdl"
new const g_shield_model[] = "models/w_shield.mdl"
public plugin_natives()
{
register_native("csdm_main_menu", "native_main_menu")
register_native("csdm_settings_menu", "native_settings_menu")
register_native("csdm_set_mainoption", "__csdm_allow_option")
register_native("csdm_fwd_drop", "__csdm_fwd_drop")
register_native("csdm_write_cfg", "native_write_cfg")
register_library("csdm_main")
}
public native_main_menu(id, num)
{
return g_MainMenu
}
public native_settings_menu(id, num)
{
return g_SettingsMenu
}
public __csdm_allow_option(id, num)
{
new option = get_param(1)
if (option <= 0 || option >= CSDM_OPTIONS_TOTAL)
{
log_error(AMX_ERR_NATIVE, "Invalid option number: %d", option)
return 0
}
g_options[option] = get_param(2)
return 1
}
public native_write_cfg(id,num)
{
new section[32], parameter[32], value[16]
new filename[128]
new cfgdir[128]
new id
get_configsdir(cfgdir, 127)
format(filename, 127, "%s/csdm.cfg", cfgdir)
id = get_param(1)
get_string(2,section,31)
get_string(3,parameter,31)
get_string(4,value,15)
new sect_length = strlen(section) + 1
new param_length = strlen(parameter) - 1
new sect[32]
format(sect,31, "[%s]", section)
if (file_exists(filename))
{
new Data[124], len
new line = 0
new bool:bFoundSec = false
new bool:bFoundPar = false
new bool:bErrorFindSect = true
new bool:bErrorFindParam = false
while((line = read_file(filename, line, Data, 123, len) ) != 0 )
{
if (strlen(Data) < 2 || Data[0] == ';')
continue;
if (Data[0] == '[') // new section found
{
if (bFoundSec)
{
bErrorFindParam = true
break
}
else if (equali(Data, sect, sect_length))
{
bFoundSec = true
bErrorFindSect = false
}
}
else if (bFoundSec && equali(Data, parameter, param_length))
{
bFoundPar = true
break
}
}
if ((bFoundPar) && (line > 0))
{
new text[32]
format(text, 31, "%s = %s", parameter, value)
if (write_file(filename, text, line-1))
client_print(id, print_chat, "Конфигурация успешно сохранена")
}
else if ((!bFoundSec) || (bErrorFindSect))
client_print(id, print_chat, "Конфигурация не сохранена. Не верно выбрано имя.")
else if ((!bFoundPar) || (bErrorFindParam))
client_print(id, print_chat, "Конфигурация не сохранена. Не верно указан параметр.")
}
}
public __csdm_fwd_drop(id, num)
{
/*
new id = get_param(1)
new wp = get_param(2)
new name[32]
get_string(3, name, 31)
return run_drop(id, wp, name)
*/
}
public csdm_Init(const version[])
{
if (version[0] == 0)
{
set_fail_state("CSDM failed to load.")
return
}
}
public csdm_CfgInit()
{
csdm_reg_cfg("settings", "read_cfg")
}
public plugin_init()
{
register_plugin(D_PLUGIN, CSDM_VERSION, "CSDM Team")
register_clcmd("say respawn", "say_respawn")
register_clcmd("say /respawn", "say_respawn")
register_concmd("csdm_enable", "csdm_enable", D_ACCESS, "Включить CSDM")
register_concmd("csdm_disable", "csdm_disable", D_ACCESS, "Выключить CSDM")
register_concmd("csdm_ctrl", "csdm_ctrl", D_ACCESS, "")
register_concmd("csdm_reload", "csdm_reload", D_ACCESS, "Перезагрузить конфигурацию CSDM")
register_clcmd("csdm_menu", "csdm_menu", ADMIN_MENU, "CSDM Меню")
register_clcmd("csdm_sett_menu", "csdm_sett_menu", ADMIN_MENU, "Меню настроек CSDM")
register_clcmd("csdm_main_sett_menu", "csdm_main_sett_menu", ADMIN_MENU, "Меню основных настроек CSDM")
register_forward(FM_SetModel, "forward_set_model")
register_concmd("csdm_cache", "cacheInfo", ADMIN_MAP, "Показать кешированную информацию")
AddMenuItem("CSDM Menu", "csdm_menu", D_ACCESS, D_PLUGIN)
g_MainMenu = menu_create("CSDM Menu", "use_csdm_menu")
new callback = menu_makecallback("hook_item_display")
g_SettingsMenu = menu_create("CSDM Settings Menu", "use_csdm_sett_menu")
menu_additem(g_MainMenu, "CSDM [вкл/выкл]", "csdm_ctrl", D_ACCESS, callback)
menu_additem(g_MainMenu, "Настройки CSDM", "csdm_sett_menu", D_ACCESS)
menu_additem(g_MainMenu, "Перезагрузить конфигурацию", "csdm_reload", D_ACCESS)
g_MainSettMenu = menu_create("Меню основных настроек CSDM", "use_csdm_mainsett_menu")
menu_additem(g_SettingsMenu, "Основные настройки CSDM", "csdm_main_sett_menu", D_ACCESS)
new str_callback = menu_makecallback("hook_settings_display")
if (g_MainSettMenu)
{
menu_additem(g_MainSettMenu, "Скрывать оружие [вкл/выкл]", "strip_weap_ctrl", D_ACCESS, str_callback)
menu_additem(g_MainSettMenu, "Удалять бомбу [вкл/выкл]", "bomb_rem_ctrl", D_ACCESS, str_callback)
menu_additem(g_MainSettMenu, "Пердустановленные места возрождения [вкл/выкл]", "spawn_mode_ctrl", D_ACCESS, str_callback)
menu_additem(g_MainSettMenu, "Назад", "csdm_sett_back", D_ACCESS)
}
g_drop_fwd = CreateMultiForward("csdm_HandleDrop", ET_CONTINUE, FP_CELL, FP_CELL, FP_CELL)
g_options[CSDM_OPTION_SAYRESPAWN] = CSDM_SET_ENABLED
g_max_clients = global_get(glb_maxClients)
}
public cacheInfo(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
new ar[6]
csdm_cache(ar)
console_print(id, "[CSDM] Free tasks: respawn=%d, findweapon=%d", ar[0], ar[5])
console_print(id, "[CSDM] Weapon removal cache: %d total, %d live", ar[4], ar[3])
console_print(id, "[CSDM] Live tasks: %d (%d free)", ar[2], ar[1])
return PLUGIN_HANDLED
}
public forward_set_model(ent, const model[])
{
if (!csdm_active())
return FMRES_IGNORED
if (!pev_valid(ent) || !equali(model, g_wbox_model) && !equali(model, g_shield_model))
return FMRES_IGNORED
new id = pev(ent, pev_owner)
if (!(1 <= id <= g_max_clients))
return FMRES_IGNORED
new args[2]
args[0] = ent
args[1] = id
set_task(0.2, "delay_find_weapon", ent, args, 2)
return FMRES_IGNORED
}
public delay_find_weapon(args[])
{
new ent = args[0]
new id = args[1]
new class[32]
if (!pev_valid(ent))
return
if (!is_user_connected(id))
return
pev(ent, pev_classname, class, sizeof class - 1)
if (equali(class, "weaponbox"))
run_drop_wbox(id, ent, 0)
else if (equali(class, "weapon_shield"))
run_drop_wbox(id, ent, 1)
}
run_drop_wbox(id, ent, shield)
{
new ret
new model[32]
ExecuteForward(g_drop_fwd, ret, id, ent, 0)
if (ret == CSDM_DROP_REMOVE)
{
if (shield)
csdm_remove_weaponbox(id, ent, 0, 1, 1)
else
csdm_remove_weaponbox(id, ent, 0, 1, 0)
return 1
}
else if (ret == CSDM_DROP_IGNORE)
{
return 0
}
if (g_StayTime > 20 || g_StayTime < 0)
{
return 0
}
if (ent)
{
pev(ent, pev_model, model, 31)
if (((equali(model,"models/w_usp.mdl")) || (equali(model,"models/w_glock18.mdl")))
&& (g_StripWeapons))
csdm_remove_weaponbox(id, ent, 0, 0, 0)
else if ((equali(model,"models/w_backpack.mdl")) && (g_RemoveBomb))
csdm_remove_weaponbox(id, ent, 0, 0, 0)
else if (shield)
csdm_remove_weaponbox(id, ent, g_StayTime, 1, 1)
else
csdm_remove_weaponbox(id, ent, g_StayTime, 1, 0)
return 1
}
return 0
}
public csdm_PreSpawn(player, bool:fake)
{
if (!csdm_active())
{
return
}
//we'll just have to back out for now
if (cs_get_user_shield(player))
{
return
}
new team = get_user_team(player)
if (g_StripWeapons)
{
if (team == _TEAM_T)
{
if (cs_get_user_shield(player))
{
drop_with_shield(player, CSW_GLOCK18)
} else {
csdm_force_drop(player, "weapon_glock18")
}
} else if (team == _TEAM_CT) {
if (cs_get_user_shield(player))
{
drop_with_shield(player, CSW_USP)
} else {
csdm_force_drop(player, "weapon_usp")
}
}
}
if (team == _TEAM_T)
{
if (g_RemoveBomb)
{
new weapons[MAX_WEAPONS], num
get_user_weapons(player, weapons, num)
for (new i=0; i<num; i++)
{
if (weapons[i] == CSW_C4)
{
if (cs_get_user_shield(player))
{
drop_with_shield(player, CSW_C4)
} else {
csdm_force_drop(player, "weapon_c4")
}
break
}
}
}
}
}
public csdm_main_sett_menu(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
menu_display(id, g_MainSettMenu, 0)
return PLUGIN_HANDLED
}
public hook_item_display(player, menu, item)
{
new paccess, command[24], call
menu_item_getinfo(menu, item, paccess, command, 23, _, 0, call)
if (equali(command, "csdm_ctrl"))
{
if (!csdm_active())
{
menu_item_setname(menu, item, "CSDM Выключен")
} else {
menu_item_setname(menu, item, "CSDM Включен")
}
}
}
public read_cfg(readAction, line[], section[])
{
if (readAction == CFG_READ)
{
new setting[24], sign[3], value[32];
parse(line, setting, 23, sign, 2, value, 31);
if (equali(setting, "strip_weapons"))
{
g_StripWeapons = str_to_num(value) ? true : false
} else if (equali(setting, "weapons_stay")) {
g_StayTime = str_to_num(value)
} else if (equali(setting, "spawnmode")) {
new var = csdm_setstyle(value)
if (var)
{
log_amx("CSDM spawn mode set to %s", value)
} else {
log_amx("CSDM spawn mode %s not found", value)
}
} else if (equali(setting, "remove_bomb")) {
g_RemoveBomb = str_to_num(value) ? true : false
} else if (equali(setting, "enabled")) {
csdm_set_active(str_to_num(value))
} else if (equali(setting, "spawn_wait_time")) {
csdm_set_spawnwait(str_to_float(value))
}
}
}
public csdm_reload(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
new file[128] = ""
if (read_argc() >= 2)
{
read_argv(1, file, 127)
}
if (csdm_reload_cfg(file))
{
client_print(id, print_chat, "Конфигурация перезагруженна из файла.")
} else {
client_print(id, print_chat, "Не найден файл конфигурации.")
}
return PLUGIN_HANDLED
}
public csdm_menu(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
menu_display(id, g_MainMenu, 0)
return PLUGIN_HANDLED
}
public csdm_sett_menu(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
menu_display(id, g_SettingsMenu, 0)
return PLUGIN_HANDLED
}
public csdm_ctrl(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
csdm_set_active( csdm_active() ? 0 : 1 )
client_print(id, print_chat, "CSDM %s.", csdm_active()? "Включен" : "Выключен")
csdm_write_cfg(id, "settings", "enabled", csdm_active() ? "1" : "0")
client_print(id, print_chat, "Карта будет перезагружена, что бы применить эти изменения.")
set_task(3.0, "do_changelevel")
return PLUGIN_HANDLED
}
public use_csdm_menu(id, menu, item)
{
if (item < 0)
return PLUGIN_CONTINUE
new command[24], paccess, call
if (!menu_item_getinfo(g_MainMenu, item, paccess, command, 23, _, 0, call))
{
log_amx("Error: csdm_menu_item() failed (menu %d) (page %d) (item %d)", g_MainMenu, 0, item)
return PLUGIN_HANDLED
}
if (paccess && !(get_user_flags(id) & paccess))
{
client_print(id, print_chat, "У вас нет доступа к этой опции.")
return PLUGIN_HANDLED
}
client_cmd(id, command)
return PLUGIN_HANDLED
}
public use_csdm_sett_menu(id, menu, item)
{
if (item < 0)
return PLUGIN_CONTINUE
new command[24], paccess, call
if (!menu_item_getinfo(g_SettingsMenu, item, paccess, command, 23, _, 0, call))
{
log_amx("Error: csdm_menu_item() failed (menu %d) (page %d) (item %d)", g_SettingsMenu, 0, item)
return PLUGIN_HANDLED
}
if (paccess && !(get_user_flags(id) & paccess))
{
client_print(id, print_chat, "У вас нет доступа к этой опции.")
return PLUGIN_HANDLED
}
client_cmd(id, command)
return PLUGIN_HANDLED
}
public use_csdm_mainsett_menu(id, menu, item)
{
if (item < 0)
return PLUGIN_CONTINUE
new command[24], paccess, call
if (!menu_item_getinfo(g_MainSettMenu, item, paccess, command, 23, _, 0, call))
{
log_amx("Error: csdm_menu_item() failed (menu %d) (page %d) (item %d)", g_MainSettMenu, 0, item)
return PLUGIN_HANDLED
}
if (paccess && !(get_user_flags(id) & paccess))
{
client_print(id, print_chat, "У вас нет доступа к этой опции.")
return PLUGIN_HANDLED
}
if (equali(command,"strip_weap_ctrl"))
{
g_StripWeapons = (g_StripWeapons ? false:true)
menu_display(id, g_MainSettMenu, 0)
client_print(id, print_chat, "Скрытие оружия %s", g_StripWeapons ? "Включено" : "Выключено")
log_amx("CSDM strip weapons %s", g_StripWeapons ? "enabled" : "disabled")
csdm_write_cfg(id, "settings", "strip_weapons", g_StripWeapons ? "1" : "0")
return PLUGIN_HANDLED
}
else if (equali(command,"bomb_rem_ctrl"))
{
g_RemoveBomb = (g_RemoveBomb ? false:true)
menu_display(id, g_MainSettMenu, 0)
client_print(id, print_chat, "Удаление бомбы %s", g_RemoveBomb ? "Включено" : "Выключено")
log_amx("CSDM removing bomb %s", g_RemoveBomb ? "enabled" : "disabled")
csdm_write_cfg(id, "settings", "remove_bomb", g_RemoveBomb ? "1" : "0")
client_print(id,print_chat,"Данные изменения вступят в силу после смены карты.")
return PLUGIN_HANDLED
}
else if (equali(command,"spawn_mode_ctrl"))
{
new style = csdm_curstyle()
new stylename[24]
if (style == -1)
csdm_setstyle("preset")
else
csdm_setstyle("none")
style = csdm_curstyle()
if (style == -1)
format(stylename,23,"none")
else
format(stylename,23,"preset")
menu_display(id, g_MainSettMenu, 0)
client_print(id, print_chat, "Режим возрождения игроков установлен как %s", stylename)
log_amx("CSDM spawn mode set to %s", stylename)
csdm_write_cfg(id, "settings", "spawnmode", (style == -1) ? "none" : "preset")
return PLUGIN_HANDLED
}
else if (equali(command,"csdm_sett_back"))
{
menu_display(id, g_SettingsMenu, 0)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public hook_settings_display(player, menu, item)
{
new paccess, command[24], call
menu_item_getinfo(menu, item, paccess, command, 23, _, 0, call)
if (equali(command, "strip_weap_ctrl"))
{
if (!g_StripWeapons)
{
menu_item_setname(menu, item, "Скрытие оружия отключено")
} else {
menu_item_setname(menu, item, "Скрытие оружия включено")
}
}
else if (equali(command, "bomb_rem_ctrl"))
{
if (!g_RemoveBomb)
{
menu_item_setname(menu, item, "Удаление бомбы отключено")
} else {
menu_item_setname(menu, item, "Удаление бомбы включено")
}
}
else if (equali(command,"spawn_mode_ctrl"))
{
new style = csdm_curstyle()
if (style == -1)
menu_item_setname(menu, item, "Предустановленные точки возрождения включены")
else
menu_item_setname(menu, item, "Предустановленные точки возрождения выключены")
}
}
public csdm_enable(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
if (!csdm_active())
{
csdm_set_active(1)
client_print(id, print_chat, "CSDM включен.")
csdm_write_cfg(id, "settings", "enabled", "1")
client_print(id, print_chat, "Рти настройки вступят РІ силу после смены карты.")
set_task(3.0, "do_changelevel")
}
return PLUGIN_HANDLED
}
public csdm_disable(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
if (csdm_active())
{
csdm_set_active(0)
client_print(id, print_chat, "CSDM выключен.")
csdm_write_cfg(id, "settings", "enabled", "0")
client_print(id, print_chat, "Рти настройки вступят РІ силу после смены карты.")
set_task(3.0, "do_changelevel")
}
return PLUGIN_HANDLED
}
public say_respawn(id)
{
if (g_options[CSDM_OPTION_SAYRESPAWN] == CSDM_SET_DISABLED)
{
client_print(id, print_chat, "Рта команда отключена!")
return PLUGIN_HANDLED
}
if (!is_user_alive(id) && csdm_active())
{
new team = get_user_team(id)
if (team == _TEAM_T || team == _TEAM_CT)
{
csdm_respawn(id)
}
}
return PLUGIN_CONTINUE
}
public do_changelevel()
{
new current_map[32]
get_mapname(current_map, 31)
server_cmd("changelevel %s", current_map)
}
Всем доброго времени суток. Помогите пожалуйста решить проблему с установкой CSDM. Запускается обычный режим(огонь по своим выключен, спаун вместе) и потом просто лагает и игра дальше не идет, виснет у всех кто на серве.
Ошибка из консоли:
Debug везде прописал, сейчас версия 2.1.3 На версии 2.1.2 была почти точно такая же ошибка(менялось только название не menu_items, а main_menu.
Если убрать csdm мод, то сервер работает отлично.
Ошибка из консоли:
Код:
L 01/06/2018 - 02:27:09: [AMXX] Displaying debug trace (plugin "csdm_equip.amxx")
[02:16:57] L 01/06/2018 - 02:27:09: [AMXX] Run time error 10: native error (native "menu_items")
[02:16:57] L 01/06/2018 - 02:27:09: [AMXX] [0] csdm_equip.sma::plugin_init (line 186)
[02:16:57] L 01/06/2018 - 02:27:09: Invalid menu id -1(7)
[02:16:57] L 01/06/2018 - 02:27:09: [AMXX] Displaying debug trace (plugin "csdm_ffa.amxx")
[02:16:57] L 01/06/2018 - 02:27:09: [AMXX] Run time error 10: native error (native "menu_items")
[02:16:57] L 01/06/2018 - 02:27:09: [AMXX] [0] csdm_ffa.sma::plugin_init (line 94)
[02:16:57] L 01/06/2018 - 02:27:09: Invalid menu id -1(7)
[02:16:57] L 01/06/2018 - 02:27:09: [AMXX] Displaying debug trace (plugin "csdm_itemmode.amxx")
[02:16:57] L 01/06/2018 - 02:27:09: [AMXX] Run time error 10: native error (native "menu_items")
[02:16:57] L 01/06/2018 - 02:27:09: [AMXX] [0] csdm_itemmode.sma::plugin_init (line 323)
[02:16:57] Menu item 1 added to Menus Front-End: "CSDM Menu" from plugin "CSDM Main"
[02:16:57] Частота появления бегущей строки: 3:20 минут
[02:16:57] [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[02:16:57] Looking up breakpad interfaces from steamclient
[02:16:57] Calling BreakpadMiniDumpSystemInit
Если убрать csdm мод, то сервер работает отлично.
В этой теме было размещено решение! Перейти к решению.
Последнее редактирование модератором: