Участник
Пользователь
- Сообщения
- 209
- Реакции
- 28
- Помог
- 8 раз(а)
- Ошибка
-
Не выдаются бонусы /anew
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5232 (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: Oct 14 2018 08:47:55
Built from: https://github.com/alliedmodders/amxmodx/commit/be52641
Build ID: 5232:be52641
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.664-dev
Build date: 15:17:41 Sep 24 2018 (1626)
Build from: https://github.com/dreamstalker/rehlds/commit/83f53fb
- ReGamedll
-
ReGameDLL version: 5.7.0.322-dev
Build date: 11:41:14 Jan 13 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/7398bb7
- Версия 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
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5232 ini Start ANY
[ 4] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 6] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 7] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 9] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
[11] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
[12] ReParachute RUN - parachute_amxx_i386.so v1.1 Beta pl3 ANY ANY
[13] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl3 ANY Never
[14] ReAPI RUN - reapi_amxx_i386.so v5.6.0.160-dev pl3 ANY Never
[15] Engine RUN - engine_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
[16] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
[17] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
[19] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
[20] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
[21] Fun RUN - fun_amxx_i386.so v1.9.0.5232 pl3 ANY ANY
21 plugins, 21 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] GameCMS_GagManager 2.2.2 zhorzh78 gamecms_gagmana running
[ 2] GameCMS_API 5.2.9 zhorzh78 gamecms_api_5.2 running
[ 3] [183] Ultimate Weapons 18.08.08BE SKAJIbnEJIb ultimate_weapon running
[ 4] FreshBans 1.4.0b kanagava fresh_bans_140_ running
[ 5] WebHS 0.1 kanagava fb_web_online.a running
[ 6] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 7] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 8] Rank Menu 1.1 h1k3 rankmenu.amxx running
[ 9] [183] StatsX RBS 18.03.24 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 10] Stats Configuration 18.05.15 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 11] [183] Army Ranks Ultim 18.05.15 SKAJIbnEJIb army_ranks_ulti running
[ 12] AR Double 14.12.02 SKAJIbnEJIb ar_double.amxx running
[ 13] [183] BonusMenu RBS 18.05.15 SKAJIbnEJIb bonusmenu_rbs.a running
[ 14] [183] Team Balancer 17.10.30 Sanlerus team_balancer.a running
[ 15] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 16] [ReAPI] No Team Flash 1.0 ReHLDS Team noteamflash.amx running
[ 17] Auto Demo Recorder 2.2.1 F@nt0M demo_recorder.a running
[ 18] [183] Ultimate Models 18.12.19 SKAJIbnEJIb ultimate_models running
[ 19] GameName Changer 1.0 neugomon gamename_change running
[ 20] Advert Messages 1.22 neygomon adverts.amxx running
[ 21] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 22] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 23] Menus Front-End 1.5 neugomon menufront_end.a running
[ 24] Players Menu 1.7 neugomon players_menu.am running
[ 25] [183] Ultimate Informe 17.10.30 SKAJIbnEJIb ultimate_inform running
[ 26] [183] Skill ELO 18.03.24 SKAJIbnEJIb skill_elo.amxx running
[ 27] [183] CsStats MySQL 18.08.09 SKAJIbnEJIb csstats_mysql.a running
[ 28] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 29] [183] VIP RBS 18.12.17BE SKAJIbnEJIb vip_rbs.amxx running
[ 30] Admin Check 1.51 OneEyed admin_check.amx running
[ 31] Bullet Damage 0.0.1 ConnorMcLeod bullet_damage.a running
[ 32] Lite AwpLimit 1.09 neygomon awp.amxx running
[ 33] [183] Ultimate Flags 18.12.16 SKAJIbnEJIb ultimate_flags. running
[ 34] Admin Commands 1.9.0.5232 AMXX Dev Team admincmd.amxx running
[ 35] Admin Votes 1.9.0.5232 AMXX Dev Team adminvote.amxx running
[ 36] Admin Chat 1.9.0.5232 AMXX Dev Team adminchat.amxx running
[ 37] Commands Menu 1.9.0.5232 AMXX Dev Team cmdmenu.amxx running
[ 38] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 39] Multi-Lingual System 1.9.0.5232 AMXX Dev Team multilingual.am running
[ 40] Pause Plugins 1.9.0.5232 AMXX Dev Team pausecfg.amxx running
[ 41] Items Restrict 1.0 s1lent items_restrict. running
[ 42] TimeLeft 1.9.0.5232 AMXX Dev Team timeleft.amxx running
[ 43] Plugin Menu 1.9.0.5232 AMXX Dev Team pluginmenu.amxx running
[ 44] Models Replacement 0.0.2 ConnorMcLeod | V models_replacem running
[ 45] Onlinetime Awards 0.1 sonyx atop_vip.amxx running
[ 46] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 47] GameCMS Time Awards 1.4 API_5 zhorzh78 gamecms_time_aw running
[ 48] Rechecker Log 0.1 F@nt0M rc_log.amxx running
[ 49] [AMXX] CKPUH_III_OT Komap 1.0 info.amxx running
[ 50] Easy Sell System ( Bon 1.4b V1adJkee esb.amxx running
[ 51] Easy Sell System ( Exp 1.4b V1adJkee ese.amxx running
[ 52] Menu System 0.1.2 serfreeman1337 menuSystem.amxx running
[ 53] GameCMS BonusSystem 1.1 +- DUKKHAZ0R gamecms_bonus.a running
[ 54] unknown unknown unknown prefix_loader.a running
[ 55] unknown unknown unknown gamecms_bonusre running
[ 56] Mode 2x2 2.5re s1lent mode.amxx running
[ 57] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc running
[ 58] GameCMS_Achievs_Core 1.3 zhorzh78 gamecms_achievs running
[ 59] GameCMS_Player_Achievs 1.3 zhorzh78 player_achievs_ running
[ 60] GameCMS_Bomb_Achievs 1.2 zhorzh78 bomb_achievs_1. running
[ 61] GameCMS_Special_Achiev 1.3 zhorzh78 special_achievs running
[ 62] [183] Jobs RBS 19.02.22 SKAJIbnEJIb jobs_rbs.amxx running
[ 63] Bonus Round 1.1 V1adJkee eventsys_amxhel running
[ 64] [183] Analizator 19.07.15 SKAJIbnEJIb analizator.amxx running
[ 65] GameCMS_Present 1.6.6 zhorzh78 gamecms_present running
[ 66] [AMXX] Present Addon 1.0 Komap AMXX_PresentAdd running
[ 67] [ReAPI] Best player of 1.1.2 F@nt0M best_player_of_ running
[ 68] [183] Kill Assist RBS 17.10.30 Digi & SKAJIbnEJ killassist_rbs. running
[ 69] [183] Chat RBS 18.03.24 SKAJIbnEJIb chat_rbs.amxx running
69 plugins, 69 running
- Автор плагина
- Komap
- Версия плагина
- 1.0
- Исходный код
-
#include amxmodx
#include gamecms_present
#include reapi
#include cstrike
#include fun
native ar_get_user_realxp(iPlayer);
native ar_add_user_anew(iAdmin, iPlayer, anew);
native ar_set_user_realxp(iPlayer, addxp);
#define present_anew 10 //Сколько выдавать очков anew
#define present_exp 10 //Сколько выдавать опыта
public plugin_init() {
register_plugin("[AMXX] Present Addon", "1.0", "Komap");
}
public plugin_cfg() {
CmsAddPresent(5, "Очки anew", -1, -3, get_cvar_num("cms_present_minplayers"));
CmsAddPresent(6, "Опыт", -1, -3, get_cvar_num("cms_present_minplayers"));
CmsAddPresent(7, "AK47", -1, -3, get_cvar_num("cms_present_minplayers"));
CmsAddPresent(8, "M4A1", -1, -3, get_cvar_num("cms_present_minplayers"));
CmsAddPresent(9, "AWP", -1, -3, get_cvar_num("cms_present_minplayers"));
CmsAddPresent(10, "2000$", -1, -3, get_cvar_num("cms_present_minplayers"));
CmsAddPresent(11, "Все гранаты", -1, -3, get_cvar_num("cms_present_minplayers"));
CmsAddPresent(12, "Броня+Шлем", -1, -3, get_cvar_num("cms_present_minplayers"));
CmsAddPresent(13, "+20 ХП", -1, -3, get_cvar_num("cms_present_minplayers"));
}
public OnTakePresent(iPlayer, idKey, iEntity) {
switch(idKey) {
case 5: ar_add_user_anew(-1, iPlayer, present_anew); //client_print(iPlayer, print_chat, "%s anew", present_anew)
case 6: ar_set_user_realxp(iPlayer, ar_get_user_realxp(iPlayer) + present_exp); //client_print(iPlayer, print_chat, "%s exp", present_exp)
case 7: {
rg_drop_items_by_slot(iPlayer, InventorySlotType:PRIMARY_WEAPON_SLOT);
rg_give_item(iPlayer, "weapon_ak47", GT_REPLACE);
set_task(0.3, "setAmmo", iPlayer+2491);
}
case 8: {
rg_drop_items_by_slot(iPlayer, InventorySlotType:PRIMARY_WEAPON_SLOT);
rg_give_item(iPlayer, "weapon_m4a1", GT_REPLACE);
set_task(0.3, "setAmmo", iPlayer+2491);
}
case 9: {
rg_drop_items_by_slot(iPlayer, InventorySlotType:PRIMARY_WEAPON_SLOT);
rg_give_item(iPlayer, "weapon_awp", GT_REPLACE);
set_task(0.3, "setAmmo", iPlayer+2491);
}
case 10: rg_add_account(iPlayer, 2000, AS_ADD);
case 11: {
rg_give_item(iPlayer, "weapon_hegranade", GT_APPEND);
rg_give_item(iPlayer, "weapon_smokegrenade", GT_APPEND);
rg_give_item(iPlayer, "weapon_flashbang", GT_APPEND);
rg_give_item(iPlayer, "weapon_flashbang", GT_APPEND);
}
case 12: rg_set_user_armor(iPlayer, 100, ARMOR_VESTHELM);
case 13: {
if(get_user_health(iPlayer) + 20 >= 100) set_user_health(iPlayer, 100)
else set_user_health(iPlayer, get_user_health(iPlayer) + 20);
}
}
return PLUGIN_HANDLED;
}
public setAmmo(iTask) {
static iPlayer; iPlayer = iTask - 2491;
if(task_exists(iTask))
remove_task(iTask);
if(!is_user_connected(iPlayer))
return;
static user_weapon[3]; user_weapon[0] = get_user_weapon(iPlayer, user_weapon[1], user_weapon[2]);
if(user_weapon[0] != CSW_HEGRENADE && user_weapon[0] != CSW_C4 && user_weapon[0] != CSW_SMOKEGRENADE && user_weapon[0] != CSW_FLASHBANG && user_weapon[0] != CSW_KNIFE) {
cs_set_user_bpammo(iPlayer, user_weapon[0], 60);
}
}
Прикладываю нужные инклюды.
Все кейсы работают. Все сундуки подбираются корректно.
Но почему то очки anew не прибавляются. Обращался уже к создателю плагина сундуков, создателю плагина Army Ranks Ultimate. Никто не смог помочь.
Надеюсь, что тут мне смогут помочь.
Заранее благодарю.
Все кейсы работают. Все сундуки подбираются корректно.
Но почему то очки anew не прибавляются. Обращался уже к создателю плагина сундуков, создателю плагина Army Ranks Ultimate. Никто не смог помочь.
Надеюсь, что тут мне смогут помочь.
Заранее благодарю.
В этой теме было размещено решение! Перейти к решению.
Download all Attachments
-
7.9 KB Просмотры: 321
-
3.9 KB Просмотры: 296