Участник
Пользователь
- Сообщения
- 81
- Реакции
- 24
- Ошибка
-
Ошибок нет Просто не работает на Amx Mod X 1.9.0
- ОС
- Linux
- Amx Mod X
-
Amx Mod X 1.9.0
- Билд
-
ReHLDS version: 3.7.0.696-dev
Build date: 18:46:47 May 18 2020 (2228)
Build from: https://github.com/dreamstalker/rehlds/commit/987ee51
- ReGamedll
-
ReGameDLL version: 5.16.0.461-dev
Build date: 12:59:43 May 18 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/c6875e5
- Версия 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
- Список метамодулей
-
description stat pend file vers src load unload
[ 1] VoiceTranscoder RUN - vtc.so v2017RC5 ini ANY ANY
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 3] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 4] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 7] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[10] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[12] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[14] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[16] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[17] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[18] VTC AMXX API RUN - VtcApi_amxx_i386.so v2017 RC2 pl2 ANY ANY
[19] ReAPI RUN - reapi_amxx_i386.so v5.13.0.194-dev pl2 ANY Never
[20] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
20 plugins, 20 running
- Список плагинов
-
name version author file status
[ 1] Admin Base 1.9.0.5263 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0.5263 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.9.0.5263 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0.5263 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0.5263 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5263 AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0.5263 AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0.5263 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0.5263 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.9.0.5263 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0.5263 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0.5263 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 21] StatsX 1.9.0.5263 AMXX Dev Team statsx.amxx running
[ 22] ComboSprites 0.5 Chrescoe1 combo_sprtes.am running
- Автор плагина
- Chrescoe1
- Версия плагина
- 0.5
- Исходный код
-
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "ComboSprites"
#define VERSION "0.5"
#define AUTHOR "Chrescoe1" //Thanks for sprites Thomas von Winkler
//Cvar's
const Float:ComboTime=5.0 //Time to combo ending
//Engine forward register
native register_think(const classname[],const func[])
//Resource
new const sprite_score[]="sprites/npc/combos1-19.spr"
new const sprite_bonus[]="sprites/npc/ef_zombiekill.spr"
new const sprite_classname[]="ef_combo"
new info_target
new sprindex_combo[33],sprindex_head[33],sprindex_knife[33],spriteindex_grenade[33],Float:LastKill[33],kill_count[33]
enum
{
Combo=0,
Head,
Knife,
Grenade
}
public plugin_precache()precache_model(sprite_score),precache_model(sprite_bonus)
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
info_target=engfunc(EngFunc_AllocString, "info_target")
register_think(sprite_classname,"delete")
register_message(get_user_msgid("DeathMsg"), "message_DeathMsg")
// Add your code here...
}
//Engine
public delete(ent)if(pev_valid(ent))engfunc(EngFunc_RemoveEntity, ent)
//Msg
public message_DeathMsg()
{
static Weapon_Msg[16], attacker, victim,head,bool:grenade
attacker=read_data(1)
victim=read_data(2)
head=read_data(3)
read_data(4,Weapon_Msg,charsmax(Weapon_Msg))
//client_print(0,print_chat,"%d %d %d %s",attacker,victim,head,Weapon_Msg) //my test message
//Killing with grenade?
contain(Weapon_Msg,"grenade")!=-1?(grenade=true):(grenade=false)
if(!is_user_connected(attacker))return
if(!is_user_connected(victim))return
static Float:Origin[3],Float:RGB[3],i
pev(victim,pev_origin,Origin);Origin[2]=Origin[2]+90.0
//Random color
for(i=0;i<3;i++)RGB[i]=random_float(0.0,255.0)
//Don't dark color!
if(RGB[0]<150.0&&RGB[1]<150.0&&RGB[2]<150.0)RGB[random_num(0,2)]=255.0
//Remove old sprites
static ent
ent=sprindex_head[attacker];if(ef_valid(ent,attacker))engfunc(EngFunc_RemoveEntity, ent)
ent=sprindex_knife[attacker];if(ef_valid(ent,attacker))engfunc(EngFunc_RemoveEntity, ent)
if(!grenade) //Don't remove old sprites after GrenadeKill
{
ent=sprindex_combo[attacker];if(ef_valid(ent,attacker))engfunc(EngFunc_RemoveEntity, ent)
ent=spriteindex_grenade[attacker];if(ef_valid(ent,attacker))engfunc(EngFunc_RemoveEntity, ent)
}
static Float:gametime;gametime=get_gametime()
if(LastKill[attacker]-gametime>0.0)kill_count[attacker]++;else kill_count[attacker]=1
LastKill[attacker]=gametime+ComboTime
//Combo Sprite
sprindex_combo[attacker]=ef_spr(Combo,Origin,kill_count[attacker]<20?(kill_count[attacker]-1.0):(19.0),RGB,attacker)
//Bonus Sprite
RGB[0]=255.0;RGB[1]=0.0;RGB[2]=0.0 //Red Color!
if (grenade)
Origin[2]=Origin[2]-30.0,
spriteindex_grenade[attacker]=ef_spr(Grenade,Origin,2.0,RGB,attacker)
else
{
if(head)
Origin[2]=Origin[2]-30.0,
sprindex_head[attacker]=ef_spr(Head,Origin,0.0,RGB,attacker)
if (contain(Weapon_Msg,"knife")!=-1)
Origin[2]=Origin[2]-30.0,
sprindex_knife[attacker]=ef_spr(Knife,Origin,1.0,RGB,attacker)
}
}
//Stock
stock ef_spr(type,Float:Origin[3],Float:frame,Float:Color[3],attacker)
{
new ient =
engfunc(EngFunc_CreateNamedEntity, info_target)
switch(type)
{
case Combo:engfunc(EngFunc_SetModel,ient, sprite_score)
case Head:engfunc(EngFunc_SetModel,ient, sprite_bonus)
case Knife:engfunc(EngFunc_SetModel,ient, sprite_bonus)
case Grenade:engfunc(EngFunc_SetModel,ient, sprite_bonus)
}
set_pev(ient, pev_classname, sprite_classname)
set_pev(ient, pev_movetype, MOVETYPE_NOCLIP)
set_pev(ient,pev_gravity,0.0001)
set_pev(ient,pev_solid,SOLID_TRIGGER)
set_pev(ient, pev_rendermode, kRenderTransAdd)
set_pev(ient, pev_renderamt, 250.0)
set_pev(ient, pev_nextthink,get_gametime()+ComboTime)
set_pev(ient,pev_origin,Origin)
set_pev(ient,pev_iuser1,attacker)
set_pev(ient,pev_rendercolor,Color)
set_pev(ient, pev_scale, 0.4)
set_pev(ient, pev_framerate, 0.0)
set_pev(ient, pev_frame,frame)
return ient
}
stock bool: ef_valid(ent,id)
{
if(!ent||!id)return false
if(!pev_valid(ent))return false
if(pev(ent,pev_iuser1)!=id)return false
static ClassName[30]
pev(ent, pev_classname, ClassName, charsmax(ClassName))
if (contain(ClassName, sprite_classname ) != -1)return true
return false
}
Пишет что плагин работает, но в игре спрайты не отображаются. Подскажите в чём может быть проблема?