Недопустимая тема / заголовок темы
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
- Ошибка
-
Вставлю фото
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5221 (http://www.amxmodx.org)
Compiled: Sep 20 2018 15:06:02
Built from: https://github.com/alliedmodders/amxmodx/commit/e059c1f
Build ID: 5221:e059c1f
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.664-dev
Build date: 10:46:45 Sep 19 2018 (1621)
Build from: https://github.com/dreamstalker/rehlds/commit/83f53fb
- ReGamedll
-
ReGameDLL version: 5.7.0.313-dev
Build date: 08:39:22 Sep 9 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/e924a26
- Версия 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] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5221 ini Start ANY
[ 3] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] WHBlocker RUN - whblocker_mm_i386.so v1.5.695 ini Chlvl ANY
[ 6] SoftBlocker RUN - softblocker_mm_i386.so v1.1g ini ANY Never
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] ReAPI RUN - reapi_amxx_i386.so v5.6.0.158-dev pl2 ANY Never
[10] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5221 pl2 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5221 pl2 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.9.0.5221 pl2 ANY ANY
[13] Engine RUN - engine_amxx_i386.so v1.9.0.5221 pl2 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5221 pl2 ANY ANY
[15] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5221 pl2 ANY ANY
[17] MySQL RUN - mysql_amxx_i386.so v1.9.0.5221 pl2 ANY ANY
- Список плагинов
-
[ 1] AMXBans Core 6.13 YamiKaitou amxbans_core.am running
[ 2] AMXBans Main 6.13 mod.l YamiKaitou amxbans_main.am debug
[ 3] Admin Commands 1.9.0.5221 AMXX Dev Team admincmd.amxx running
[ 4] Slots Reservation 1.2 pUzzlik admin_slots.amx running
[ 5] Menus Front-End 1.9.0.5221 AMXX Dev Team menufront.amxx running
[ 6] Commands Menu 1.9.0.5221 AMXX Dev Team cmdmenu.amxx running
[ 7] Players Menu 1.9.0.5221 AMXX Dev Team plmenu.amxx running
[ 8] Maps Menu 1.9.0.5221 AMXX Dev Team mapsmenu.amxx running
[ 9] Plugin Menu 1.9.0.5221 AMXX Dev Team pluginmenu.amxx running
[ 10] Admin Chat 1.9.0.5221 AMXX Dev Team adminchat.amxx running
[ 11] Lite Translit 2.8 neygomon lite_translit_c debug
[ 12] Anti Flood 1.9.0.5221 AMXX Dev Team antiflood.amxx running
[ 13] Admin Votes 1.9.0.5221 AMXX Dev Team adminvote.amxx running
[ 14] Pause Plugins 1.9.0.5221 AMXX Dev Team pausecfg.amxx running
[ 15] Stats Configuration 1.9.0.5221 AMXX Dev Team statscfg.amxx running
[ 16] Restrict Weapons 1.9.0.5221 AMXX Dev Team restmenu.amxx running
[ 17] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am running
[ 18] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx_cstr running
[ 19] [ReAPI] Top Awards 1.0 Dom1no_[KZ] Re_top_awards.a running
[ 20] StatsX 1.9.0.5221 AMXX Dev Team statsx.amxx running
[ 21] Announcer Killstreak 2.0 Jumper & mx?! killsound.amxx running
[ 22] [ReAPI] Admin Models 0.0.2 Vaqtincha reapi_adminvipm running
[ 23] Smoke: HealthNade 0.0.3 wopox1337 smkhlndvip.amxx running
[ 24] [ReAPI]No Team Flash 1.0 ReHLDS Team notmflashvip.am running
[ 25] molodejj_damager 1.1 sector damagervipz.amx debug
[ 26] [ReAPI] AimEspFix VIP 1.0 ? fix_vip_tab.amx running
[ 27] Masofke.eu Signed Scre 1.0 ThE_ChOSeN_OnE msfk_snapshot.a running
[ 28] Show Motd 0.1 unnamed motdpriv.amxx running
[ 29] [ReAPI] Best player of 0.6 F@nt0M best_player_of_ running
[ 30] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 31] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 32] Random Skies 1.1 tuty randomskies.amx running
[ 33] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 34] Knife warmup 0.1 Subb98 knife_warmup.am debug
[ 35] Auto Demo Recorder 2.2.1 F@nt0M demo_recorder.a running
[ 36] Radio Hudmsg Block 1.0 AcE radiohudmsgbloc running
[ 37] Adverts 1.0 pUzzlik adverts_message running
[ 38] Dead Messages 2.0 maFFyoZZyk dead.amxx debug
[ 39] Music Connect 1.1 Leo_[BH] music_connect.a running
[ 40] Real Damage [ReApi] 2.0 Leo_[BH] real_damage.amx running
[ 41] unknown unknown unknown ShowChangerName running
[ 42] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_off.amxx running
[ 43] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 44] Rat Bomb 1.0 Seroff mfsc4mdl.amxx running
[ 45] C4 Timer 0.1 Lightman bombtimer.amxx running
[ 46] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 47] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc running
[ 48] unknown unknown unknown mg_sound.amxx running
[ 49] AFK Bomb Transfer 0.4 VEN afkbombtransfer running
[ 50] Map Manager: Core 3.0.0 Mistrick map_manager_cor running
[ 51] Map Manager: Scheduler 0.1.0 Mistrick map_manager_sch running
[ 52] Map Manager: Rtv 0.0.4 Mistrick map_manager_rtv running
[ 53] Map Manager: Nominatio 0.0.8 Mistrick map_manager_nom running
[ 54] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 55] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 56] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 57] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 58] Map Manager: Advanced 0.0.4 Mistrick map_manager_adv running
[ 59] [ReVIP] System Core 2.5 free pUzzlik re_vip_core.amx running
[ 60] [ReVIP] Menu 2.5 free pUzzlik re_vip_menu.amx running
[ 61] [ReVIP] Connected Info 2.5 free pUzzlik re_vip_connect_ running
[ 62] [ReVIP] Tab Info 2.5 free pUzzlik re_vip_tab_info running
[ 63] [ReVIP] Add HP 2.5 free pUzzlik re_vip_hp_add.a running
[ 64] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx running
[ 65] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike running
- Автор плагина
- Huntai
- Версия плагина
- 0.2
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <ColorChat>
#define PLUGIN "Bestplayer"
#define AUTHOR "Huntai"
#define VERSION "0.2"
new g_iKills[32], g_iHS[32], g_iDmg[32]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage")
register_event("DeathMsg", "EventDeathMsg", "a")
register_logevent("RoundEnd", 2, "1=Round_End")
}
public client_disconnect(id)
{
g_iDmg[id] = 0;
g_iKills[id] = 0;
g_iHS[id] = 0;
}
public hamTakeDamage(victim, inflictor, attacker, Float:damage, DamageBits)
{
if( 1 <= attacker <= 32)
{
if(cs_get_user_team(victim) != cs_get_user_team(attacker))
g_iDmg[attacker] += floatround(damage)
else
g_iDmg[attacker] -= floatround(damage)
}
}
public EventDeathMsg()
{
new killer = read_data(1)
new victim = read_data(2)
new is_hs = read_data(3)
if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
{
g_iKills[killer]++;
if(is_hs)
g_iHS[killer]++;
}
else
g_iKills[killer]--;
}
public RoundEnd()
{
new iBestPlayer = get_best_player()
new szName[32]
get_user_name(iBestPlayer, szName, charsmax(szName))
ColorChat(0, GREEN, "^4[Сервер] ^1Лучший ^4игрок ^1этого раунда ^4[%s]", szName)
ColorChat(0, GREEN, "^4[Сервер] ^1Убил ^4[%i] ^1и с них ^4[%i] ^1в голову.", g_iKills[iBestPlayer], g_iHS[iBestPlayer])
for(new i; i < 31; i++)
{
g_iDmg[i] = 0;
g_iHS[i] = 0;
g_iKills[i] = 0;
}
}
get_best_player()
{
new players[32], num;
get_players(players, num);
SortCustom1D(players, num, "sort_bestplayer")
return players[0]
}
public sort_bestplayer(id1, id2)
{
if(g_iKills[id1] > g_iKills[id2])
return -1;
else if(g_iKills[id1] < g_iKills[id2])
return 1;
else
{
if(g_iDmg[id1] > g_iDmg[id2])
return -1;
else if(g_iDmg[id1] < g_iDmg[id2])
return 1;
else
return 0;
}
return 0;
}
Привет ребят как исправить :))? colorchat у меня есть но он видимо не подходит к этому плагину .)
В этой теме было размещено решение! Перейти к решению.
Вложения
-
57.9 KB Просмотры: 516