backweapons

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
16
Рейтинг
-1
Ошибка
Ошибки как таковой нет,компелирируется но не работает правильно
ОС
Linux
Amx Mod X
AMX Mod X 1.8.2
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 17:35:12 Jul 5 2017 (7559)
ReGamedll
1.6
Версия Metamod
Patch: Metamod-P (mm-p) v37
Список метамодулей
[ 1] SafeNameAndChat  RUN   -    SafeNameAndChat.  v1.1      ini   ANY   ANY  
[ 2] dproto_EF RUN - dproto_i386.so v0.9.391 ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[ 5] Semiclip RUN - semiclip_mm_i386 v2.2 ini ANY ANY
[ 6] Orpheu RUN - orpheu_amxx_i386 v2.4 pl3 ANY ANY
[ 7] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl3 ANY ANY
[ 8] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl3 ANY ANY
[ 9] Engine RUN - engine_amxx_i386 v1.8.2 pl3 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl3 ANY ANY
[11] MySQL RUN - mysql_amxx_i386. v1.8.2 pl3 ANY ANY
[12] CSX RUN - csx_amxx_i386.so v1.8.2 pl3 ANY ANY
[13] Fun RUN - fun_amxx_i386.so v1.8.2 pl3 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386. v5.1.0.1 pl3 ANY Never
Список плагинов
[  1] opengl detector         0.7.8e      kanagava          opengl32.amxx    running  
[ 2] AIM detector 0.7.4e kanagava aim_detector.am running
[ 3] Aliases checker 0.8.2 kanagava alias_detector0 running
[ 4] AMXBans: Core MA 1.6.9 Larte Team amxbans_core.am running
[ 5] AMXBans: Main MA 1.6.9 Larte Team amxbans_main.am running
[ 6] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running
[ 7] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 8] Admin Help 1.8.2 AMXX Dev Team adminhelp.amxx running
[ 9] Slots Reservation 1.8.2 AMXX Dev Team adminslots.amxx running
[ 10] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 11] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 12] Info. Messages 1.8.2 AMXX Dev Team imessage.amxx running
[ 13] Maps Menu 1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 14] Menus Front-End 1.8.2 AMXX Dev Team menufront.amxx running
[ 15] CS Misc. Stats 1.8.2 AMXX Dev Team miscstats.amxx running
[ 16] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 17] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 18] Players Menu 1.8.M AMXX Dev Team plmenu.amxx running
[ 19] Restrict Weapons 1.8.2 AMXX Dev Team restmenu.amxx running
[ 20] Scrolling Message 1.8.2 AMXX Dev Team scrollmsg.amxx running
[ 21] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 22] Teleport Menu 1.8.2 AMXX Dev Team telemenu.amxx running
[ 23] TimeLeft 1.8.2 AMXX Dev Team timeleft.amxx running
[ 24] Plugin Menu 1.8.2 AMXX Dev Team pluginmenu.amxx running
[ 25] High Ping Kicker 1.0 Shadow/Bo0m! amx_hpk.amxx running
[ 26] Admin ESP 1.5b_mini KoST admin_esp_mini. running
[ 27] Restart 2.0 Alka SayRestart.amxx running
[ 28] SpecList 1.2a FatalisDK speclist_rus.am running
[ 29] Admins Online 1.0 FloRys admins_online.a running
[ 30] MultiJump 1.1 twistedeuphoria multijump.amxx running
[ 31] Nextmap Chooser 1.8.2 AMXX Dev Team mapchooser.amxx running
[ 32] Damager 2.0/1 Prayer edited My damager.amxx running
[ 33] ResetScore 0.2.0 aNNakin resetscore.amxx running
[ 34] Block HudTextArgs 1.0 ConnorMcLeod hudTextArgsBloc running
[ 35] [MG] Sky 1.0 Nickron mg_sky.amxx running
[ 36] Ultimate Sound 1.5 Dizzy ultimate_sounds running
[ 37] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 38] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 39] Erotic Bomb 0.4 8dp & Spection erotic_bomb.amx running
[ 40] Parachute 1.1 Random1, 93()|29 sub_parachute.a running
[ 41] Descriptive 'Fire in t 0.1 VEN Descriptive_Fir running
[ 42] Steam Models 0.1b+mod.l Freedo.m steam_models.am running
[ 43] Knife WarnUP 1.0 ill knife_warm-up.a running
[ 44] StatsX (MastaMan Editi 1.8.1.3746 AMXX Dev Team statsx_shell.am running
[ 45] VOTEBAN_BY_SLIMSHADY 3.0 SLIMSHADY_MOD voteban_by_slim running
[ 46] [AMXX] ViP Gold 1.0 Flymic24 amxx_vip_gold.a running
[ 47] Green Fade 0.1 Stimul Green_Fade.amxx running
[ 48] Happy Hours 1.0 unknown night_vips.amxx running
[ 49] Moskva(18+) 2.3 Bor Lite_Rank_Syste running
[ 50] Map Manager RU 1.2.2 Mistrick map_manager.amx running
[ 51] Block Change Name 1.0 DJ_WEST block_change_na running
[ 52] Nade Health 1.2 medusa NadeHealth.amxx running
[ 53] [ReAPI] AWPoff 1.3 PAffAEJIkA :3 awp_off.amxx running
[ 54] Camera Changer 1.3 Bl0ck Camera_Changer. running
[ 55] Back Weapons 1.1 m2mix backweapons.amx running
[ 56] Weapon Model + Sound R 1.2 GHW_Chronic GHW_Weapon_Repl running
[ 57] AMX Admin Model 1.1.1 whitemike amx_adminmodel. running
[ 58] AMX Mute 1.1 Nomad mute.amxx running
[ 59] AMXBans: Screens Gm 1.6 Larte Team amxbans_ssban.a running
[ 60] Bad nick 1.1 pike bad_nick.amxx running
Список модулей
[ 1] Sockets                 1.8.2       HLSW Dev Team        running    
[ 2] Orpheu 2.4 joaquimandrade & Ar running
[ 3] Ham Sandwich 1.8.2 AMX Mod X Dev Team running
[ 4] CStrike 1.8.2 AMX Mod X Dev Team running
[ 5] Engine 1.8.2 AMX Mod X Dev Team running
[ 6] FakeMeta 1.8.2 AMX Mod X Dev Team running
[ 7] MySQL 1.8.2 AMX Mod X Dev Team running
[ 8] CSX 1.8.2 AMX Mod X Dev Team running
[ 9] Fun 1.8.2 AMX Mod X Dev Team running
[10] nVault 1.8.2 AMX Mod X Dev Team running
[11] ReAPI 5.1.0.112- Asmodai & s1lent running
Автор плагина
m2mix
Версия плагина
1.1
Исходник
#include <amxmodx>
#include <cstrike>
#include <engine>

new g_bwEnt[33]
new cvar_enable

static const PLUGIN_NAME[] = "Back Weapons"
static const PLUGIN_AUTHOR[] = "m2mix"
static const PLUGIN_VERSION[] = "1.1"

public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_cvar(PLUGIN_NAME, PLUGIN_VERSION, FCVAR_SPONLY|FCVAR_SERVER)
cvar_enable = register_cvar("amx_backweapons", "1")
}

