Пользователь
- Сообщения
- 27
- Реакции
- 0
- Ошибка
-
Плагин меняет карту на рандомную
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5294
- Билд
-
ReHLDS version: 3.13.0.788-dev
- ReGamedll
-
ReGameDLL version: 5.22.0.593-dev
- Версия Metamod
-
Metamod-r v1.3.0.131, API (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion.so v0.1.0.137 ini Start Never
[ 2] AMX Mod X RUN - amxmodx.so v1.9.0.5294 ini Start ANY
[ 3] ReAuthCheck RUN - reauthcheck.so v0.1.6 ini Start Never
[ 4] Rechecker RUN - rechecker.so v2.7 ini Chlvl ANY
[ 5] ReSemiclip RUN - resemiclip.so v2.3.9 ini Chlvl ANY
[ 6] ReSRDetector RUN - resrdetector.so v0.1.0 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker.so v1.5.697 ini Chlvl ANY
[ 8] HitBox Fix RUN - hitbox_fix.so v1.1.2 ini Start ANY
[ 9] Revoice RUN - revoice.so v0.1.0.34 ini Start Never
[10] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[12] ReAPI RUN - reapi_amxx_i386.so v5.22.0.254-dev pl2 ANY Never
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[14] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[16] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
[18] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
[19] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5294 pl2 ANY ANY
19 plugins, 19 running
- Список плагинов
-
[ 1] Admin Loader 3.5 neygomon admin_loader.am running
[ 2] WebHS 0.1 kanagava fb_web_online.a running
[ 3] FreshBans 1.4.8b kanagava fresh_bans.amxx running
[ 4] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 5] [190] Ultimate Weapons 22.11.15 SKAJIbnEJIb ultimate_weapon running
[ 6] [183] Ultimate Gag 17.12.22BE SKAJIbnEJIb ultimate_gag.am running
[ 7] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 8] Admin Commands 1.8.1.3746 AMXX Dev Team admincmd.amxx running
[ 9] Commands Menu 20.06.06 SKAJIbnEJIb & AM cmdmenu_rbs.amx running
[ 10] AmxModMenu 1.2 Sn1kO{Dmitriy.T) menufront.amxx running
[ 11] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 12] Players Menu 1.8.1.3746 AMXX Dev Team plmenu.amxx running
[ 13] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 14] Restrict Weapons 1.9.0.5294 AMXX Dev Team restmenu.amxx running
[ 15] Admin Votes 1.8.1.3746 Wildness Team adminvote.amxx running
[ 16] CS Stats Logging 1.9.0.5294 AMXX Dev Team stats_logging.a running
[ 17] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 18] [190] VIP RBS 20.07.20 SKAJIbnEJIb vip_rbs.amxx running
[ 19] Night VIPs 1.1.1 szawesome night_vips.amxx running
[ 20] [190] AC Spectator ESP 20.06.06 SKAJIbnEJIb & Ko ac_esp.amxx running
[ 21] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 22] [190] Block Reconnect 20.06.06 ShaTalKiN Block_Reconnect running
[ 23] [ReAPI] Best player of 1.1.2 F@nt0M best_player_of_ running
[ 24] [190] Chat RBS 20.06.06 SKAJIbnEJIb chat_rbs.amxx running
[ 25] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 26] Custom Smoke 1.07 bionext custom_smoke.am running
[ 27] [190] DemoRecorder RBS 20.06.06 SKAJIbnEJIb demorecorder_rb running
[ 28] [ReAPI] Healthnade 0.0.7f F@nt0M + mx?! + reapi_healthnad running
[ 29] [190] High Ping Kicker 20.06.06 SKAJIbnEJIb hpk_rbs.amxx running
[ 30] Advanced MapChooser 1.4 neygomon advanced_mapcho running
[ 31] [190] No Team Flash 20.06.06 SKAJIbnEJIb NoTeamFlash.amx running
[ 32] [190] Parachute RBS 22.11.15 SKAJIbnEJIb & KR parachute_rbs.a running
[ 33] Reset Score 0.2 Silenttt / CepeH RESET_SCORE_V0. running
[ 34] [190] SlayLosers RBS 20.06.06 SKAJIbnEJIb & d3 slaylosers_rbs. running
[ 35] [190] Snipers RBS 20.06.06 SKAJIbnEJIb snipers_rbs.amx running
[ 36] Yet Another Voteban 1.8 AndrewZ/voed yet_another_vot running
[ 37] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 38] [ReAPI] Block 'Fire in 0.0.1 sergrib reapi_block_FIT running
[ 39] [190] AfkKicker RBS 22.11.15 SKAJIbnEJIb afkkicker_rbs.a running
[ 40] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 41] Say me and Say hp 1.4 neygomon say_me_and_say_ running
[ 42] Damager 1.0 Prayer damager.amxx running
[ 43] Mode 2x2 2.5re s1lent mode.amxx running
[ 44] aes_exp_on_win 1.0 w0w aes_exp_on_win. running
[ 45] Steam Bonus 1.0 Will_be steam_bonus.amx running
[ 46] [ReAPI] Random Weapons 2.4.9+1 neugomon/h1k3 warmup.amxx running
[ 47] C4 Timer 0.1 Lightman bombtimer.amxx running
[ 48] GameName Changer 1.0 mx?! re_gamename.amx running
[ 49] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 50] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 51] SF Bets 0.1.5 serfreeman1337 sf_bets.amxx running
[ 52] recoil_manager 1.0.0 fl0wer recoil_manager. running
[ 53] IrkMenu 1.0 Medved irkmenu.amxx running
[ 54] [GeoIP] Connect Info 1.0.0 Nordic Warrior geoip_connect_i running
[ 55] Advanced Kill Assists 1.3c Xelson next21_kill_ass running
[ 56] Fake Ping 1.1 MeRcyLeZZ/gyxoBk fake_ping.amxx running
[ 57] Info After Death 0.0.3 Albertio info_after_deat running
[ 58] Kills Counter 1.0 Safety1st killscounter.am running
[ 59] DHud Win Status 1.0.2 BiZaJe DhudWinStatus.a running
[ 60] Injector X 1.0 Remastered: Medv dd_injectorX.am running
[ 61] [GRENADE] Molotov 1.0.2 medusa grenade_molotov running
[ 62] [UW] ANew Func 1.0.0 ArKaNeMaN UW-ANewFunc.amx running
[ 63] Sell Weapons 1.0 Ruby sell_weapons.am running
[ 64] Block DD Spam 1.0 mx?! block_dd_spam.a running
[ 65] SIBFIGHTRESTART 1.0 Medved sibfightrr.amxx paused
[ 66] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 67] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 68] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 69] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 70] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 71] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
71 plugins, 70 running
- Автор плагина
- Medved
- Версия плагина
- 1.0
- Исходный код
-
#include <amxmodx>
new sibRound;
new const g_szMapNames[][] =
{
"cs_mansion", "de_clan1_mill", "de_dust", "de_inferno",
"de_aztec", "de_cbble", "de_dust2002", "de_westwood", "de_abaddon",
"de_alexandra", "de_berzerker", "de_barcelona", "de_sultan", "de_kabul32",
"de_avangard", "de_dust4ever", "de_agrena", "de_korfez32", "de_verso", "de_cache",
"de_c4", "de_bretonia", "de_russka32", "de_irak2", "css_mirage_go", "de_cloister",
"$2000$", "cs_pf_dust", "de_dust2_mini", "de_blue", "css_overpass", "de_santorini", "de_sunny",
"de_nuke32", "de_mirage_32", "de_apollon", "de_parikia_b1", "cs_assault_1337",
"cs_assault_32"
};
new const g_szPluginNames[][] =
{
"sibfightrr.amxx"
};
public plugin_init()
{
register_plugin("SIBFIGHTRESTART", "1.0", "Medved");
register_event("TextMsg", "SibGameStart", "a", "2=#Game_Commencing");
register_event("HLTV", "SibRoundStart", "a", "1=0", "2=0");
new szMapName[32]; get_mapname(szMapName, charsmax(szMapName));
new y;
new bool: g_bMaps = false;
for(y = 0; y < sizeof(g_szMapNames); y++)
{
if(equal(szMapName, g_szMapNames[y]))
g_bMaps = true;
}
if(g_bMaps)
{
for(y = 0; y < sizeof(g_szPluginNames); y++)
pause("ac", g_szPluginNames[y]);
}
}
public SibGameStart()
sibRound = 0;
public SibRoundStart()
{
sibRound++;
ChatColor(0, "^3[^4Информация^3] ^1Сейчас идёт ^4[%d] ^1раунд, авто-рестарт через ^4[80] ^1раундов", sibRound);
switch(sibRound)
{
case 80:
{
sibRound = 0;
server_cmd("sv_restart 1");
server_cmd("mp_timelimit 15");
}
}
}
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)
{
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();
}
}
Помогите пожалуйста разобраться с проблемой. Данный плагин работает только на карте DUST2 (Так что на то, что в консоле сейчас находится в паузе не обращайте внимания)
Как видите, каждые 80 раундов должен производится рестарт раунда, но на 80 раунд плагин меняет карту на другую, а не совершает рестарт. Проверял плагин перед поставкой на основной сервер, на локальной машине. Сам он без проблем делал АвтоРестарт раунда, а на основе, которая расположена на хостинге, плагин просто через 80 раундов меняет карту на рандомную.
Как видите, каждые 80 раундов должен производится рестарт раунда, но на 80 раунд плагин меняет карту на другую, а не совершает рестарт. Проверял плагин перед поставкой на основной сервер, на локальной машине. Сам он без проблем делал АвтоРестарт раунда, а на основе, которая расположена на хостинге, плагин просто через 80 раундов меняет карту на рандомную.
В этой теме было размещено решение! Перейти к решению.