- Ошибка
-
case 3:
{
rg_give_item(id, "weapon_deagle");
rg_set_user_bpammo(id, WEAPON_DEAGLE, 35);
}
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0-dev+5210 (http://www.amxmodx.org)
- Билд
-
ReHLDS version: 3.11.0.767-dev
- ReGamedll
-
ReGameDLL version: 5.21.0.540-dev
- Версия Metamod
-
Metamod-r v1.3.78, API (5:13)
- Список метамодулей
-
[ 1] SafeNameAndChat RUN - SafeNameAndChat. v1.1 ini ANY ANY
[ 2] Rechecker RUN - rechecker_mm_i38 v2.7 ini Chlvl ANY
[ 3] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0-d ini Start ANY
[ 4] Reunion RUN - reunion_mm_i386. v0.1.92d ini Start Never
[ 5] WHBlocker RUN - whblocker_mm_i38 v1.5.696 ini Chlvl ANY
[ 6] Revoice RUN - revoice_mm_i386. v0.1.0.3 ini Start Never
[ 7] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never
[ 8] ReSRDetector RUN - resrdetector_mm_ v0.1.0 ini Chlvl ANY
[ 9] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[10] Ultimate Unprec RUN - ultimate_unpreca vBeta 2. ini Chlvl Chlvl
[11] MySQL RUN - mysql_amxx_i386. v1.9.0-d pl3 ANY ANY
[12] Admins Kit RUN - adminskit_amxx_i v2.1.0 pl3 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386. v5.21.0. pl3 ANY Never
[14] Engine RUN - engine_amxx_i386 v1.9.0-d pl3 ANY ANY
[15] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0-d pl3 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx v1.9.0-d pl3 ANY ANY
[17] ReAimDetector RUN - reaimdetector_am v0.2.2 pl3 ANY Never
[18] CStrike RUN - cstrike_amxx_i38 v1.9.0-d pl3 ANY ANY
[19] CSX RUN - csx_amxx_i386.so v1.9.0-d pl3 ANY ANY
[20] SxGeo RUN - sxgeo_amxx_i386. v2.2 pl3 ANY Never
[21] Fun RUN - fun_amxx_i386.so v1.9.0-d pl3 ANY ANY
21 plugins, 21 running
- Список плагинов
-
[ 1] [190] Ultimate Gag 21.01.02BE SKAJIbnEJIb ultimate_gag.am running
[ 2] [ReAPI] Parachute 1.1 ReHLDS Team & me parachute_lite. debug
[ 3] FreshBans 1.4.6b kanagava fresh_bans_146- running
[ 4] Mode 2x2 2.5re s1lent mode.amxx running
[ 5] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 6] ScreenMaker 1.1 neygomon screen_maker.am running
[ 7] Admin Base 1.9.0-dev+ AMXX Dev Team admin.amxx running
[ 8] Admin Commands 1.9.0-dev+ AMXX Dev Team admincmd.amxx running
[ 9] Slots Reservation 1.9.0-dev+ AMXX Dev Team adminslots.amxx running
[ 10] Map Manager 2.5.61 Mistrick mapmanager.amxx running
[ 11] Menus Front-End 1.5 neugomon menufront_end.a running
[ 12] Commands Menu 1.9.0-dev+ AMXX Dev Team cmdmenu.amxx running
[ 13] Players Menu 1.7 neugomon players_menu.am running
[ 14] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 15] Plugin Menu 1.9.0-dev+ AMXX Dev Team pluginmenu.amxx running
[ 16] Admin Chat 1.9.0-dev+ AMXX Dev Team adminchat.amxx running
[ 17] Anti Flood 1.9.0-dev+ AMXX Dev Team antiflood.amxx running
[ 18] Scrolling Message 1.9.0-dev+ AMXX Dev Team scrollmsg.amxx running
[ 19] Info. Messages 1.9.0-dev+ AMXX Dev Team imessage.amxx running
[ 20] Admin Votes 1.9.0-dev+ AMXX Dev Team adminvote.amxx running
[ 21] Pause Plugins 1.9.0-dev+ AMXX Dev Team pausecfg.amxx running
[ 22] Stats Configuration 1.9.0-dev+ AMXX Dev Team statscfg.amxx running
[ 23] Restrict Weapons 1.9.0-dev+ AMXX Dev Team restmenu.amxx running
[ 24] Rank Menu 1.1 h1k3 rankmenu.amxx running
[ 25] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 26] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 27] ResetScore 1.0 Leo_[BH] Resetscore.amxx running
[ 28] Damager 0.0.5 steelzzz damager.amxx running
[ 29] Team menu 1.1 NobodyInTeam teammenu.amxx running
[ 30] Custom Models 1.3.2 neugomon custom_models.a running
[ 31] [ReAPI] Random Weapons 2.4.9 neugomon/h1k3 random_weapons_ running
[ 32] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 33] Advanced Kill Assists 1.3c Xelson next21_kill_ass running
[ 34] [ReAPI] No Team Flash 0.0.3 Vaqtincha no_team_flash.a running
[ 35] Multiple Game Names 1.0 mforce gamenamechange. running
[ 36] Connect Info 1.0 Hypa_[KZ] connect_info.am running
[ 37] Block Pickup Gold 0.1 Vaqtincha BlockPickupGold running
[ 38] Block grande info 1.0 neygomon BlockGrenadeInf running
[ 39] Demo Recorder 2.4.1 F@nt0M demo_recorder.a running
[ 40] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 41] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 42] Sound CSO 1.2 TBONTB Sound_CSO.amxx running
[ 43] Block Radio Commands 1.0 d3m37r4 block_radiocmd. running
[ 44] BOMB REAL TIMER 1.0 Vaqtincha | Flym bomb_real_timer running
[ 45] [190] Snipers RBS 20.06.06 SKAJIbnEJIb snipers_rbs.amx running
[ 46] [ReAPI] Best player of 1.1.2 F@nt0M best_player_of_ running
[ 47] Top Awards 1.0 neygomon top_awards.amxx running
[ 48] Server Menu 0.1 maFFyoZZyk Menu.amxx running
[ 49] [ReAPI] Healthnade 0.0.3f F@nt0M + mx?! reapi_healthnad running
[ 50] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc running
[ 51] Frags Counter 1.0 CHEL74 frags_counter.a running
[ 52] [190] Ultimate Flags 21.03.24BE SKAJIbnEJIb ultimate_flags. running
[ 53] Adverts 1.0 pUzzlik adverts_message running
[ 54] Spec Money Save 0.2 F@nt0M spec_money_save running
[ 55] SF Bets 0.1.5 serfreeman1337 sf_bets.amxx running
[ 56] Top Bomber 0.1.1 Albertio top_bomber.amxx running
[ 57] CT Bomb Cracker 0.5 Vaqtincha ct_bomb_cracker running
[ 58] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 59] Block Voice 1x1 1.0.2 Ragamafona block_voice_1x1 running
[ 60] Team Balance Control 1.3.9 gyxoBka TeamBalanceCont running
[ 61] Lite Translit 2.8 neygomon lite_translit_c debug
[ 62] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 63] Accuracy Fix 3.0 Numb accuracy_fix.am running
[ 64] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 65] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer_sx debug
[ 66] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 67] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 68] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 69] Fake Map 0.3 Vaqtincha FakeMap.amxx running
[ 70] V.I.P Custom Weapons 1.0.0 Vaqtincha vip_custom.amxx debug
[ 71] V.I.P Custom KNIFE 1.0.0 Vaqtincha custom_knife.am running
[ 72] V.I.P Custom DEAGLE 1.0.0 Vaqtincha custom_deagle.a running
[ 73] V.I.P Custom M4A1 1.0.0 Vaqtincha custom_m4a1.amx running
[ 74] V.I.P Custom AK-47 1.0.0 Vaqtincha custom_ak47.amx running
[ 75] V.I.P Custom AWP 1.0.0 Vaqtincha custom_awp.amxx running
[ 76] GunGame 03.01.12 FIX refiil.amxx running
76 plugins, 76 running
- Автор плагина
- "neugomon/h1k3"
- Версия плагина
- "2.4.9"
- Исходный код
-
#include <amxmodx>
#include <reapi>
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define TIME_RR 60 // Время разминки
#define NUM_RR 2 // Кол-во рестартов
#define LATENCY 1.5 // Задержка между рестартами
#define DM_MODE 1 // Возрождение после смерти; 0 - отключить (будет длится раунд или до победы)
#define PROTECTED 2 // Сколько секунд действует защита после возрождения (актуально для DM_MODE); 0 - отключить
//#define SOUND // Музыка под час разминки
#define STOP_PLUGS // Отключать плагины на время разминки
#define OFF_RR // Отключать этот плагин на указанных картах
//#define REMOVE_MAP_WPN // Удалять ентити мешающие разминке на картах типа: awp_, 35hp_ и т.п. [по умолчанию выкл.]
//#define BLOCK // Запрет поднятия оружия с земли (не актуально при вкл. #define REMOVE_MAP_WPN) [по умолчанию выкл.]
#define STOP_STATS // Отключать запись статистики на время разминки CSStatsX SQL by serfreeman1337 0.7.4+1 [по умолчанию выкл.]
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#if defined REMOVE_MAP_WPN
#include <hamsandwich>
#endif
#if defined SOUND
new const soundRR[][] = // Указывать звук, например 1.mp3
{
// "sound/rww/RoundStart.mp3",
// "sound/rww/2.mp3",
// "sound/rww/3.mp3"
}
#endif
#if defined STOP_PLUGS
new g_arPlugins[][] = // Указывать название плагинов для отключения, например test.amxx
{
"vip_custom.amxx",
"sayme.amxx",
"aes_informer_sxgeo.amxx"
}
#endif
#if DM_MODE == 0
new HookChain:fwd_RRound;
new g_iRound;
#endif
#if defined REMOVE_MAP_WPN
new HamHook:fwd_Equip,
HamHook:fwd_WpnStrip,
HamHook:fwd_Entity;
#endif
#if defined STOP_STATS
new g_iHudSync;
#endif
new g_szWeapon[32];
new g_iImmunuty, g_iRespawn, g_iWp, g_iHudSync2;
new HookChain:fwd_NewRound,
#if defined BLOCK
HookChain:fwd_BlockEntity,
#endif
HookChain:fwd_Spawn,
HookChain:fwd_GiveC4;
const TASK_TIMER_ID = 33264;
public plugin_init()
{
register_plugin("[ReAPI] Random Weapons WarmUP", "2.4.9", "neugomon/h1k3");
RegisterHookChain(RG_RoundEnd, "fwdRoundEnd", true);
DisableHookChain(fwd_NewRound = RegisterHookChain(RG_CSGameRules_CheckMapConditions, "fwdRoundStart", true));
DisableHookChain(fwd_Spawn = RegisterHookChain(RG_CBasePlayer_Spawn, "fwdPlayerSpawnPost", true));
DisableHookChain(fwd_GiveC4 = RegisterHookChain(RG_CSGameRules_GiveC4, "fwdGiveC4", false));
#if defined REMOVE_MAP_WPN
DisableHamForward(fwd_Equip = RegisterHam(Ham_Use, "game_player_equip", "CGamePlayerEquip_Use", false));
DisableHamForward(fwd_WpnStrip = RegisterHam(Ham_Use, "player_weaponstrip", "CStripWeapons_Use", false));
DisableHamForward(fwd_Entity = RegisterHam(Ham_CS_Restart, "armoury_entity", "CArmoury_Restart", false));
#endif
#if DM_MODE == 0
EnableHookChain(fwd_RRound = RegisterHookChain(RG_CSGameRules_RestartRound, "fwdRestartRound_Pre"));
#endif
#if defined BLOCK
DisableHookChain(fwd_BlockEntity = RegisterHookChain(RG_CBasePlayer_HasRestrictItem, "fwdHasRestrictItemPre", false));
register_clcmd("drop", "ClCmd_Drop");
#endif
g_iImmunuty = get_cvar_pointer("mp_respawn_immunitytime");
g_iRespawn = get_cvar_pointer("mp_forcerespawn");
#if defined STOP_STATS
g_iHudSync = CreateHudSyncObj();
#endif
g_iHudSync2 = CreateHudSyncObj();
state warmupOff;
#if defined OFF_RR
new sPref[][] = { "awp_", "aim_", "fy_", "$", "cs_", "35hp" }; // Указывать префиксы карт на которых плагин не будет работать
new map[32]; get_mapname(map, charsmax(map));
for(new i; i < sizeof sPref; i++)
{
if(containi(map, sPref[i]) != -1)
{
pause("ad");
return;
}
}
#endif
}
public plugin_end() <warmupOff> {}
public plugin_end() <warmupOn>
{
finishWurmUp();
}
#if defined BLOCK
public fwdHasRestrictItemPre()
{
SetHookChainReturn(ATYPE_INTEGER, true);
return HC_SUPERCEDE;
}
public ClCmd_Drop() <warmupOff>
return PLUGIN_CONTINUE;
public ClCmd_Drop() <warmupOn>
return PLUGIN_HANDLED;
#endif
#if defined SOUND
public plugin_precache()
{
for(new i = 0; i < sizeof(soundRR); i++)
{
precache_generic(soundRR[i]);
}
}
#endif
public fwdRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay)
if(event == ROUND_GAME_COMMENCE)
EnableHookChain(fwd_NewRound);
public fwdRoundStart()
{
state warmupOn;
#if defined REMOVE_MAP_WPN
EnableHamForward(fwd_Equip);
EnableHamForward(fwd_WpnStrip);
EnableHamForward(fwd_Entity);
#endif
DisableHookChain(fwd_NewRound);
EnableHookChain(fwd_Spawn);
EnableHookChain(fwd_GiveC4);
set_pcvar_num(g_iRespawn, DM_MODE);
set_pcvar_num(g_iImmunuty, PROTECTED);
#if DM_MODE >= 1
set_cvar_string("mp_round_infinite", "1");
set_task(1.0, "Show_Timer", .flags = "a", .repeat = TIME_RR);
#endif
#if DM_MODE == 0
set_task(1.0, "Hud_Message", .flags = "a", .repeat = 25 );
#endif
#if defined SOUND
static cmd[64];
formatex(cmd, 63, "mp3 play ^"%s^"", soundRR[random(sizeof(soundRR))]);
client_cmd(0, "%s", cmd);
#endif
#if defined STOP_STATS
set_cvar_num("csstats_pause", 1);
#endif
#if defined BLOCK
EnableHookChain(fwd_BlockEntity);
#endif
#if defined STOP_PLUGS
PluginController(1);
#endif
switch(g_iWp = random(8))
{
case 0: formatex(g_szWeapon, charsmax(g_szWeapon), "M4A1");
case 1: formatex(g_szWeapon, charsmax(g_szWeapon), "AK-47");
case 2: formatex(g_szWeapon, charsmax(g_szWeapon), "SCOUT");
case 3: formatex(g_szWeapon, charsmax(g_szWeapon), "DEAGLE");
}
}
public fwdPlayerSpawnPost(const id)
{
if(!is_user_alive(id))
return;
#if defined REMOVE_MAP_WPN
InvisibilityArmourys();
#endif
BuyZone_ToogleSolid(SOLID_NOT);
rg_remove_all_items(id);
set_member_game(m_bMapHasBuyZone, true);
rg_give_item(id, "weapon_knife");
switch(g_iWp)
{
case 0:
{
rg_give_item(id, "weapon_m4a1");
rg_set_user_bpammo(id, WEAPON_M4A1, 90);
}
case 1:
{
rg_give_item(id, "weapon_ak47");
rg_set_user_bpammo(id, WEAPON_AK47, 90);
}
case 2:
{
rg_give_item(id, "weapon_scout");
rg_set_user_bpammo(id, WEAPON_SCOUT, 30);
}
case 3:
{
rg_give_item(id, "weapon_deagle");
rg_set_user_bpammo(id, WEAPON_DEAGLE, 35);
}
}
}
public fwdGiveC4()
{
return HC_SUPERCEDE;
}
#if DM_MODE >= 1
public Show_Timer()
{
static timer = -1;
if(timer == -1) timer = TIME_RR;
switch(--timer)
{
case 0:
{
finishWurmUp();
timer = -1;
}
default:
{
#if defined STOP_STATS
set_hudmessage(255, 0, 0, .x = -1.0, .y = 0.13, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Отключена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.16, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка на %s!^nРестарт через %d сек", g_szWeapon, timer);
}
}
}
#endif
#if DM_MODE == 0
public fwdRestartRound_Pre()
{
g_iRound++;
if(g_iRound >= 2) {
DisableHookChain(fwd_RRound);
finishWurmUp();
}
}
public Hud_Message()
{
#if defined STOP_STATS
set_hudmessage(255, 0, 0, .x = -1.0, .y = 0.13, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Отключена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.16, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка на %s!", g_szWeapon);
}
#endif
public SV_Restart()
{
set_cvar_num("sv_restart", 1);
set_task(2.0, "End_RR");
}
public End_RR()
{
#if defined STOP_STATS
set_hudmessage(0, 255, 0, .x = -1.0, .y = 0.13, .holdtime = 5.0, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Включена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.16, .holdtime = 5.0, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка окончена!");
for(new i = 1; i <= MaxClients; i++)
{
if(is_user_alive(i))
{
rg_remove_items_by_slot(i, PRIMARY_WEAPON_SLOT);
}
}
}
#if defined REMOVE_MAP_WPN
public CArmoury_Restart(const pArmoury)
{
return HAM_SUPERCEDE;
}
public CGamePlayerEquip_Use()
{
return HAM_SUPERCEDE;
}
public CStripWeapons_Use()
{
return HAM_SUPERCEDE;
}
InvisibilityArmourys()
{
new pArmoury = NULLENT
while((pArmoury = rg_find_ent_by_class(pArmoury, "armoury_entity")))
{
if(get_member(pArmoury, m_Armoury_iCount) > 0)
{
set_entvar(pArmoury, var_effects, get_entvar(pArmoury, var_effects) | EF_NODRAW)
set_entvar(pArmoury, var_solid, SOLID_NOT)
set_member(pArmoury, m_Armoury_iCount, 0)
}
}
}
#endif
finishWurmUp()
{
state warmupOff;
BuyZone_ToogleSolid(SOLID_TRIGGER);
#if defined REMOVE_MAP_WPN
DisableHamForward(fwd_Equip);
DisableHamForward(fwd_WpnStrip);
DisableHamForward(fwd_Entity);
#endif
DisableHookChain(fwd_Spawn);
DisableHookChain(fwd_GiveC4);
set_cvar_string("mp_forcerespawn", "0");
set_cvar_string("mp_respawn_immunitytime", "0");
set_cvar_string("mp_round_infinite", "0");
#if defined STOP_STATS
set_cvar_num("csstats_pause", 0);
#endif
#if defined BLOCK
DisableHookChain(fwd_BlockEntity);
#endif
#if defined STOP_PLUGS
PluginController(0);
#endif
#if NUM_RR > 1
set_task(LATENCY, "SV_Restart", .flags = "a", .repeat = NUM_RR);
#else
SV_Restart();
#endif
remove_task(TASK_TIMER_ID);
}
stock PluginController(stop)
{
for(new i; i < sizeof g_arPlugins; i++)
{
if(stop)pause ("ac", g_arPlugins[i]);
else unpause("ac", g_arPlugins[i]);
}
}
stock BuyZone_ToogleSolid(const solid)
{
new entityIndex = 0;
while ((entityIndex = rg_find_ent_by_class(entityIndex, "func_buyzone")))
set_entvar(entityIndex, var_solid, solid);
}
Вообщем решил поменять стволы на разминку, а точнее убрать которые считаю не нужные, выдает все как надо, кроме дигла.
Как правильно прописать его тут : rg_give_item(id, "weapon_deagle"); подскажите.
Просто бегают все с ножами, а в худе пишет РАЗМИНКА НА !
Как правильно прописать его тут : rg_give_item(id, "weapon_deagle"); подскажите.
Просто бегают все с ножами, а в худе пишет РАЗМИНКА НА !
В этой теме было размещено решение! Перейти к решению.