Пользователь
- Сообщения
- 30
- Реакции
- -27
Неверный раздел форума
- Ошибка
-
Нету
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5263 (http://www.amxmodx.org)
- Билд
-
ReHLDS version: 3.7.0.692-dev
- ReGamedll
-
ReGameDLL version: 5.18.0.474-dev
- Версия Metamod
-
ReGameDLL version: 5.18.0.474-dev
- Список метамодулей
-
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 3] ReSemiclip RUN - resemiclip_mm_i386.so v2.2(a) ini Chlvl ANY
[ 4] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 6] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.695 ini Chlvl ANY
[ 8] Placeholders disabler RUN - plfix_mm_i386.so v0.0.3 ini Start Never
[ 9] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[11] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[12] ReAPI RUN - reapi_amxx_i386.so v5.15.0.197-dev pl5 ANY Never
[13] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[14] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[15] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
17 plugins, 17 running
- Список плагинов
-
name version author file status
[ 1] FreshBans 1.4.3b kanagava fresh_bans_143_ running
[ 2] Admin Loader 2.6.2 neygomon admin_loader.am running
[ 3] Admin Commands 1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 4] Admin Help 1.9.0.5263 AMXX Dev Team adminhelp.amxx running
[ 5] Menus Front-End 1.5 neugomon menufront_end.a running
[ 6] Commands Menu 1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 7] Players Menu 1.7 neugomon players_menu.am running
[ 8] Maps Menu 1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 9] Admin Chat 1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 10] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 11] Admin Votes 1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 12] TimeLeft 1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 13] Pause Plugins 1.9.0.5263 AMXX Dev Team pausecfg.amxx running
[ 14] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 15] Restrict Weapons 20.06.06 SKAJIbnEJIb & AM restmenu_rbs.am running
[ 16] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 17] c4 timer 1.0 cheap_suit c4timer.amxx running
[ 18] Block All Adverts 1.3 neygomon block_all_adver running
[ 19] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 20] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 21] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 22] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 23] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 24] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 25] Afk Control 0.4 Stable Freedo.m | neygo afk_control.amx running
[ 26] nice Demo 1.0 sector demo.amxx running
[ 27] High Ping Kicker 1.0 Shadow/Bo0m! amx_hpk.amxx running
[ 28] mute 1.0 by NuRRa_kz mute.amxx running
[ 29] block ip 0.2 legenda amx_blockip.amx running
[ 30] Team Select 1.6.0 F@nt0M teamselect.amxx running
[ 31] Game Change 1.0 AsEkE game_name.amxx running
[ 32] Reset Score and Sound 1.0 FarCher NewResetScore.a running
[ 33] Kills Counter 0.3 serfreeman1337 kills_counter.a running
[ 34] Time Bonus 1.1 SKOBAR1K time_bonus.amxx running
[ 35] Team Grenade Trail 1.2 Numb team_grenade_tr running
[ 36] Donate money 0.1 Sanlerus \ di.al donate_money.am running
[ 37] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 38] Weapon Skin System 0.6.0-50 Mistrick weapon_skin_sys running
[ 39] [183] Parachute RBS 20.06.06 SKAJIbnEJIb & KR parachute_rbs.a running
[ 40] Server Menu 1.0 UserFound my_menu.amxx running
[ 41] Fake Ping 1.0 MeRcyLeZZ/gyxoBk FakePing.amxx running
[ 42] Block Pickup Gold 0.1 Vaqtincha BlockPickupGold running
[ 43] Custom Models 1.3.2 neugomon custom_models.a running
[ 44] Killa HP 1.0 jas0n killa_hp.amxx running
[ 45] V.I.P Custom Weapons 1.0.0 Vaqtincha vip_custom.amxx running
[ 46] V.I.P Custom KNIFE 1.0.0 Vaqtincha custom_knife.am running
[ 47] V.I.P Custom DEAGLE 1.0.0 Vaqtincha custom_deagle.a running
[ 48] V.I.P Custom M4A1 1.0.0 Vaqtincha custom_m4a1.amx running
[ 49] V.I.P Custom AK-47 1.0.0 Vaqtincha custom_ak47.amx running
[ 50] V.I.P Custom AWP 1.0.0 Vaqtincha custom_awp.amxx running
[ 51] lite screen fade 1.0 AcE re_lite_screen_ running
[ 52] Lite Admin ESP 1.1 neygomon, AcE admin_esp.amxx running
[ 53] Steam Bonus 2.0 Neugomon steambonus.amxx running
[ 54] Lite Translit 2.8 neygomon lite_translit.a running
- Автор плагина
- Neugomon
- Версия плагина
- 2.0
- Исходный код
-
/******************************
* .:: Credits ::.
* neugomon - author
* roten - add UA lang
******************************/
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
// #### Начало Конфигурационные defines ####
#define CHATTAG "^3[Steam Bonus]^4"
#define MIN_MONEY 500
#define MAX_MONEY 1500
#define MIN_HP 2
#define MAX_HP 3
#define STEAMBONUSROUND 3
//#define OPENMENUSOUND
new g_roundCount;
new const PRIMARY_WEAPONS_BITSUM = (1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90);
new const SECONDARY_WEAPONS_BITSUM = (1<<CSW_P228)|(1<<CSW_ELITE)|(1<<CSW_FIVESEVEN)|(1<<CSW_USP)|(1<<CSW_GLOCK18)|(1<<CSW_DEAGLE);
public plugin_init()
{
new sPref[][] = {"dm_", "awp_", "aim_", "35hp", "fy_"};
new map[32]; get_mapname(map, charsmax(map));
for(new i; i < sizeof sPref; i++)
{
if(containi(map, sPref[i]) != -1)
{
pause("ad");
return;
}
}
register_plugin("Steam Bonus", "2.0", "Neugomon")
register_event("TextMsg", "eRestart", "a", "2&#Game_C", "2&#Game_w");
register_event("HLTV","eRoundStart","a","1=0","2=0");
RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1);
register_menucmd(register_menuid("Steam Bonus Menu"), MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6, "SteamBonus");
}
public eRestart(id)
{
g_roundCount = 0;
show_menu(id, 0, "^n", 1)
}
public eRoundStart(id)
{
g_roundCount++;
}
public Player_Spawn(id)
{
if(g_roundCount < STEAMBONUSROUND)
return 0;
return SteamBonusMenu(id);
}
public SteamBonusMenu(id)
{
if(!is_user_steam(id)) return 0;
#if defined OPENMENUSOUND
static OpenMenuSound[] = "buttons/blip2";
client_cmd( id, "spk ^"%s^"", OpenMenuSound );
#endif
static szMenu[512], iLen, iKey, Name[32];
get_user_name(id, Name, charsmax(Name))
iKey = MENU_KEY_6|MENU_KEY_5|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4;
iLen = formatex(szMenu, 511, "\d[\ySTEAM BONUS MENU\d]^n\d[\dПривет\r: \y%s\r]^n^n\r[\y1\r]\y Деньги^n\r[\y2\r]\y Броня+Шлем^n\r[\y3\r]\y Набор гранат^n\r[\y4\r]\y Оружие \rAK, M4, FM, AWP^n\r[\y5\r]\y Добавить \rHP \d[\yДо \r3HP\d]^n^n", Name);
formatex(szMenu[iLen], 511 - iLen, "\r[\y6\r] [\yОтказаться от бонусов\r]");
return show_menu(id, iKey, szMenu, 15, "Steam Bonus Menu");
}
public SteamBonus(id, iKey)
{
switch(iKey)
{
case 0:
{
new iMoney = random_num(MIN_MONEY, MAX_MONEY);
cs_set_user_money(id, cs_get_user_money(id) + iMoney);
ChatColor(id, "%s Вы получили бонус: ДЕНЬГИ($) за: ^3Steam CS ^4в размере: ^3%d$", CHATTAG, iMoney);
}
case 1:
{
cs_set_user_armor(id, 100, CsArmorType:2);
ChatColor(id, "%s Вы получили бонус за: ^3Steam CS: ^4Броню+Шлем", CHATTAG);
}
case 2:
{
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
ChatColor(id, "%s Вы получили бонус за: ^3Steam CS: ^4Набор гранат", CHATTAG);
}
case 3:
{
WeaponRandom(id);
}
case 4:
{
new iHealth = random_num(MIN_HP, MAX_HP);
set_user_health(id, get_user_health(id) + iHealth);
ChatColor(id, "%s Вы получили бонус за: ^3Steam CS ^4добавлено: ^3%dHP", CHATTAG, iHealth);
}
}
return PLUGIN_HANDLED;
}
public WeaponRandom(id)
{
switch(random(4))
{
case 0: give_item_ex(id,"weapon_ak47",90,1)
case 1: give_item_ex(id,"weapon_m4a1",90,1)
case 2: give_item_ex(id,"weapon_awp",30,1)
case 3: give_item_ex(id,"weapon_famas",90,1)
}
return PLUGIN_HANDLED;
}
stock give_item_ex(id,currWeaponName[],ammoAmount,dropFlag=0)
{
static weaponsList[32], weaponName[32], weaponsNum, currWeaponID;
currWeaponID = get_weaponid(currWeaponName);
if(dropFlag)
{
weaponsNum = 0;
get_user_weapons(id,weaponsList,weaponsNum);
for (new i;i < weaponsNum;i++)
{
if(((1 << currWeaponID) & PRIMARY_WEAPONS_BITSUM && (1 << weaponsList[i]) & PRIMARY_WEAPONS_BITSUM) | ((1 << currWeaponID) & SECONDARY_WEAPONS_BITSUM && (1 << weaponsList[i]) & SECONDARY_WEAPONS_BITSUM))
{
get_weaponname(weaponsList[i],weaponName,charsmax(weaponName));
engclient_cmd(id,"drop",weaponName);
}
}
}
give_item(id,currWeaponName);
cs_set_user_bpammo(id,currWeaponID,ammoAmount);
ChatColor(id, "%s Вы получили бонус за: ^3Steam CS ^4оружие: ^3%s", CHATTAG, currWeaponName[7]);
return 1;
}
stock ChatColor(const id, const szMessage[], any:...)
{
static szMsg[190], IdMsg;
vformat(szMsg, charsmax(szMsg), szMessage, 3);
if(!IdMsg) IdMsg = get_user_msgid("SayText");
message_begin(MSG_ONE, IdMsg, .player = id);
write_byte(id);
write_string(szMsg);
message_end();
}
stock bool:is_user_steam(id)
{
static dp_pointer;
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
{
server_cmd("dp_clientinfo %d", id);
server_exec();
return (get_pcvar_num(dp_pointer) == 2) ? true : false;
}
return false;
}
Помогите сделать так, чтоб меню не выскакивало игрокам с флагом t.
В этой теме было размещено решение! Перейти к решению.