Не работает плагин MarioCoins 2.1

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
210
Реакции
-20
Ошибка
Нет ошибок
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5281 (http://www.amxmodx.org)
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.10.0.761-dev-mpath
Build date: 10:50:46 Jul 26 2021 (2662)
Build from: https://github.com/dreamstalker/rehlds/commit/aaffe43
ReGamedll
ReGameDLL version: 5.21.0.534-dev
Build date: 18:28:48 Sep 02 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/9233f85
Версия 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] Reunion          RUN   -    reunion_mm_i386.so          v0.1.0.137       ini  Start Never
[ 2] VoiceTranscoder RUN - VoiceTranscoder.so v2020MA2 ini ANY ANY
[ 3] Rechecker RUN - rechecker.so v2.7 ini Chlvl ANY
[ 4] ProcessCmds RUN - processcmds_mm_i386.so v1.1.9 ini Start Never
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9+MA ini Chlvl ANY
[ 6] WHBlocker RUN - whblocker.so v1.5.697 ini Chlvl ANY
[ 7] SoftBlocker RUN - softblocker_mm_i386.so v1.1g ini ANY Never
[ 8] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5281 ini Start ANY
[ 9] Engine RUN - engine_amxx_i386.so v1.9.0.5281 pl8 ANY ANY
[10] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5281 pl8 ANY ANY
[11] MySQL RUN - mysql_amxx_i386.so v1.9.0.5281 pl8 ANY ANY
[12] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl8 ANY Never
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5281 pl8 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386.so v5.20.0.231-dev pl8 ANY Never
[15] CSX RUN - csx_amxx_i386.so v1.9.0.5281 pl8 ANY ANY
[16] SxGeo RUN - sxgeo_amxx_i386.so v2.2 pl8 ANY Never
[17] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5281 pl8 ANY ANY
[18] Fun RUN - fun_amxx_i386.so v1.9.0.5281 pl8 ANY ANY
Список плагинов
name                    version     author            file             status   
[ 1] Mario Coins 21.09.13 EvilCoder/tuty & mario_coins.amx running
[ 2] GameCMS_API 5.5.0 zhorzh78 gamecms.amxx running
[ 3] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 4] FreshBans 1.4.5b kanagava fresh_bans.amxx running
[ 5] Advanced Rechecker 0.4 F@nt0M rechecker.amxx running
[ 6] [190] Ultimate Weapons 21.08.23BE SKAJIbnEJIb ultimate_weapon running
[ 7] [190] Ultimate Flags 20.06.06 SKAJIbnEJIb ultimate_flags. running
[ 8] Players Menu 1.7 neugomon players_menu.am running
[ 9] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 10] Rock to Ban 1.02 Safety1st rock2ban.amxx running
[ 11] [190] Ultimate Informe 21.03.23 SKAJIbnEJIb ultimate_inform running
[ 12] [190] VIP RBS 21.08.23BE SKAJIbnEJIb vip_rbs.amxx running
[ 13] [190] Army Ranks Ultim 20.06.06 SKAJIbnEJIb army_ranks_ulti running
[ 14] [190] Ultimate Models 21.08.23BE SKAJIbnEJIb ultimate_models running
[ 15] Menus Front-End 20.06.06 SKAJIbnEJIb & AM amxmodmenu_rbs. running
[ 16] [190] DemoRecorder RBS 20.06.06 SKAJIbnEJIb demorecorder_rb running
[ 17] [190] BackWeapons RBS 20.06.06 SKAJIbnEJIb & ho backweapons_rbs running
[ 18] [190] BonusMenu RBS 21.08.23BE SKAJIbnEJIb bonusmenu_rbs.a running
[ 19] [190] AR Pogony 20.06.06 SKAJIbnEJIb ar_pogony.amxx running
[ 20] [190] MapChooser RBS 20.08.02 SKAJIbnEJIb & UF mapchooser_rbs. running
[ 21] [190] Damager RBS 20.06.06 SKAJIbnEJIb damager_rbs.amx running
[ 22] [190] High Ping Kicker 20.06.06 SKAJIbnEJIb hpk_rbs.amxx running
[ 23] [190] ESP RBS 20.06.06 SKAJIbnEJIb & Ko esp_rbs.amxx running
[ 24] [190] Parachute RBS 20.08.22BE SKAJIbnEJIb & KR parachute_rbs.a running
[ 25] [190] CmdMenu RBS 20.06.06 SKAJIbnEJIb & AM cmdmenu_rbs.amx running
[ 26] [190] Kill Assist RBS 20.06.06 SKAJIbnEJIb & Di killassist_rbs. running
[ 27] [190] AfkKicker RBS 21.08.22BE SKAJIbnEJIb afkkicker_rbs.a running
[ 28] [190] Top Award RBS 20.06.06 SKAJIbnEJIb topaward_rbs.am running
[ 29] [190] Jobs RBS 21.08.23BE SKAJIbnEJIb jobs_rbs.amxx running
[ 30] [190] Chat RBS 20.10.24BE SKAJIbnEJIb chat_rbs.amxx running
[ 31] [190] AR Bets 20.06.06 SKAJIbnEJIb ar_bets.amxx running
[ 32] [190] CsStats MySQL 21.08.22BE SKAJIbnEJIb csstats_mysql.a running
[ 33] [190] Stats Configurat 20.06.06 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 34] [190] StatsX RBS 21.03.23 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 35] Maps Menu 1.9.0.5281 AMXX Dev Team mapsmenu.amxx running
[ 36] Restrict Weapons 1.9.0.5281 AMXX Dev Team restmenu.amxx running
[ 37] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 38] [ReAPI] No Team Flash 0.0.3 Vaqtincha no_team_flash_l running
[ 39] Autoresponder/Advertis 0.5 MaximusBrood reklama_in_chat running
[ 40] SpecList 1.5 FatalisDK+Seroff speclist.amxx running
[ 41] Reset Score 0.0.2f wopox1337 resetScore.amxx running
[ 42] GameCMS_Registration 1.5 zhorzh78 gamecms_registr running
[ 43] Radio Block 1.0 Mmonster radio.amxx running
[ 44] AWP Restrictions 1.5.1 Radius awp_restriction running
[ 45] [ReAPI] Healthnade 0.0.2 F@nt0M healthnade.amxx running
[ 46] Mode 2x2 2.5re s1lent mode.amxx running
[ 47] [SxGeo] Connect Info 1.0 s1lent sxgeo_connect_i running
[ 48] Style C4 Timer 3.1 OciXCrom crx_c4timer.amx running
[ 49] MOTD Model 1.1.0 fl0wer motd_model.amxx running
[ 50] Recoil Control 1.5 OT recoil_control_ running
[ 51] TimeLeft 1.9.0.5281 AMXX Dev Team timeleft.amxx running
[ 52] NextMap 1.9.0.5281 AMXX Dev Team nextmap.amxx running
[ 53] Injector X 1.0 Deadly|Darkness dd_injectorX.am running
[ 54] Master Servers Check 4.8 Javekson ms_check.amxx running
[ 55] Weapon Model + Sound R 1.2 GHW_Chronic ghw.amxx running
[ 56] Simple Grenade Trail 1.0 seroff granade_trail.a running
[ 57] Block Change Name 1.0 DJ_WEST block_change_na running
[ 58] [ReAPI] Ghost after de 0.0.2 steelzzz ghost.amxx running
[ 59] Revive Players 1.0.0 Emma Jule revive_teammate debug
[ 60] CHAT MODEL 3.0 MayroN & Sanya@ chat_model.amxx running
[ 61] Custom Smoke 1.07 bionext custom_smoke.am running
[ 62] ScreenMaker 1.1 neygomon screenmaker.amx running
[ 63] [ReAPI] AimEspFix VIP 1.0 ? fix_vip_tab.amx running
Автор плагина
EvilCoder/tuty
Версия плагина
2.1
Исходный код
#include <amxmodx>
#include <engine>
#include <hamsandwich>
#include "include/army_ranks_ultimate.inc"
#include "include/bonusmenu_rbs.inc"

