Пользователь
- Сообщения
- 34
- Реакции
- 1
- Помог
- 1 раз(а)
- Ошибка
-
При убийстве врага из пушке, добавляет 2 очка в /top15
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5271
Compiled: Jun 24 2020 13:53:30
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.702-dev
Build date: 18:22:55 Nov 8 2020 (2402)
- ReGamedll
-
ReGameDLL version: 5.18.0.480-dev
Build date: 19:19:50 Nov 21 2020
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5271 ini Start ANY
[ 3] Revoice RUN - revoice_mm_i386.so v0.1.0.34 ini Start Never
[ 4] MySQL RUN - mysql_amxx_i386.so v1.9.0.5271 pl2 ANY ANY
[ 5] ReAPI RUN - reapi_amxx_i386.so v5.16.0.198-dev pl2 ANY Never
[ 6] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5271 pl2 ANY ANY
[ 7] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5271 pl2 ANY ANY
[ 8] ReCSDM RUN - csdm_amxx_i386.so v3.6 pl2 ANY ANY
[ 9] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5271 pl2 ANY ANY
9 plugins, 9 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 2] ReCSDM Main 3.6 ReCSDM Team csdm_main.amxx running
[ 3] ReCSDM Spawns 3.6 ReCSDM Team csdm_spawn_pres running
[ 4] ReCSDM Misc 3.6 ReCSDM Team csdm_misc.amxx running
[ 5] ReCSDM Stripper 3.6 KWo csdm_stripper.a running
[ 6] ReCSDM Protection 3.6 BAILOPAN csdm_protection running
[ 7] ReCSDM Item Mode 3.6 FALUCO & KWo & S csdm_itemmode.a running
[ 8] Map Manager: Core 3.0.7 Mistrick map_manager_cor running
[ 9] Map Manager: Scheduler 0.1.5 Mistrick map_manager_sch running
[ 10] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 11] Map Manager: Nominatio 0.1.2 Mistrick map_manager_nom running
[ 12] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 13] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 14] Map Manager: Effects 0.0.9 Mistrick map_manager_eff running
[ 15] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 16] Map Manager: Advanced 0.0.5 Mistrick map_manager_adv running
[ 17] Admin Base 1.9.0.5271 AMXX Dev Team admin.amxx running
[ 18] Admin Commands 1.9.0.5271 AMXX Dev Team admincmd.amxx running
[ 19] Admin Help 1.9.0.5271 AMXX Dev Team adminhelp.amxx running
[ 20] Slots Reservation 1.9.0.5271 AMXX Dev Team adminslots.amxx running
[ 21] Multi-Lingual System 1.9.0.5271 AMXX Dev Team multilingual.am running
[ 22] Menus Front-End 1.9.0.5271 AMXX Dev Team menufront.amxx running
[ 23] Commands Menu 1.9.0.5271 AMXX Dev Team cmdmenu.amxx running
[ 24] Players Menu 1.9.0.5271 AMXX Dev Team plmenu.amxx running
[ 25] Maps Menu 1.9.0.5271 AMXX Dev Team mapsmenu.amxx running
[ 26] Plugin Menu 1.9.0.5271 AMXX Dev Team pluginmenu.amxx running
[ 27] Admin Chat 1.9.0.5271 AMXX Dev Team adminchat.amxx running
[ 28] Anti Flood 1.9.0.5271 AMXX Dev Team antiflood.amxx running
[ 29] Admin Votes 1.9.0.5271 AMXX Dev Team adminvote.amxx running
[ 30] Pause Plugins 1.9.0.5271 AMXX Dev Team pausecfg.amxx running
[ 31] Stats Configuration 1.9.0.5271 AMXX Dev Team statscfg.amxx running
[ 32] StatsX 1.9.0.5271 AMXX Dev Team statsx.amxx running
[ 33] Sentry Guns 1.0.0 fl0wer h-sentryguns.am debug
[ 34] Team Switch 1.0 BaHeK h-teamjoin.amxx running
[ 35] Lite Rank System 1.5 AcE literank.amxx running
35 plugins, 35 running
- Автор плагина
- serfreeman1337
- Версия плагина
- CSStatsX SQL 0.7.4+2
- Исходный код
-
Код в комментах
Добрый вечер, пытались сделать так что убийство из пушки шли в статистику, вроде получилось, но почему-то за 1 фраг добавляет 2 очка, в чем может быть проблема?
Код:
public EventHook_Damage(player)
{
static damage_take;damage_take = read_data(2)
// thanks voed
static weapon_id,last_hit,attacker,bool:alive
attacker = get_user_attacker(player,weapon_id,last_hit)
alive = (is_user_alive(player) ? true : false)
//client_print(0, print_chat, "inflictor %d, attacker %d", get_entvar(player, var_dmg_inflictor), attacker);
if(!is_user_connected(attacker)) {
if(!alive) {
if (!is_nullent(attacker) && FClassnameIs(attacker, "ent_sentry_gun"))
{
#define var_sentry_builder var_euser2
new builder = get_entvar(attacker, var_sentry_builder);
if (is_user_connected(builder))
{
client_print(0, print_chat, "%f %n killed %n by sentry", get_gametime(), builder, player);
Stats_SaveKill(builder, player, 0, 0)
}
else
Stats_SaveKill(0, player, 0, 0)
}
else
Stats_SaveKill(0,player,0,0)
}
return PLUGIN_CONTINUE
}
if(0 <= last_hit < HIT_END)
{
Stats_SaveHit(attacker,player,damage_take,weapon_id,last_hit)
}
if(!alive) {
Stats_SaveKill(attacker,player,weapon_id,last_hit)
}
return PLUGIN_CONTINUE
}