public plugin_precache()
{
precache_model("models/bw/bw_ak47.mdl")
precache_model("models/bw/bw_aug.mdl")
precache_model("models/bw/bw_awp.mdl")
precache_model("models/bw/bw_famas.mdl")
precache_model("models/bw/bw_g3sg1.mdl")
precache_model("models/bw/bw_galil.mdl")
precache_model("models/bw/bw_m249.mdl")
precache_model("models/bw/bw_m3.mdl")
precache_model("models/bw/bw_m4a1.mdl")
precache_model("models/bw/bw_mp5navy.mdl")
precache_model("models/bw/bw_p90.mdl")
precache_model("models/bw/bw_scout.mdl")
precache_model("models/bw/bw_sg550.mdl")
precache_model("models/bw/bw_sg552.mdl")
precache_model("models/bw/bw_ump45.mdl")
precache_model("models/bw/bw_xm1014.mdl")
precache_model("models/bw/bw_aak47.mdl")
precache_model("models/bw/bw_aawp.mdl")
precache_model("models/bw/bw_m4aa1.mdl")
precache_model("models/pshell.mdl")
}

public client_connect(id)
{
if(g_bwEnt[id] > 0)
remove_entity(g_bwEnt[id])
g_bwEnt[id] = 0
}

public client_disconnect(id)
{
if(g_bwEnt[id] > 0)
remove_entity(g_bwEnt[id])
g_bwEnt[id] = 0
}

