Участник
Пользователь
- Сообщения
- 105
- Реакции
- 6
- Ошибка
-
[Сервер] жди -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.668-dev
Build date: 09:47:42 Sep 29 2018 (1631)
Build from: https://github.com/dreamstalker/rehlds/commit/89be216
- ReGamedll
-
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
- Версия 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] CStrike v1.9.0.5263 AMX Mod X Dev Team running
[ 2] dummy_csx v1.0 AGHL.RU Dev Team running
[ 3] ReAPI v5.19.0.211 Asmodai & s1lent running
[ 4] FakeMeta v1.9.0.5263 AMX Mod X Dev Team running
[ 5] MySQL v1.9.0.5263 AMX Mod X Dev Team running
[ 6] nVault v1.9.0.5263 AMX Mod X Dev Team running
[ 7] Ham Sandwich v1.9.0.5263 AMX Mod X Dev Team running
[ 8] Engine v1.9.0.5263 AMX Mod X Dev Team running
[ 9] ReAimDetector v0.2.2 ReHLDS Team running
[10] Fun 1.9.0.5263 AMX Mod X Dev Team running
- Список плагинов
-
[ 1] CSStatsX SQL 0.7.4+2 vserfreeman1337 aes_csstatsx_sq running
[ 2] Bypass Guard 1.0.1 vmx?! bypass_guard.am running
[ 3] Admin Loader 3.5 vneygomon admin_loader.am running
[ 4] FreshBans 1.4.2b vkanagava fresh_bans.amxx running
[ 5] Admin Chat 1.9.0.5263 vAMXX Dev Team adminchat.amxx running
[ 6] Admin Commands 1.9.0.5263 vAMXX Dev Team admincmd.amxx running
[ 7] Anti Flood 1.9.0.5263 vAMXX Dev Team antiflood.amxx running
[ 8] Commands Menu 1.9.0.5263 vAMXX Dev Team cmdmenu.amxx running
[ 9] Info. Messages 1.9.0.5263 vAMXX Dev Team imessage.amxx running
[ 10] Maps Menu v1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 11] Players Menu v1.9.0.5263 AMXX Dev Team plmenu.amxx running
[ 12] Plugin Menu v1.9.0.5263 AMXX Dev Team pluginmenu.amxx running
[ 13] Restrict Weapons v1.9.0.5263 AMXX Dev Team restmenu.amxx running
[ 14] TimeLeft v1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 15] Scrolling Message v1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 16] Admin Votes v1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 17] CS Misc. Stats v1.9.0.5263 AMXX Dev Team miscstats.amxx running
[ 18] CS Stats Logging v1.9.0.5263 AMXX Dev Team stats_logging.a running
[ 19] Stats Configuration v1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 20] [ReAPI] Healthnade v0.0.2 F@nt0M healthnade.amxx running
[ 21] Lite Translit v2.8 neygomon lite_translit_c running
[ 22] Map Manager v2.5.60 Mistrick mapmanager.amxx running
[ 23] Autoresponder/Advertis v0.5 MaximusBrood ad_manager.amxx running
[ 24] Rank Menu v0.1 h1k3 rankmenu.amxx running
[ 25] Demo Recorder v1.6 Sho0ter demorecorder.am running
[ 26] Parachute v1.0 maeStro parachute.amxx running
[ 27] Colored FITH ReAPI v1.2 CHEL74 colored_fith_an running
[ 28] ReAimDetector API v0.2.2 ReHLDS Team reaimdetector.a running
[ 29] Weapon Icon v1.2 hoboman313/Zenix weapon_icon.amx running
[ 30] GameName Changer v1.0.0 Nordic Warrior GameNameChanger running
[ 31] Reset Score v1.0 Silenttt resetscore.amxx running
[ 32] Menu v1.0 WaT_1 menu.amxx running
[ 33] Icon Color v1.0 AcE icon_color.amxx running
[ 34] [AMXX] Date and Time v0.2 ServerBy905 Team DateAndTime.amx running
[ 35] Change Team v1.1 neygomon changeteam.amxx running
[ 36] amxmodmenu_new v1.12 Russian MaFi9 menu2.amxx running
[ 37] VIPka v1.3.3 neygomon vip_system.amxx running
[ 38] New Plug-In v1.0 Kpoxa premium_menu.am running
[ 39] Weapon Skin System v0.6.0-50 Mistrick weapon_skin_sys running
[ 40] Kills Counter v1.0 Safety1st kills_counter.a running
[ 41] amxmodmenu_new v1.12 Russian MaFi9 amxmodmenu.amxx running
[ 42] SF Warn Menu v0.1.3 serfreeman1337 sf_admin_warns. running
[ 43] AMXX Gag v1.4.9 xPaw & Exolent amx_gag.amxx running
[ 44] Screen Shot Menu v1.2 Bonaqua | DimaS ss_menu.amxx running
[ 45] Teleport Menu v1.9.0.5235 AMXX Dev Team telemenu.amxx running
[ 46] Killa HP v1.6 jas0n killa_hp.amxx running
[ 47] Lite VoteBan v1.4 neygomon lite_voteban.am running
[ 48] mute v1.0 Aziz mute.amxx running
[ 49] Afk Control v0.5.1 neygomon afk_control.amx running
[ 50] Damager v2.0 Prayer damager.amxx running
[ 51] Admin-Check v5.5 p1Mp & S1n[L]Ss Admin-Check.amx running
[ 52] Ultimate Flags v29.10.19 by detu mou ultimate_flags. running
[ 53] Time Bonus v1.1 SKOBAR1K time_bonus.amxx running
[ 54] Top Round Damage v1.0.4 ReAP Dager* *.* -G- damage_round.am running
[ 55] [ReAPI] Custom Models v1.6.1 neugomon custom_models.a running
[ 56] say /me and /hp v0.3 neygomon say_me_and_hp.a running
[ 57] AES: StatsX Info Rank v0.1 serfreeman1337 aes_statsx_info running
[ 58] Steаm Bonus v1.0 Hypa_[KZ] steam_bonus.amx running
[ 59] Knives Shop v1.2 OverGame knives.amxx running
[ 60] [ReAPI] Top Awards v1.0 Dom1no_[KZ] Re_top_awards.a running
[ 61] unknown vunknown unknown show_changer_na running
[ 62] Blue Fade v0.1 Stimul blue_fade.amxx running
[ 63] ScoreBoard Title v1.0 xPaw ScoreBoardTitle running
[ 64] Advanced Experience Sy v0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 65] AES: StatsX v0.5.9 [REA serfreeman1337/s aes_statsx.amxx running
[ 66] AES: CStrike Addon v0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 67] AES: Informer v0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 68] AES: Admin Tools v0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 69] AES: Bonus System v0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 70] AES: Bonus CSTRIKE v0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
70 plugins, 70 running
- Автор плагина
- Кроха
- Версия плагина
- 1.0
- Исходный код
-
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Kpoxa"
#include <cstrike>
new vip_1[33], vip_2[33], vip_3[33], vip_4[33], vip_5[33], vip_6[33], vip_7[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /premium", "vipmenu")
register_logevent("round_end", 2, "1=Round_End")
}
public vipmenu(id)
{
if (!(get_user_flags(id) & ADMIN_LEVEL_A))
return PLUGIN_CONTINUE;
new menu = menu_create("\d< \y# \d> \wPremium Меню:", "vip_menu")
menu_additem(menu, "Воскреснуть \r[\y1 \rраз за раунд]", "1")
menu_additem(menu, "Взять 100 хп и брони \r[\y1 \rраз за раунд]", "2")
menu_additem(menu, "Взять 5000$ \r[\y1 \rраз в 3 раунда]", "3")
menu_additem(menu, "Меню Скинов", "4")
menu_setprop(menu, MPROP_EXITNAME, "Выход")
menu_display(id, menu, 0)
return PLUGIN_HANDLED
}
public vip_menu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64], access, cellback
menu_item_getinfo( menu, item, access, data,5, iName, 63, cellback );
new key = str_to_num(data)
switch(key)
{
case 1:
{
if(vip_1[id] == 0)
{
vip_1[id] = 1
ExecuteHam(Ham_CS_RoundRespawn, id)
}
else client_print(id, print_chat, "[Сервер] жди %d раундов", vip_1[id])
}
case 2:
{
if(vip_2[id] == 0)
{
vip_2[id] = 1
set_user_health(id, 100)
set_user_armor(id, 100)
}
else client_print(id, print_chat, "[Сервер] жди %d раундов", vip_2[id])
}
case 3:
{
if(vip_3[id] == 0)
{
vip_3[id] = 3
cs_set_user_money(id, 5000)
}
else client_print(id, print_chat, "[Сервер] жди %d раундов", vip_3[id])
}
case 4:
{
if(vip_7[id] == 0)
{
vip_7[id] = 0
client_cmd(id, "skinsmemufunnysell")
}
else client_print(id, print_chat, "[Сервер] жди %d раундов", vip_7[id])
}
}
return PLUGIN_HANDLED
}
public round_end()
{
for(new id = 0; id <= get_maxplayers(); id++)
{
if(vip_1[id] > 0) vip_1[id] =- 1
if(vip_2[id] > 0) vip_2[id] =- 1
if(vip_3[id] > 0) vip_3[id] =- 1
if(vip_4[id] > 0) vip_4[id] =- 1
if(vip_5[id] > 0) vip_5[id] =- 1
if(vip_6[id] > 0) vip_6[id] =- 1
if(vip_7[id] > 0) vip_7[id] =- 1
}
}
Проблема в том что в меню есть пункты, которые работают так:
когда открываешь в первый раз наживаешь "воскреснуть" и ты воскрешаешься, дальше если ещё раз нажать будет написано [Сервер] жди 1 раундов(как и должно быть) это всё в одном раунде. Когда в след раунде хочешь воскреснуть то просто пишет [Сервер] жди -1 раундов(и сколько не нажимать будет выводить [Сервер] жди 1 раундов)
Подскажите пожалуйста что делать?
когда открываешь в первый раз наживаешь "воскреснуть" и ты воскрешаешься, дальше если ещё раз нажать будет написано [Сервер] жди 1 раундов(как и должно быть) это всё в одном раунде. Когда в след раунде хочешь воскреснуть то просто пишет [Сервер] жди -1 раундов(и сколько не нажимать будет выводить [Сервер] жди 1 раундов)
Подскажите пожалуйста что делать?
В этой теме было размещено решение! Перейти к решению.
Вложения
-
2.8 KB Просмотры: 141