#define Mplayers 32 + 1

//new bCountTokenCoins[Mplayers];

new gCvarPluginEnable;
new gCvarPluginCoinsType;
//new gCvarPluginMaxCoinsForLife;
new gCvarPluginCoinsPerBody;
//new gCvarPluginCoinsForDefuse;
//new gCvarPluginCoinsForExplode;
//new gHudSyncronizer;

new const gCoinModel[] = "models/mario_coin.mdl";
new const gCoinGained[] = "MarioCoins/coingained.wav";
new const gLifeGained[] = "MarioCoins/lifegained.wav";
new const gRespawned[] = "MarioCoins/respawned.wav";

new bool:g_ArmyEnable=true, bool:g_BonusMenuEnable=true;

public plugin_init()
{
register_plugin("Mario Coins","21.09.13","EvilCoder/tuty & SKAJIbnEJIb");
register_dictionary("MarioCoins.txt");
gCvarPluginEnable = register_cvar("mc_enable","1");
if(get_pcvar_num(gCvarPluginEnable) != 1)
{
set_pcvar_num(gCvarPluginEnable,0);
return;
}

register_event("TextMsg","EVENT_TextMsg","a","2&#Game_C","2&#Game_w","2&#Game_will_restart_in");
register_logevent("LOG_RoundEnd",2,"1=Round_End");
register_touch("MarioCoin$","player","TouchCoin");

RegisterHam(Ham_Killed,"player","bacon_PlayerKilled",1);
//RegisterHam(Ham_Player_PreThink,"player","bacon_PlayerPreThink");

gCvarPluginCoinsType = register_cvar("mc_coinstype","0");
if(get_pcvar_num(gCvarPluginCoinsType) != 1)
{
set_pcvar_num(gCvarPluginCoinsType,0);
}
gCvarPluginCoinsPerBody = register_cvar("mc_bodycoin","2");
//gCvarPluginMaxCoinsForLife = register_cvar("mc_maxcoins","10");
//gCvarPluginCoinsForDefuse = register_cvar("mc_defusecoins","2");
//gCvarPluginCoinsForExplode = register_cvar("mc_explodecoins","2");

//gHudSyncronizer = CreateHudSyncObj();
}

