Роман

Members
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Роман

  • Rank
    Newbie
  1. Всем привет! Возникла проблема сохранения(жетонов). Плагин с уровенем и опыт сохраняются и загружаються так. g_save_type = register_cvar("zp_level_save_by", "1") //Save by STEAM_ID = 0; NICK = 1 public SaveData(id) { new AuthID[35] if(get_pcvar_num(g_save_type)) { get_user_name(id, AuthID, 32) replace_all(AuthID, 255, "#", "[r]") } else get_user_authid(id,AuthID,34) new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s",AuthID) format(vaultdata,255,"%i#%i#",g_exp[id],g_level[id]) nvault_set(g_vault,vaultkey,vaultdata) return PLUGIN_CONTINUE } public LoadData(id) { new AuthID[35] if(get_pcvar_num(g_save_type)) { get_user_name(id, AuthID, 32) replace_all(AuthID, 255, "#", "[r]") } else get_user_authid(id,AuthID,34) new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s",AuthID) format(vaultdata,255,"%i#%i#",g_exp[id],g_level[id]) nvault_get(g_vault,vaultkey,vaultdata,255) replace_all(vaultdata, 255, "#", " ") new playerxp[32], playerlevel[32] parse(vaultdata, playerxp, 31, playerlevel, 31) g_exp[id] = str_to_num(playerxp) g_level[id] = str_to_num(playerlevel) return PLUGIN_CONTINUE } И данный код работает. То есть сохраняет уровень и опыт! Но вот сохранение и загрузка жетонов не работает. Вот код сохранения и загрузки жетонов: public SaveData(id) { new AuthID[35] get_user_name(id, AuthID, 34) replace_all(AuthID, 255, "#", "[r]") new vaultkey[64], vaultdata[256] format(vaultkey, 63, "%s", AuthID) format(vaultdata, 255, "%i#%i#%i#%i#",g_iToken[id],g_iSkillHP[id],g_iSkillAP[id],g_iSkillDMG[id]) nvault_set(g_iNvault,vaultkey,vaultdata) return PLUGIN_CONTINUE } public LoadData(id) { new AuthID[35] get_user_name(id, AuthID, 34) replace_all(AuthID, 255, "#", "[r]") new vaultkey[64], vaultdata[256] format(vaultkey, 63, "%s", AuthID) format(vaultdata, 255, "%i#%i#%i#%i#", g_iToken[id], g_iSkillHP[id], g_iSkillAP[id], g_iSkillDMG[id]) nvault_get(g_iNvault, vaultkey, vaultdata,255) replace_all(vaultdata, 255, "#", " ") new PlayerMY[32], PlayerHP[32], PlayerAP[32], PlayerDM[32] parse(vaultdata, PlayerMY, 31, PlayerHP, 31, PlayerAP, 31, PlayerDM, 31) g_iToken[id] = str_to_num(PlayerMY) g_iSkillHP[id] = str_to_num(PlayerHP) g_iSkillAP[id] = str_to_num(PlayerAP) g_iSkillDMG[id] = str_to_num(PlayerDM) return PLUGIN_CONTINUE } Где в нём ошибка?
  2. Как сдеать проверку на раунды куча на кучу, массовое, чума?
  3. FATAL ERROR (shutting down): Unable to initialize Steam. Мне казалось что эта проблема только при запуске сервера через HLDS. Через батник не получается FIlezilla не даёт батник запустить. Как это исправить ведь сервер на хостинге? dproto 47/48 Metamod version 1.21p37 Copyright (c) 2001-2013 Will Day Patch: Metamod-P (mm-p) v37 Copyright (c) 2004-2013 Jussi Kivilinna Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'. This is free software, and you are welcome to redistribute it under certain conditions; type `meta gpl' for details. AMX Mod X version 1.8.2 Copyright (c) 2004-2006 AMX Mod X Development Team AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'. This is free software and you are welcome to redistribute it under certain conditions; type 'amxx gpl' for details. Помогите пожалуйста. Вот вся консоль: Version 0.9.391 Linux [DPROTO]: Done. L 06/13/2017 - 11:49:09: -------- Mapchange to de_dust2 -------- stray key in process_key: item_getiteminfo 61 L 06/13/2017 - 11:49:09: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) [AMXX] Loaded 4 admins from file L 06/13/2017 - 11:49:10: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") Executing AMX Mod X Configuration File Scrolling message displaying frequency: 10:00 minutes * UFPS Map Manager executing configuration file. Menu item 17 added to Menus Front-End: "Nade Mode Menu" from plugin "NadeModes" L 06/13/2017 - 11:49:10: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/13/2017 - 11:49:10: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/13/2017 - 11:49:10: [umm.amxx] Plugin matching "mapchooser.amxx" stopped [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll. FATAL ERROR (shutting down): Unable to initialize Steam. BFD: Warning: /home/srv30135/core is truncated: expected core file size >= 111849472, found: 1024000. Cannot access memory at address 0xf77c891c Cannot access memory at address 0xf77c8918 Cannot access memory at address 0xf77c891c debug.cmds:3: Error in sourced command file: Cannot access memory at address 0xf77c8918 email debug.log to linux@valvesoftware.com Tue Jun 13 11:49:10 EDT 2017: Server restart in 10 seconds Автообновление консоли.
  4. Всем привет! Помогите пожалуйста с одной проблемой. Север падает после смены карты и долго ещё не запускается. Вот логи : L 06/11/2017 - 13:13:40: -------- Mapchange to de_dust2 -------- L 06/11/2017 - 13:13:40: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) L 06/11/2017 - 13:13:41: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") L 06/11/2017 - 13:13:41: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/11/2017 - 13:13:41: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/11/2017 - 13:13:41: [umm.amxx] Plugin matching "mapchooser.amxx" stopped L 06/11/2017 - 13:13:42: -------- Mapchange to zm_dust_world -------- L 06/11/2017 - 13:13:42: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) L 06/11/2017 - 13:13:42: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") L 06/11/2017 - 13:13:42: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/11/2017 - 13:13:42: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/11/2017 - 13:13:42: [umm.amxx] Plugin matching "mapchooser.amxx" stopped L 06/11/2017 - 13:13:53: -------- Mapchange to de_dust2 -------- L 06/11/2017 - 13:13:54: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) L 06/11/2017 - 13:13:54: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") L 06/11/2017 - 13:13:54: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/11/2017 - 13:13:54: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/11/2017 - 13:13:54: [umm.amxx] Plugin matching "mapchooser.amxx" stopped L 06/11/2017 - 13:13:55: -------- Mapchange to zm_dust_world -------- L 06/11/2017 - 13:13:55: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) L 06/11/2017 - 13:13:56: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") L 06/11/2017 - 13:13:56: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/11/2017 - 13:13:56: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/11/2017 - 13:13:56: [umm.amxx] Plugin matching "mapchooser.amxx" stopped L 06/11/2017 - 13:14:07: -------- Mapchange to de_dust2 -------- L 06/11/2017 - 13:14:07: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) L 06/11/2017 - 13:14:07: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") L 06/11/2017 - 13:14:07: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/11/2017 - 13:14:07: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/11/2017 - 13:14:07: [umm.amxx] Plugin matching "mapchooser.amxx" stopped L 06/11/2017 - 13:14:08: -------- Mapchange to zm_dust_world -------- L 06/11/2017 - 13:14:09: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) L 06/11/2017 - 13:14:09: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") L 06/11/2017 - 13:14:09: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/11/2017 - 13:14:09: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/11/2017 - 13:14:09: [umm.amxx] Plugin matching "mapchooser.amxx" stopped L 06/11/2017 - 13:14:20: -------- Mapchange to de_dust2 -------- L 06/11/2017 - 13:14:21: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) L 06/11/2017 - 13:14:21: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") L 06/11/2017 - 13:14:21: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/11/2017 - 13:14:21: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/11/2017 - 13:14:21: [umm.amxx] Plugin matching "mapchooser.amxx" stopped L 06/11/2017 - 13:14:22: -------- Mapchange to zm_dust_world -------- L 06/11/2017 - 13:14:22: [new_weapons.amxx] File Inexistent: "models/new/w_usp.mdl" (Line 1 of new_weapons.ini) L 06/11/2017 - 13:14:22: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt") L 06/11/2017 - 13:14:22: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/11/2017 - 13:14:22: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/11/2017 - 13:14:22: [umm.amxx] Plugin matching "mapchooser.amxx" stopped Версия метамода: Metamod v1.21p37 2013/05/30 (5:13) by Will Day http://www.metamod.org/ Patch: Metamod-P (mm-p) v37 by Jussi Kivilinna http://metamod-p.sourceforge.net/ compiled: May 30 2013, 11:41:16 EET (optimized) Dproto 47/48 протокол. Помогите пожалуйста сервер еле запускается и только на одной карте.
  5. При заходе на сервак сразу перебрасывает в наблюдатели. Вот что в консоли сервера L 06/06/2017 - 18:44:24: -------- Mapchange to de_dust2 -------- stray key in process_key: item_getiteminfo 61 [AMXX] Loaded 1 admin from file Executing AMX Mod X Configuration File Scrolling message displaying frequency: 10:00 minutes * UFPS Map Manager executing configuration file. "zp_vip_buy_flags" is "abcd" L 06/06/2017 - 18:44:25: [umm.amxx] Plugin matching "nextmap.amxx" stopped L 06/06/2017 - 18:44:25: [umm.amxx] Plugin matching "timeleft.amxx" stopped L 06/06/2017 - 18:44:25: [umm.amxx] Plugin matching "mapchooser.amxx" stopped [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. dlopen failed trying to load: /home/srv30135/.steam/sdk32/steamclient.so with error: /home/srv30135/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit couldn't exec banned.cfg couldn't exec listip.cfg Menu item 17 added to Menus Front-End: "Plugin Cvars" from plugin "pluginmenu.amxx" Menu item 18 added to Menus Front-End: "Plugin Commands" from plugin "pluginmenu.amxx" Connection to Steam servers successful. VAC secure mode is activated. MasterRequestRestart Your server needs to be restarted in order to receive the latest update. Помогите исправить пожалуйста. Стоит zp 4.3
  6. У меня на зомби сервере присутствует меню управления зомби модом для босса конечно же. Так вот игрок с привилегией босс может открыть меню, но выполнять функции как сделать человеком/зомби, возродить, сделать немезидой, сделать выжевшим не может. Я думаю вопрос кроется в этом коде. // 1. Zombiefy/Humanize command if (userflags & (g_access_flag[ACCESS_MODE_INFECTION] | g_access_flag[ACCESS_MAKE_ZOMBIE] | g_access_flag[ACCESS_MAKE_HUMAN])) len += formatex(menu[len], charsmax(menu) - len, "\y[\r1\y] [\rЗомби/Солдатом\y]^n") else len += formatex(menu[len], charsmax(menu) - len, "\d[1] [Зомби/Солдатом]^n") // 2. Nemesis command if (userflags & (g_access_flag[ACCESS_MODE_NEMESIS] | g_access_flag[ACCESS_MAKE_NEMESIS])) len += formatex(menu[len], charsmax(menu) - len, "\y[\r2\y] [\rДьяволом\y]^n") else len += formatex(menu[len], charsmax(menu) - len, "\d[2] [Дьяволом]^n") // 3. Survivor command if (userflags & (g_access_flag[ACCESS_MODE_SURVIVOR] | g_access_flag[ACCESS_MAKE_SURVIVOR])) len += formatex(menu[len], charsmax(menu) - len, "\y[\r3\y] [\rГероем\y]^n^n") else len += formatex(menu[len], charsmax(menu) - len, "\d[3] [Героем]^n^n") len += formatex(menu[len], charsmax(menu) - len, "\yДействие с игроком:^n") // 4. Respawn command if (userflags & g_access_flag[ACCESS_RESPAWN_PLAYERS]) len += formatex(menu[len], charsmax(menu) - len, "\y[\r4\y] [\rВозродить\y]^n^n") else len += formatex(menu[len], charsmax(menu) - len, "\d[4] [Возродить]^n^n") len += formatex(menu[len], charsmax(menu) - len, "\yЗапустить игру:^n") // 5. Swarm mode command if ((userflags & g_access_flag[ACCESS_MODE_SWARM]) && allowed_swarm()) len += formatex(menu[len], charsmax(menu) - len, "\y[\r5\y] [\rКуча на кучу\y]^n") else len += formatex(menu[len], charsmax(menu) - len, "\d[5] [Куча на кучу]^n") // 6. Multi infection command if ((userflags & g_access_flag[ACCESS_MODE_MULTI]) && allowed_multi()) len += formatex(menu[len], charsmax(menu) - len, "\y[\r6\y] [\rМассовое Зар.\y]^n") else len += formatex(menu[len], charsmax(menu) - len, "\d[6] [Массовое Зар.]^n") // 7. Plague mode command if ((userflags & g_access_flag[ACCESS_MODE_PLAGUE]) && allowed_plague()) len += formatex(menu[len], charsmax(menu) - len, "\y[\r7\y] [\rЧума\y]^n") else len += formatex(menu[len], charsmax(menu) - len, "\d[7] [Чума]^n") // 0. Exit len += formatex(menu[len], charsmax(menu) - len, "^n\y[\r0\y] %L", id, "MENU_EXIT") // Fix for AMXX custom menus if (pev_valid(id) == PDATA_SAFE) set_pdata_int(id, OFFSET_CSMENUCODE, 0, OFFSET_LINUX) show_menu(id, KEYSMENU_ADM, menu, -1, "Admin Menu") } Как мне сделать чтобы человек с доступом admin_Reservation мог выполнять эти функции а другие не могли? Помогите пожалуйста. То есть как мне поставить на каждую из этих функций флаг без которого их выполнять нельзя.