public client_PreThink(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE

if(!is_user_alive(id) && g_bwEnt[id] > 0)
{
remove_entity(g_bwEnt[id])
g_bwEnt[id] = 0

return PLUGIN_CONTINUE
}

if(!cs_get_user_hasprim(id) && g_bwEnt[id] > 0)
{
remove_entity(g_bwEnt[id])
g_bwEnt[id] = 0

return PLUGIN_CONTINUE
}

if(!get_pcvar_num(cvar_enable))
return PLUGIN_CONTINUE

if(!is_user_alive(id) || !cs_get_user_hasprim(id))
return PLUGIN_CONTINUE

if(g_bwEnt[id] < 1)
{
g_bwEnt[id] = create_entity("info_target")
if(g_bwEnt[id] > 0)
{
entity_set_int(g_bwEnt[id], EV_INT_movetype, MOVETYPE_FOLLOW)
entity_set_edict(g_bwEnt[id], EV_ENT_aiment, id)
}
}

if(g_bwEnt[id] < 1)
return PLUGIN_CONTINUE

new temp[2], curWeapon = get_user_weapon(id, temp[0], temp[1])
switch(curWeapon)
{
case CSW_KNIFE, CSW_C4,
CSW_GLOCK18, CSW_USP, CSW_P228, CSW_DEAGLE, CSW_ELITE, CSW_FIVESEVEN:
{
new modelName[33], weaponID = get_weapon_id(id)
get_model_name(weaponID, modelName, 32)

if(equal(modelName, "models/pshell.mdl"))
{
set_entity_visibility(g_bwEnt[id], 0)
return PLUGIN_CONTINUE
}

set_entity_visibility(g_bwEnt[id], 1)
entity_set_model(g_bwEnt[id], modelName)
}
default: set_entity_visibility(g_bwEnt[id], 0)
}
return PLUGIN_CONTINUE
}

stock get_weapon_id(id)
{
new weapStr[32], iNum, weaponID
get_user_weapons(id, weapStr, iNum)
for(new i = 0; i < iNum; i++)
{
switch(weapStr[i])
{
case CSW_AK47, CSW_AUG, CSW_AWP, CSW_FAMAS, CSW_G3SG1, CSW_GALIL, CSW_M249,CSW_M3,
CSW_M4A1, CSW_MP5NAVY, CSW_P90, CSW_SCOUT, CSW_SG550, CSW_SG552, CSW_UMP45, CSW_XM1014:
{
weaponID = weapStr[i]
break
}
default: weaponID = 0
}
}
return weaponID
}

stock get_model_name(weaponID, returnString[], returnLen)
{
new modelName
switch(weaponID)
{
case CSW_AK47: modelName = format(returnString, returnLen, "models/bw/bw_ak47.mdl" ,"models/bw/bw_aak47.mdl.mdl")
case CSW_AUG: modelName = format(returnString, returnLen, "models/bw/bw_aug.mdl")
case CSW_AWP: modelName = format(returnString, returnLen, "models/bw/bw_awp.mdl" ,"models/bw/bw_aawp.mdl.mdl")
case CSW_FAMAS: modelName = format(returnString, returnLen, "models/bw/bw_famas.mdl")
case CSW_G3SG1: modelName = format(returnString, returnLen, "models/bw/bw_g3sg1.mdl")
case CSW_GALIL: modelName = format(returnString, returnLen, "models/bw/bw_galil.mdl")
case CSW_M249: modelName = format(returnString, returnLen, "models/bw/bw_m249.mdl")
case CSW_M3: modelName = format(returnString, returnLen, "models/bw/bw_m3.mdl")
case CSW_M4A1: modelName = format(returnString, returnLen, "models/bw/bw_m4a1.mdl" ,"models/bw/bw_m4aa1.mdl")
case CSW_MP5NAVY: modelName = format(returnString, returnLen, "models/bw/bw_mp5navy.mdl")
case CSW_P90: modelName = format(returnString, returnLen, "models/bw/bw_p90.mdl")
case CSW_SCOUT: modelName = format(returnString, returnLen, "models/bw/bw_scout.mdl")
case CSW_SG550: modelName = format(returnString, returnLen, "models/bw/bw_sg550.mdl")
case CSW_SG552: modelName = format(returnString, returnLen, "models/bw/bw_sg552.mdl")
case CSW_UMP45: modelName = format(returnString, returnLen, "models/bw/bw_ump45.mdl")
case CSW_XM1014: modelName = format(returnString, returnLen, "models/bw/bw_xm1014.mdl")
default: modelName = format(returnString, returnLen, "models/pshell.mdl")
}
return modelName
}
/* Iplay.org.ua - Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Всем доброй ночи.В чём дело,почему он не отображает новые добавленные модели оружия?Что я опустил?Где не правильно код прописал?Пятый день пытаюсь его его воскресить но ни чего не выходит!BW модели перекомпелированы с нужными текстурами,координатами.Стандартные отображает а эти три не в какую!!!!!Выручайте парни вся надежда только на Вас!
 

Вложения

Статус
В этой теме нельзя размещать новые ответы.

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

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