public plugin_precache()
{
precache_model(gCoinModel);
precache_sound(gCoinGained);
precache_sound(gLifeGained);
precache_sound(gRespawned);
}

/*public client_connect(iVictim)
{
bCountTokenCoins[iVictim] = 0;
}*/

public EVENT_TextMsg()
{
remove_entity_name("MarioCoin$");
}

public LOG_RoundEnd()
{
remove_entity_name("MarioCoin$");
}

/*public bomb_defused(defuser)
{
if(get_pcvar_num(gCvarPluginCoinsForDefuse) == 0)
{
return PLUGIN_CONTINUE;
}

bCountTokenCoins[defuser] += get_pcvar_num(gCvarPluginCoinsForDefuse);

new iMaxCoins = get_pcvar_num(gCvarPluginMaxCoinsForLife);

if(bCountTokenCoins[defuser] >= iMaxCoins)
{
emit_sound(defuser,CHAN_ITEM,gLifeGained,VOL_NORM,ATTN_NORM,0,PITCH_NORM);
bCountTokenCoins[defuser] = iMaxCoins;
return PLUGIN_CONTINUE;
}

emit_sound(defuser,CHAN_ITEM,gCoinGained,VOL_NORM,ATTN_NORM,0,PITCH_NORM);

remove_entity_name("MarioCoin$");

return PLUGIN_CONTINUE;
}*/

