- Ошибка
-
Ошибок нет
- ОС
- Linux
- Amx Mod X
-
AMX MOD X 190
- Билд
-
HLDS 7882
- ReGamedll
-
5.26.0.668
- Версия Metamod
-
Metamod-r v1.3.0.131
- Список метамодулей
-
[ 1] ReAPI v5.24.0.300 Asmodai & s1lent running
[ 2] FakeMeta v1.9.0.5294 AMX Mod X Dev Team running
[ 3] MySQL v1.9.0.5294 AMX Mod X Dev Team running
[ 4] CStrike v1.9.0.5294 AMX Mod X Dev Team running
[ 5] CSX v1.9.0.5294 AMX Mod X Dev Team running
[ 6] Ham Sandwich v1.9.0.5294 AMX Mod X Dev Team running
[ 7] Engine v1.9.0.5294 AMX Mod X Dev Team running
[ 8] Fun v1.9.0.5294 AMX Mod X Dev Team running
- Список плагинов
-
[ 1] Admin Loader 3.5 neygomon admin_loader.am running
[ 2] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 3] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 4] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 5] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 6] Anti Flood 1.9.0.5235 AMXX Dev Team antiflood.amxx running
[ 7] Commands Menu 1.9.0.5235 AMXX Dev Team cmdmenu.amxx running
[ 8] Info. Messages 1.9.0.5235 AMXX Dev Team imessage.amxx running
[ 9] Nextmap Chooser 1.9.0.5235 AMXX Dev Team mapchooser.amxx running
[ 10] Maps Menu 1.9.0.5235 AMXX Dev Team mapsmenu.amxx running
[ 11] Menus Front-End 1.9.0.5235 AMXX Dev Team menufront.amxx running
[ 12] CS Misc. Stats 1.9.0.5283 AMXX Dev Team miscstats.amxx running
[ 13] NextMap 1.9.0.5235 AMXX Dev Team nextmap.amxx running
[ 14] Players Menu 1.9.0.5235 AMXX Dev Team plmenu.amxx running
[ 15] Plugin Menu 1.9.0.5241 AMXX Dev Team pluginmenu.amxx running
[ 16] Restrict Weapons 1.9.0.5235 AMXX Dev Team restmenu.amxx running
[ 17] Scrolling Message 1.9.0.5235 AMXX Dev Team scrollmsg.amxx running
[ 18] CS Stats Logging 1.9.0.5235 AMXX Dev Team stats_logging.a running
[ 19] TimeLeft 1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 20] BuyMenu 1.0 CyberSlavik BuyMenu.amxx running
[ 21] Sound Precacher 0.1 -=Xom9k=- sounds.amxx running
[ 22] AK47 Csgo 1.0 -=Xom9k=- shop_ak47csgo.a debug
[ 23] M4A4 CSGO 1.0 -=Xom9k=- shop_m4a4csgo.a running
[ 24] AWP CSGO 1.0 -=Xom9k=- shop_awpcsgo.am running
[ 25] Deagle CSGO 1.0 -=Xom9k=- shop_deaglecsgo running
[ 26] Glock18 CSGO 1.0 -=Xom9k=- shop_glock18csg running
[ 27] USP CSGO 1.0 -=Xom9k=- shop_uspcsgo.am running
[ 28] Spawnguns 1.0 -=Xom9k=- spawnguns.amxx running
[ 29] Knifes 1.0 -=Xom9k=- knifes.amxx running
[ 30] Bullet Whizz 1.4 Cheap_Suit Bullet_Whizz.am running
[ 31] Grenade Mode 1.0 -=xom9k=- grenade_mode.am running
- Автор плагина
- -=Xom9k=-
- Версия плагина
- 1.0
- Исходный код
-
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
// TT
#define TT_V "models/csgo/v1/knife/tt/v_Default.mdl" // v_
#define TT_P "models/csgo/v1/knife/tt/p_Default.mdl" // p_
// CT
#define CT_V "models/csgo/v1/knife/ct/v_Default.mdl" // v_
#define CT_P "models/csgo/v1/knife/ct/p_Default.mdl" // p_
new MsgIndexWeaponList;
new mExists;
public plugin_init(){
register_plugin("Knifes", "1.0", "-=Xom9k=-");
RegisterHam(Ham_Item_Deploy, "weapon_knife", "wDeployKnife", true);
RegisterHam( Ham_Item_AddToPlayer, "weapon_knife", "OnAddToPlayerKnife", .Post = true );
register_clcmd( "weapon_knifectcsgo", "ClientCommand_SelectFlare" );
register_clcmd( "weapon_knifettcsgo", "ClientCommand_SelectFlare" );
MsgIndexWeaponList = get_user_msgid( "WeaponList" );
}
public plugin_precache(){
if(file_exists(TT_V)){
mExists |= (1<<0);
precache_model(TT_V);
}
if(file_exists(TT_P)){
mExists |= (1<<1);
precache_model(TT_P);
}
if(file_exists(CT_V)){
mExists |= (1<<2);
precache_model(CT_V);
}
if(file_exists(CT_P)){
mExists |= (1<<3);
precache_model(CT_P);
}
precache_generic( "sprites/weapon_knifectcsgo.txt" );
precache_generic( "sprites/weapon_knifettcsgo.txt" );
precache_generic( "sprites/640csgo15.spr" );
precache_generic( "sprites/640csgo16.spr" );
precache_generic( "sprites/640csgo05.spr" );
precache_generic( "sprites/640csgo06.spr" );
}
public ClientCommand_SelectFlare( const client )
{
engclient_cmd( client, "weapon_knife" );
}
public OnAddToPlayerKnife( const item, const player )
{
if( pev_valid( item ) && is_user_alive( player ) && cs_get_user_team( player) == CS_TEAM_CT)
{
message_begin( MSG_ONE, MsgIndexWeaponList, .player = player );
{
write_string( "weapon_knifectcsgo" ); // WeaponName
write_byte( -1 ); // PrimaryAmmoID
write_byte( -1); // PrimaryAmmoMaxAmount
write_byte( -1 ); // SecondaryAmmoID
write_byte( -1 ); // SecondaryAmmoMaxAmount
write_byte( 2 ); // SlotID (0...N)
write_byte( 1 ); // NumberInSlot (1...N)
write_byte( CSW_KNIFE ); // WeaponID
write_byte( 0 ); // Flags
}
message_end();
} else {
message_begin( MSG_ONE, MsgIndexWeaponList, .player = player );
{
write_string( "weapon_knifettcsgo" ); // WeaponName
write_byte( -1 ); // PrimaryAmmoID
write_byte( -1); // PrimaryAmmoMaxAmount
write_byte( -1 ); // SecondaryAmmoID
write_byte( -1 ); // SecondaryAmmoMaxAmount
write_byte( 2 ); // SlotID (0...N)
write_byte( 1 ); // NumberInSlot (1...N)
write_byte( CSW_KNIFE ); // WeaponID
write_byte( 0 ); // Flags
}
message_end();
}
}
public wDeployKnife(ent){
static id; id = get_pdata_cbase(ent, 41, 4);
static team; team = get_user_team(id);
switch(team){
case 1:{
if(mExists & (1<<0)) set_pev(id, pev_viewmodel2, TT_V);
if(mExists & (1<<1)) set_pev(id, pev_weaponmodel2, TT_P);
}
case 2:{
if(mExists & (1<<2)) set_pev(id, pev_viewmodel2, CT_V);
if(mExists & (1<<3)) set_pev(id, pev_weaponmodel2, CT_P);
}
}
return HAM_IGNORED;
}
Здравствуйте. Такая проблема сделал спрайт ножей. За команду кт показывает как надо, но за команду тт почему то показывает ауг
.
https://dev-cs.ru/data/attachments/41/41975-ecd54538132b508de7f47af698211235.jpg
.
https://dev-cs.ru/data/attachments/41/41975-ecd54538132b508de7f47af698211235.jpg
В этой теме было размещено решение! Перейти к решению.
Download all Attachments
-
1.7 MB Просмотры: 56
Последнее редактирование: