Ночной режим .Рестарт не сбрасывает оружие до исходного

Lis

Сообщения
59
Реакции
21
Предупреждения
10
Помог
1 раз(а)
Ошибка
нет
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5234 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Nov 3 2018 14:55:29
Built from: https://github.com/alliedmodders/amxmodx/commit/9eb1f42
Build ID: 5234:9eb1f42
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0-dev+m
Build date: 15:08:41 Oct 22 2018 (1654)
Build from:
ReGamedll
ReGameDLL version: 5.7.0.318-dev
Build date: 21:07:26 Oct 30 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/932001b
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
[ 1] Reunion          RUN   -    reunion.so                  v0.1.0.133      ini  Start Never
[ 2] ReAuthCheck RUN - reauthcheck.so v0.1.6 ini Start Never
[ 3] VoiceTranscoder RUN - vtc.so v2017RC3 ini ANY
[ 4] AMX Mod X RUN - amxmodx.so v1.9.0.5234 ini ANY
[ 5] Rechecker RUN - rechecker.so v2.5 ini ANY
[ 6] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 7] ReSRDetector RUN - resrdetector.so v0.1.0 ini ANY
[ 8] WHBlocker RUN - whblocker.so v1.5.695 ini ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5234 pl4 ANY
[10] Fun RUN - fun_amxx_i386.so v1.9.0.5234 pl4 ANY
[11] Engine RUN - engine_amxx_i386.so v1.9.0.5234 pl4 ANY
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5234 pl4 ANY
[13] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5219 pl4 ANY
[14] CSX RUN - csx_amxx_i386.so v1.9.0.5219 pl4 ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5234 pl4 ANY
[16] ReAPI RUN - reapi_amxx_i386.so v5.6.0.157-dev pl4 ANY Never
[17] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl4 ANY Never
Список плагинов
[  1] [183] AMXBans RBS       18.10.13    SKAJIbnEJIb & La  amxbans_rbs.amx  running
[ 2] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 3] Menus Front-End 18.03.24 AMXX Dev Team & amxmodmenu_rbs. running
[ 4] [183] Ultimate Gag 18.02.21BE SKAJIbnEJIb ultimate_gag.am running
[ 5] [183] Army Ranks Ultim 18.05.15 SKAJIbnEJIb army_ranks_ulti running
[ 6] [183] Skill ELO 18.03.24 SKAJIbnEJIb skill_elo.amxx running
[ 7] [183] Ultimate Weapons 17.08.28 SKAJIbnEJIb ultimate_weapon running
[ 8] [183] VIP RBS 18.03.24 SKAJIbnEJIb vip_rbs.amxx running
[ 9] [183] Ultimate Informe 17.10.30 SKAJIbnEJIb ultimate_inform running
[ 10] [183] MapsMenu RBS 17.10.30 AMXX Dev Team & mapsmenu_rbs.am running
[ 11] [183] MapChooser RBS 18.10.05 SKAJIbnEJIb & UF mapchooser_rbs. stopped
[ 12] Players Menu 1.9.0.5234 AMXX Dev Team plmenu.amxx running
[ 13] Restrict Weapons 1.8.3 AMXX Dev Team restmenu.amxx running
[ 14] [183] NextMap 18.09.25 SKAJIbnEJIb & AM nextmap.amxx running
[ 15] [183] TimeLeft 18.09.25 SKAJIbnEJIb & AM timeleft.amxx running
[ 16] [183] Screen Player 17.10.30 SKAJIbnEJIb screen_player.a running
[ 17] [183] Ad From Server 17.10.30 SKAJIbnEJIb ad_from_server. running
[ 18] [183] Chat Controller 18.07.20 SKAJIbnEJIb chat_controller running
[ 19] [183] ESP RBS 17.10.30 SKAJIbnEJIb & Ko esp_rbs.amxx running
[ 20] [183] AR Bets 17.10.30 SKAJIbnEJIb ar_bets.amxx running
[ 21] [183] Jobs RBS 18.05.15 SKAJIbnEJIb jobs_rbs.amxx running
[ 22] [183] Piss RBS 17.10.30 SKAJIbnEJIb & KR piss_rbs.amxx running
[ 23] [183] High Ping Kicker 18.05.15 SKAJIbnEJIb hpk_rbs.amxx running
[ 24] [183] Demo Recorder RB 18.02.08 SKAJIbnEJIb demorecorder_rb running
[ 25] [183] Map Spawns Edito 17.08.27 iG_os & SKAJIbnE MapSpawnsEditor running
[ 26] WarmUP Sound 1.0 ill warmup_sound.am running
[ 27] [ReAPI] Round Balancer 1.1 neygomon round_balancer. running
[ 28] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 29] Kill Sound 1.0 Jack Daniel`s kill_sound.amxx running
[ 30] Rock to Ban 1.52f Safety1st rock_to_ban.amx running
[ 31] Fake Ping 1.1 MeRcyLeZZ/gyxoBk FakePing.amxx running
[ 32] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 33] Mode 2x2 2.5re s1lent mode_2x2.amxx running
[ 34] unknown unknown unknown night_vip.amxx running
[ 35] Lite NightMode 1.1 neygomon lite_nightmode. running
[ 36] [ReAPI] No Team Flash 0.0.2 Vaqtincha no_team_flash_l running
[ 37] Parachute for ALL [ReA 3.0 Leo_[BH] parachute_for_a running
[ 38] C4 Timer on roundtime 0.3.3a neygomon c4timer.amxx running
[ 39] [ReAPI] AWPoff 1.4.2 PAffAEJIkA :3 awp_off.amxx running
[ 40] Smoke: HealthNade 0.0.4 wopox1337 healthnade.amxx running
[ 41] Damager 0.1b Subb98 damager.amxx running
[ 42] Change Game Name 1.2 ReHLDS Team change_game_nam running
[ 43] [183] Chat RBS 18.03.24 SKAJIbnEJIb chat_rbs.amxx running
[ 44] [183] CsStats MySQL 18.08.09 SKAJIbnEJIb csstats_mysql.a running
[ 45] [183] Stats Configurat 18.05.15 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 46] [183] StatsX RBS 18.03.24 SKAJIbnEJIb & AM statsx_rbs.amxx running
Автор плагина
neugomon
Версия плагина
1.1
Исходный код
#include <amxmodx>
#tryinclude <reapi>

#define STARTTIME 02 // Время начала ночного режима. Тестировал только с 00 часов. Поддежка раннего времени есть, но не проверялось:)
#define ENDTIME 8 // Окончание ночного режима
#define MAP "de_dust2" // Карта ночного режима
#define AUTORR 30 // Авторестарт карты (sv_restart 1) каждые n раундов. Установите 0 для отключения данной плюшки.

new g_pTimeLimit, g_iOldTime, Float:g_flResetTime;
new bool:g_bNight;
#if AUTORR > 0
new g_iRound;
#endif
#if AMXX_VERSION_NUM < 183
#define engine_changelevel(%0) server_cmd("changelevel %s", %0)
#endif

public plugin_init()
{
#define VERSION "1.1"
register_plugin("Lite NightMode", VERSION, "neygomon");
register_cvar("lite_nightmode", VERSION, FCVAR_SERVER | FCVAR_SPONLY);

register_event("TextMsg", "eGameCommencing", "a", "2=#Game_Commencing", "2=#Game_will_restart_in");
register_event("HLTV", "eRoundStart", "a", "1=0", "2=0");

register_clcmd("say rtv", "RtvHook");
register_clcmd("say_team rtv", "RtvHook");
register_clcmd("say /rtv", "RtvHook");
register_clcmd("say_team rtv", "RtvHook");
register_clcmd("amx_rtv", "RtvHook");

g_pTimeLimit = get_cvar_pointer("mp_timelimit");
}

public plugin_end()
if(g_iOldTime)
set_pcvar_num(g_pTimeLimit, g_iOldTime);

public client_putinserver(id)
if(g_bNight)
remove_user_flags(id, ADMIN_MAP|ADMIN_VOTE);

public eGameCommencing()
{
g_flResetTime = get_gametime();
#if AUTORR > 0
g_iRound = 0;
#endif
}

public eRoundStart()
{
static szCurMap[32], CurHour; time(CurHour);

#if STARTTIME > ENDTIME
if(CurHour >= STARTTIME || CurHour < ENDTIME)
#else
if(STARTTIME <= CurHour < ENDTIME)
#endif
{
if(!szCurMap[0])
get_mapname(szCurMap, charsmax(szCurMap));

if(!equal(szCurMap, MAP))
engine_changelevel(MAP);
else if(!g_bNight)
{
g_bNight = true;
RemovePlayersFlags();
g_iOldTime = get_pcvar_num(g_pTimeLimit);
set_pcvar_num(g_pTimeLimit, 0);
}
#if AUTORR > 0
static iRound; iRound = AUTORR - ++g_iRound;
if(iRound > 0) ChatColor(0, "^1[^4Only ^3%s^1] ^4Через ^3%d ^4раундов авторестарт карты. ^1[ ^4Тек. раунд: ^3%d ^1| ^4Всего: ^3%d^1 ]", MAP, iRound, g_iRound, AUTORR);
else
{
server_cmd("sv_restart 1");
#if defined _reapi_included
rg_swap_all_players();
#endif
}
#endif
}
else if(g_bNight)
{
set_pcvar_num(g_pTimeLimit, floatround(get_gametime() - g_flResetTime) / 60 + 5);
g_bNight = false;
}
}

public RtvHook(id)
{
if(!g_bNight) return PLUGIN_CONTINUE;
ChatColor(id, "^1[^4Only ^3%s^1] ^4RTV не работает в ^3Ночном режиме!", MAP);
return PLUGIN_HANDLED;
}

RemovePlayersFlags()
{
static players[32], pcount;
get_players(players, pcount, "ch");
for(new i; i < pcount; i++)
remove_user_flags(players[i], ADMIN_MAP|ADMIN_VOTE);
}

stock ChatColor(const id, const szMessage[], any:...)
{
static pnum, players[32], szMsg[190], IdMsg;
vformat(szMsg, charsmax(szMsg), szMessage, 3);

if(!IdMsg) IdMsg = get_user_msgid("SayText");

if(id)
{
if(!is_user_connected(id)) return;
players[0] = id;
pnum = 1;
}
else get_players(players, pnum, "ch");

for(new i; i < pnum; i++)
{
message_begin(MSG_ONE, IdMsg, .player = players[i]);
write_byte(players[i]);
write_string(szMsg);
message_end();
}
}
При рестарте часто не сбрасываются оружия купленные перед рестартом и получается с нового раунда у кого то может оказаться более мощное оружие с первого раунда.
 

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

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