/*public bomb_explode(planter)
{
if(get_pcvar_num(gCvarPluginCoinsForExplode) == 0)
{
return PLUGIN_CONTINUE;
}

bCountTokenCoins[planter] += get_pcvar_num(gCvarPluginCoinsForExplode);

new iMaxCoins = get_pcvar_num(gCvarPluginMaxCoinsForLife);

if(bCountTokenCoins[planter] >= iMaxCoins)
{
emit_sound(planter,CHAN_ITEM,gLifeGained,VOL_NORM,ATTN_NORM,0,PITCH_NORM);
bCountTokenCoins[planter] = iMaxCoins;
return PLUGIN_CONTINUE;
}

emit_sound(planter,CHAN_ITEM,gCoinGained,VOL_NORM,ATTN_NORM,0,PITCH_NORM);

remove_entity_name("MarioCoin$");

return PLUGIN_CONTINUE;
}*/

public bacon_PlayerKilled()
{
new iKiller = read_data(1);
new iVictim = read_data(2);
if(iKiller == iVictim || get_user_team(iKiller) == get_user_team(iVictim)) { return; }

/*if(bCountTokenCoins[iVictim] >= get_pcvar_num(gCvarPluginMaxCoinsForLife))
{
if(!is_user_alive(iVictim))
{
set_task(0.1,"RegMenu",iVictim);
}
}*/

new Float:flPlayerOrigin[3]; entity_get_vector(iVictim,EV_VEC_origin,flPlayerOrigin);
flPlayerOrigin[2] -= 36;
new packedOrigin[3]; FVecIVec(flPlayerOrigin,packedOrigin);
set_task(0.1,"spawnCoins",4142,packedOrigin,3,"a",get_pcvar_num(gCvarPluginCoinsPerBody));
}

/*public RegMenu(iVictim)
{
new regmenu[512 char];
formatex(regmenu,charsmax(regmenu),"%L",iVictim,"DO_YOU_WANT_RESPAWN");
new menu = menu_create(regmenu,"ShowMenu");

formatex(regmenu,charsmax(regmenu),"%L",iVictim,"YES_I_WANT");
menu_additem(menu,regmenu,"1",0);

formatex(regmenu,charsmax(regmenu),"%L",iVictim,"NO_I_DO_NOT");
menu_additem(menu,regmenu,"2",0);

menu_setprop(menu,MPROP_EXIT,MEXIT_NEVER,-1);

menu_display(iVictim,menu,0);

return PLUGIN_CONTINUE;
}*/

/*public ShowMenu(iVictim,menu,item)
{
new data[6],iName[64],access,callback;
menu_item_getinfo(menu,item,access,data,charsmax(data),iName,charsmax(iName),callback);

new key = str_to_num(data);

switch(key)
{
case 1:
{
set_task(0.1,"RespawnPlayerAndResetCoins",iVictim);
menu_destroy(menu);
}
case 2:
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}

return PLUGIN_HANDLED;
}*/

public spawnCoins(packedOrigin[3])
{
new Float:origin[3];
IVecFVec(packedOrigin,origin);
new iEntity = create_entity("info_target");

if(!is_valid_ent(iEntity))
{
return;
}

origin[2] += 65.0;
entity_set_origin(iEntity,origin);

new Float:velocity[3];
velocity[0] = (random_float(0.0,256.0) - 128.0);
velocity[1] = (random_float(0.0,256.0) - 128.0);
velocity[2] = (random_float(0.0,300.0) + 75.0);
entity_set_vector(iEntity,EV_VEC_velocity,velocity);

static modelName[64];
formatex(modelName,63,"models/MarioCoins/mario_coin.mdl");

entity_set_model(iEntity,modelName);
entity_set_string(iEntity,EV_SZ_classname,"MarioCoin$");
entity_set_int(iEntity,EV_INT_solid,SOLID_TRIGGER);
if(get_pcvar_num(gCvarPluginCoinsType) != 1)
{
entity_set_int(iEntity,EV_INT_movetype,MOVETYPE_TOSS);
}
else
{
entity_set_int(iEntity,EV_INT_movetype,MOVETYPE_BOUNCE);
}
drop_to_floor(iEntity);

set_rendering(iEntity,kRenderFxGlowShell,255,255,0,kRenderNormal,10);
}

