не работает плагин yek_combosprite

Сообщения
165
Реакции
-8
Ошибка
в логах нет
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5263 (http://www.amxmodx.org)
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.695-dev
Build date: 15:54:29 Apr 6 2020 (2186)
Build from: https://github.com/dreamstalker/rehlds/commit/7513e71
ReGamedll
ReGameDL version: 5.16.0.460-dev
Build date: 10:11:49 May 2 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/4f72525
Версия 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] AMX Mod X RUN- amxmodx_mm_i386.so v1.9.0.5263ini Start ANY
[ 2] Reunion RUN- reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 3] ReSemiclip RUN- resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 4] WHBlocker RUN- whblocker_mm_i386.sov1.5.697ini Chlvl ANY
[ 5] VoiceTranscoder RUN- VoiceTranscoder.so v2017RC5ini ANYANY
[ 6] Ham Sandwich RUN- hamsandwich_amxx_i386.so v1.9.0.5263pl1 ANYANY
[ 7] FakeMetaRUN- fakemeta_amxx_i386.so v1.9.0.5263pl1 ANYANY
[ 8] CStrike RUN- cstrike_amxx_i386.sov1.9.0.5263pl1 ANYANY
[ 9] CSX RUN- csx_amxx_i386.so v1.9.0.5263pl1 ANYANY
[10] ReAPIRUN- reapi_amxx_i386.so v5.13.0.194-dev pl1 ANYNever
[11] Engine RUN- engine_amxx_i386.so v1.9.0.5263pl1 ANYANY
[12] Fun RUN- fun_amxx_i386.so v1.9.0.5263pl1 ANYANY
Список плагинов
1] UCP Server 8.5Endi ucp.amxxrunning
[ 2] Admin Base 1.8.1.3746 AMXX Dev Team admin.amxx running
[ 3] Admin Commands 1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 4] Slots Reservation 1.9.0.5263 AMXX Dev Team adminslots.amxx running
[ 5] AMXMODMENU STRIKE TEA SCHOCKKTOLOGY.DE menufront.amxxrunning
[ 6] amx_kickmenu reasons a 0.3a BetaFlash kickmenu_reason running
[ 7] Players Menu1.9.0.5263 AMXX Dev Team plmenu.amxxrunning
[ 8] Maps Menu1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 9] Map Manager 2.5.61Mistrick mapmanager.amxx running
[ 10] Admin Chat 1.9.0.5263 AMXX Dev Team adminchat.amxxrunning
[ 11] Anti Flood 1.9.0.5263 AMXX Dev Team antiflood.amxxrunning
[ 12] Admin Votes 1.9.0.5263 AMXX Dev Team adminvote.amxxrunning
[ 13] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 14] StatsX (MastaMan Editi 1.9.0.5263 AMXX Dev Team &statsx_shell.am debug
[ 15] Restrict Weapons 1.9.0.5263 AMXX Dev Team restmenu.amxx running
[ 16] High Ping Kicker (Stea 0.16.2OLO/shadow ping_kicker.amx running
[ 17] AFK Kicker 1.0b Cheesy Peteza afk_kicker.amxx running
[ 18] UCP Menu 2.1STEVE ucp_menu.amxx running
[ 19] [ReAPI] AdminFreeLook1.0ReHLDS Team adminfreelook.a running
[ 20] Advanced Gag1.4.3[VTCneygomon amx_gag.amxx running
[ 21] Admin Prefixes 4.1m0skVi4a ;] AdminPrefixes.a running
[ 22] Yekta's Combo Sprite 3.2Yek'-ta combosprite.amx running
[ 23] True dmg stats 1.0by4udilo TopTrueDmg.amxx running
[ 24] Killer Bonus0.1def4u1t Round_Kill_Bonu running
[ 25] HEADSHOT EFFECTSTRIKE.UZSCHOCKKTOLOGY.DE Headshot_Effect running
[ 26] C4 Timer 0.1Lightman bombtimer.amxxrunning
[ 27] Descriptive 'Fire in t 0.1VENdescriptive_fir running
[ 28] Nice Killer 1.6Got Milk? / HoHo nice_killer.amx running
[ 29] IDEA VIP by Ba/lePa & 3.2.6 Ba/lePa | Remake IDEAL_VIP.amxxrunning
[ 30] Reset Score 0.2SCHOCKKTOLOGY.DE Resetscore.amxx running
[ 31] Night VIPs Private Racoonnight_vips.amxx running
[ 32] AD Manager 1.0Nesquik ad_manager.amxx running
[ 33] Parachute Lite [ReAPI] 11.0 Leo_[BH] parachute.amxxrunning
[ 34] Admin, Vip and Lady mo 0.3b Freedo.m +mod.Le Strike_Skins.am running
[ 35] Weapon Kill 1.2Slove. & AcEKnife_Sound.amx running
[ 36] xREDIRECT1.0.3.3 x0Rxredirect.amxxrunning
[ 37] Advanced Kill Assists1.3a Xelsonkill_assist.amx running
[ 38] GameName Wins 0.7.1 w0wgamename.amxx running
[ 39] Anti reconnect 3.0JohnJ antireconnect.a running
[ 40] [ReAPI] No Team Flash0.0.3 Vaqtinchano_team_flash.a running
Автор плагина
Yek'-ta
Версия плагина
3.2
Исходный код
/*

https://forum.csduragi.com/eklentiler-pluginler/yektas-combo-sprite-t35501.html
https://dev-cs.ru/resources/720/
https://github.com/yek-ta/AMXX-PLUGINS/tree/master/Yekta's%20Combo%20Sprite

*/

#include <amxmodx>
#include <reapi>

#define PLUGIN "Yekta's Combo Sprite"
#define VERSION "3.2"
#define AUTHOR "Yek'-ta"

#define SHOWTIME 1.5 //it should be float

#define HUD_HIDE_FLASH (1<<1)
#define HUD_HIDE_CROSS (1<<6)
#define HUD_DRAW_CROSS (1<<7)

#define CSW_SHIELD 2
new isitON[33]
new kills[33]
new bool: PlayerOnOff[MAX_PLAYERS]

enum _:MESSAGES {
g_iMsg_WeaponList,
g_iMsg_ScreenFade,
g_iMsg_CurWeapon,
g_iMsg_SetFOV,
g_iMsg_HideWeapon,
g_iMsg_Crosshair
}
new g_Messages[MESSAGES];
new g_Messages_Name[MESSAGES][] = {
"WeaponList",
"ScreenFade",
"CurWeapon",
"SetFOV",
"HideWeapon",
"Crosshair"
}

public plugin_init(){

register_plugin(PLUGIN, VERSION, AUTHOR)
for(new i; i < sizeof g_Messages; i++){
g_Messages[i] = get_user_msgid(g_Messages_Name[i]);
}
RegisterHookChain(RG_CBasePlayer_Spawn, "CBasePlayer_Spawn",true);
RegisterHookChain(RG_CBasePlayer_Killed, "CBasePlayer_Killed", true);
register_event("CurWeapon","comboHudGoster","be", "1=1")
register_clcmd("say /combosprite", "comboonoff");
}
public comboonoff(id){
PlayerOnOff[id] = !PlayerOnOff[id]
client_print_color(id, id, "^1Combo Sprite is ^3%s", PlayerOnOff[id] ? "ON" : "OFF")
}
public plugin_precache(){
precache_model("sprites/yek_combo/alarm_kill.spr")
precache_model("sprites/yek_combo/alarm_2kill.spr")
precache_model("sprites/yek_combo/alarm_3kill.spr")
precache_model("sprites/yek_combo/alarm_4kill.spr")
precache_model("sprites/yek_combo/alarm_5kill.spr")
precache_model("sprites/yek_combo/alarm_6kill.spr")
precache_model("sprites/yek_combo/alarm_7kill.spr")
precache_model("sprites/yek_combo/alarm_8kill.spr")
precache_model("sprites/yek_combo/alarm_knife.spr")
precache_model("sprites/yek_combo/alarm_combo.spr")
precache_model("sprites/yek_combo/alarm_grenade.spr")
precache_model("sprites/yek_combo/alarm_headshot.spr")
precache_generic("sprites/yek_combo/alarm_kill.txt")
precache_generic("sprites/yek_combo/alarm_2kill.txt")
precache_generic("sprites/yek_combo/alarm_3kill.txt")
precache_generic("sprites/yek_combo/alarm_4kill.txt")
precache_generic("sprites/yek_combo/alarm_5kill.txt")
precache_generic("sprites/yek_combo/alarm_6kill.txt")
precache_generic("sprites/yek_combo/alarm_7kill.txt")
precache_generic("sprites/yek_combo/alarm_8kill.txt")
precache_generic("sprites/yek_combo/alarm_knife.txt")
precache_generic("sprites/yek_combo/alarm_combo.txt")
precache_generic("sprites/yek_combo/alarm_grenade.txt")
precache_generic("sprites/yek_combo/alarm_headshot.txt")
}
public client_putinserver(id){
PlayerOnOff[id] = true;
kills[id] = 0;
}
public CBasePlayer_Killed(iVictim, iKiller)
{
if(!is_user_connected(iKiller) || iVictim == iKiller)
return HC_CONTINUE;

kills[iVictim] = 0
kills[iKiller] += 1;

if(!PlayerOnOff[iKiller])
return HC_CONTINUE;

remove_task(1997+iKiller);

if(get_member(iVictim, m_bHeadshotKilled))
isitON[iKiller] = -1;
else if(get_member(iVictim, m_bKilledByGrenade))
isitON[iKiller] = -2;
else if(get_user_weapon(iKiller) == CSW_KNIFE)
isitON[iKiller] = -3;
else
isitON[iKiller] = kills[iKiller];

comboHudGoster(iKiller)
set_task(SHOWTIME,"RemoveHUD",1997+iKiller);

return HC_CONTINUE;
}
public RemoveHUD(numara){
numara = numara-1997
if(get_member(numara, m_iFOV) == 90){
isitON[numara] = 0;
Hide_NormalCrosshair(numara, 0);
show_crosshair(numara, 0)
}
else {
set_task(1.0,"RemoveHUD",1997+numara);
}
}
public CBasePlayer_Spawn(oyuncu){
kills[oyuncu] = 0;
}
public comboHudGoster(id){
if(isitON[id] == 0){
return PLUGIN_HANDLED
}
else if(get_member(id, m_iFOV) != 90){
return PLUGIN_HANDLED
}
static userwpn, prim, sprtxt[52]
userwpn = get_user_weapon(id, prim)

switch (isitON[id])
{
case -3: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_knife"); }
case -2: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_grenade"); }
case -1: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_headshot"); }
case 1: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_kill"); }
case 2: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_2kill"); }
case 3: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_3kill"); }
case 4: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_4kill"); }
case 5: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_5kill"); }
case 6: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_6kill"); }
case 7: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_7kill"); }
case 8: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_8kill"); }
default: { formatex(sprtxt,charsmax(sprtxt),"yek_combo/alarm_combo"); }
}
switch (userwpn)
{
case CSW_P228: { Msg_WeaponList(id, sprtxt,9,52,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_HEGRENADE: { Msg_WeaponList(id, sprtxt,12,1,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_XM1014: { Msg_WeaponList(id, sprtxt,5,32,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_C4: { Msg_WeaponList(id, sprtxt,14,1,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_MAC10: { Msg_WeaponList(id, sprtxt,6,100,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_AUG: { Msg_WeaponList(id, sprtxt,4,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_SMOKEGRENADE: { Msg_WeaponList(id, sprtxt,13,1,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_ELITE: { Msg_WeaponList(id, sprtxt,10,120,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_FIVESEVEN: { Msg_WeaponList(id, sprtxt,7,100,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_UMP45: { Msg_WeaponList(id, sprtxt,6,100,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_GALIL: { Msg_WeaponList(id, sprtxt,4,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_FAMAS: { Msg_WeaponList(id, sprtxt,4,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_USP: { Msg_WeaponList(id, sprtxt,6,100,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_GLOCK18: { Msg_WeaponList(id, sprtxt,10,120,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_MP5NAVY: { Msg_WeaponList(id, sprtxt,10,120,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_M249: { Msg_WeaponList(id, sprtxt,3,200,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_M3: {Msg_WeaponList(id, sprtxt,5,32,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_M4A1: { Msg_WeaponList(id, sprtxt,4,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_TMP: { Msg_WeaponList(id, sprtxt,10,120,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_FLASHBANG: { Msg_WeaponList(id, sprtxt,11,2,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_DEAGLE: { Msg_WeaponList(id, sprtxt,8,35,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_SG552: { Msg_WeaponList(id, sprtxt,4,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_AK47: { Msg_WeaponList(id, sprtxt,2,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_KNIFE:{ Msg_WeaponList(id, sprtxt,-1,-1,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_P90: { Msg_WeaponList(id, sprtxt,7,100,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 0); }
case CSW_SCOUT: { Msg_WeaponList(id, sprtxt,2,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 1); }
case CSW_AWP: { Msg_WeaponList(id, sprtxt,1,30,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 1); }
case CSW_SG550: { Msg_WeaponList(id, sprtxt,4,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 1); }
case CSW_G3SG1: { Msg_WeaponList(id, sprtxt,2,90,-1,-1,0,11,CSW_SHIELD,0);Hide_NormalCrosshair(id, 1); }
}
Msg_SetFOV(id, 89);
Msg_CurWeapon(id, 1,CSW_SHIELD,prim);
Msg_SetFOV(id, 90);
return PLUGIN_CONTINUE
}
stock Hide_NormalCrosshair(id, flag){
if(flag == 1){
message_begin(MSG_ONE, g_Messages[g_iMsg_HideWeapon], _, id);
write_byte(HUD_HIDE_CROSS | HUD_HIDE_FLASH);
message_end();
}
else{
message_begin(MSG_ONE, g_Messages[g_iMsg_HideWeapon], _, id);
write_byte(HUD_DRAW_CROSS | HUD_HIDE_FLASH);
message_end();
}
}
stock show_crosshair(id, flag){
message_begin(MSG_ONE_UNRELIABLE, g_Messages[g_iMsg_Crosshair], _, id);
write_byte(flag);
message_end();
}
stock Msg_CurWeapon(id, IsActive,WeaponID,ClipAmmo){
message_begin(MSG_ONE,g_Messages[g_iMsg_CurWeapon], {0,0,0}, id);
write_byte(IsActive);
write_byte(WeaponID);
write_byte(ClipAmmo);

message_end();
}
stock Msg_WeaponList(id, const WeaponName[],PrimaryAmmoID,PrimaryAmmoMaxAmount,SecondaryAmmoID,
SecondaryAmmoMaxAmount,SlotID,NumberInSlot,WeaponID,Flags){
message_begin(MSG_ONE,g_Messages[g_iMsg_WeaponList], {0,0,0}, id);
write_string(WeaponName);
write_byte(PrimaryAmmoID);
write_byte(PrimaryAmmoMaxAmount);
write_byte(SecondaryAmmoID);
write_byte(SecondaryAmmoMaxAmount);
write_byte(SlotID);
write_byte(NumberInSlot);
write_byte(WeaponID);
write_byte(Flags);
message_end();
}

stock Msg_SetFOV(id, Degrees){
message_begin(MSG_ONE,g_Messages[g_iMsg_SetFOV], {0,0,0}, id);
write_byte(Degrees);
message_end();
}
не работает на сервере , при убийстве , даже чат команда say /combosprite
 

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

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