public TouchCoin(iEntity,id)
{
if(is_valid_ent(iEntity))
{
/*new iMaxCoins = get_pcvar_num(gCvarPluginMaxCoinsForLife);

bCountTokenCoins[id]++;

if(bCountTokenCoins[id] >= iMaxCoins)
{
emit_sound(id,CHAN_ITEM,gLifeGained,VOL_NORM,ATTN_NORM,0,PITCH_NORM);
set_entity_flags(iEntity,FL_KILLME,1);
bCountTokenCoins[id] = iMaxCoins;
return PLUGIN_CONTINUE;
}*/



emit_sound(id,CHAN_ITEM,gCoinGained,VOL_NORM,ATTN_NORM,0,PITCH_NORM);
set_entity_flags(iEntity,FL_KILLME,1);

new value=1; // один поинт за одну монету
if (g_BonusMenuEnable) { bonusmenu_add_user_points(id, value); }
else if (g_ArmyEnable) { ar_add_user_anew(-1, id, value); }
//else { set_user_money() }
}

remove_entity(iEntity);

return PLUGIN_CONTINUE;
}

/*public bacon_PlayerPreThink(id)
{
if(is_user_alive(id) && !is_user_bot(id))
{
set_hudmessage(255,127,42,0.0,0.90,0,6.0);

new iMaxCoins = get_pcvar_num(gCvarPluginMaxCoinsForLife);
new szFormatHUDMessage[300];

if(bCountTokenCoins[id] == iMaxCoins)
{
formatex(szFormatHUDMessage,charsmax(szFormatHUDMessage),"%L",id,"CAN_RESPAWN");
}

else
{
formatex(szFormatHUDMessage,charsmax(szFormatHUDMessage),"%L: [%d/%d]",id,"COINS_COUNT",bCountTokenCoins[id],iMaxCoins);
}

ShowSyncHudMsg(id,gHudSyncronizer,szFormatHUDMessage);
}
}*/

/*public RespawnPlayerAndResetCoins(iVictim)
{
if(is_user_connected(iVictim) && !is_user_alive(iVictim) && get_user_team(iVictim) != 3)
{
ExecuteHamB(Ham_CS_RoundRespawn,iVictim);

emit_sound(iVictim,CHAN_ITEM,gRespawned,VOL_NORM,ATTN_NORM,0,PITCH_NORM);
bCountTokenCoins[iVictim] = 0;
}
}*/

// ================================================================================================
// Natives ========================================================================================
// ================================================================================================

public plugin_natives()
{
set_native_filter("native_filters");
}
public native_filters(const name[], id, trap)
{
if (!is_native(name, trap, g_ArmyEnable, "ar_")) return PLUGIN_HANDLED;
else if (!is_native(name, trap, g_BonusMenuEnable, "bonusmenu_")) return PLUGIN_HANDLED;
return PLUGIN_CONTINUE;
}

stock bool:is_native(const name[], const trap, &enable, const nat[])
{
if (equal(name, nat, strlen(nat)) && !trap) { enable = false; return false; }
return true;
}
Всем привет. В общем проблема такая что при убийстве противника не выпадают монеты с противника. Паша Скальпиль дорабатывал его чтоб считывались только бонусы аней и всё остальное убрал. Но проблема осталась не выпадают сами монеты. Кто сможет сделать.
 

Вложения

Сообщения
210
Реакции
-20
Отдал скальпелю он доделал. Сейчас всё работает норм.
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу