Неверный раздел форума
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
- Ошибка
-
Ошибки нету компилиться без ошибок.
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5221
- Билд
-
ReHLDS version: 3.4.0.664-dev
- ReGamedll
-
ReGameDLL version: 5.7.0.313-dev
- Версия Metamod
-
Metamod-r v1.3.0.128, API
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5221 ini Start ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 5] Revoice RUN - revoice_mm_i386.so v0.1.0.32 ini Start Never
[ 6] MySQL RUN - mysql_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[ 7] ReAPI RUN - reapi_amxx_i386.so v5.6.0.158-dev pl1 ANY Never
[ 8] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl1 ANY Never
[ 9] Fun RUN - fun_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[10] Engine RUN - engine_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[13] CSX RUN - csx_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[14] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
- Список плагинов
-
[ 1] AMXBans Core 6.13 YamiKaitou amxbans_core.am ru nning
[ 2] AMXBans Main 6.13 YamiKaitou amxbans_main.am de bug
[ 3] Admin Commands 1.9.0.5221 AMXX Dev Team admincmd.amxx ru nning
[ 4] Admin Help 1.9.0.5221 AMXX Dev Team adminhelp.amxx ru nning
[ 5] Slots Reservation 1.2 pUzzlik admin_slots.amx ru nning
[ 6] Menus Front-End 1.9.0.5221 AMXX Dev Team menufront.amxx ru nning
[ 7] Commands Menu 1.9.0.5221 AMXX Dev Team cmdmenu.amxx ru nning
[ 8] Players Menu 1.9.0.5221 AMXX Dev Team plmenu.amxx ru nning
[ 9] Maps Menu 1.9.0.5221 AMXX Dev Team mapsmenu.amxx ru nning
[ 10] Plugin Menu 1.9.0.5221 AMXX Dev Team pluginmenu.amxx ru nning
[ 11] Admin Chat 1.9.0.5221 AMXX Dev Team adminchat.amxx ru nning
[ 12] Lite Translit 2.8 neygomon lite_translit_c de bug
[ 13] Anti Flood 1.9.0.5221 AMXX Dev Team antiflood.amxx ru nning
[ 14] Admin Votes 1.9.0.5221 AMXX Dev Team adminvote.amxx ru nning
[ 15] Pause Plugins 1.9.0.5221 AMXX Dev Team pausecfg.amxx ru nning
[ 16] Stats Configuration 1.9.0.5221 AMXX Dev Team statscfg.amxx ru nning
[ 17] Restrict Weapons 1.9.0.5221 AMXX Dev Team restmenu.amxx ru nning
[ 18] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am ru nning
[ 19] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx_cstr ru nning
[ 20] StatsX 1.9.0.5221 AMXX Dev Team statsx.amxx ru nning
[ 21] Top Awards 1.0 neygomon top_awards.amxx ru nning
[ 22] [ReAPI] Admin Models 0.0.2 Vaqtincha reapi_adminvipm ru nning
[ 23] Smoke: HealthNade 0.0.3 wopox1337 smkhlndvip.amxx ru nning
[ 24] [ReAPI]No Team Flash 1.0 ReHLDS Team notmflashvip.am ru nning
[ 25] molodejj_damager 1.1 sector damagervip.amxx ru nning
[ 26] [ReAPI] AimEspFix VIP 1.0 ? fix_vip_tab.amx ru nning
[ 27] Masofke.eu Signed Scre 1.0 ThE_ChOSeN_OnE msfk_snapshot.a ru nning
[ 28] Show Motd 0.1 unnamed motdpriv.amxx ru nning
[ 29] Map Manager 2.5.61 Mistrick mapmanager.amxx ru nning
[ 30] Map Manager: Sub Plugi 0.1 Mistrick mapmanager_subp ru nning
[ 31] AFK Control 1.4.1 [Rnd neygomon afk_control.amx ru nning
[ 32] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a ru nning
[ 33] Knife warmup 0.1 Subb98 knife_warmup.am de bug
[ 34] Auto Demo Recorder 2.2.1 F@nt0M demo_recorder.a ru nning
[ 35] Radio Hudmsg Block 1.0 AcE radiohudmsgbloc ru nning
[ 36] Adverts 1.0 pUzzlik adverts_message ru nning
[ 37] Dead Messages 2.0 maFFyoZZyk dead.amxx de bug
[ 38] Real Damage [ReApi] 2.0 Leo_[BH] real_damage.amx ru nning
[ 39] unknown unknown unknown ShowChangerName ru nning
[ 40] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_off.amxx st opped
[ 41] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a ru nning
[ 42] Rat Bomb 1.0 Seroff mfsc4mdl.amxx ru nning
[ 43] C4 Timer 0.1 Lightman bombtimer.amxx st opped
[ 44] resetscore(ReAPI) 1.0 Phantom resetscore.amxx ru nning
[ 45] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc ru nning
[ 46] unknown unknown unknown mg_sound.amxx ru nning
[ 47] AFK Bomb Transfer 0.4 VEN afkbombtransfer ru nning
[ 48] Best Player 0.2b Subb98 best_player.amx ru nning
[ 49] [ReVIP] System Core 2.5 free pUzzlik re_vip_core.amx ru nning
[ 50] [ReVIP] Menu 2.5 free pUzzlik re_vip_menu.amx ru nning
[ 51] [ReVIP] Connected Info 2.5 free pUzzlik re_vip_connect_ ru nning
[ 52] [ReVIP] Tab Info 2.5 free pUzzlik re_vip_tab_info ru nning
[ 53] [ReVIP] Add HP 2.5 free pUzzlik re_vip_hp_add.a st opped
[ 54] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx ru nning
[ 55] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike ru
- Автор плагина
- Safety1st
- Версия плагина
- 0.1
- Исходный код
-
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "Prize Knife"
#define VERSION "0.1"
#define AUTHOR "Safety1st"
/*---------------EDIT ME------------------*/
#define ACCESS_FLAG ADMIN_LEVEL_E // flag 't' by default
#define CUSTOM_DMG 2.0 // custom knife damage; fractional part of a number is mandatory
new const gszKnifeModelV[] = "models/v_knife.mdl" // 1st person view model
new const gszKnifeModelP[] = "models/p_knife.mdl" // 3rd person view model
/*----------------------------------------*/
new giszKnifeModelV, giszKnifeModelP
// macro; %1 - variable being modified, %2 - player id
#define CheckFlag(%1,%2) (%1 & (1 << (%2 & 31)))
#define SetFlag(%1,%2) (%1 |= (1 << (%2 & 31)))
#define ClearFlag(%1,%2) (%1 &= ~(1 << (%2 & 31)))
new gbCustomKnfDamage
#define IsPlayer(%0) ( 1 <= (%0) <= giMaxPlayers )
new giMaxPlayers
public plugin_init() {
register_plugin( PLUGIN, VERSION, AUTHOR )
RegisterHam( Ham_Item_Deploy, "weapon_knife" , "Fwd_ItemDeploy_Knife_Post", .Post = 1 )
RegisterHam( Ham_TakeDamage, "player", "Fwd_TakeDamage" )
giszKnifeModelV = engfunc( EngFunc_AllocString, gszKnifeModelV )
giszKnifeModelP = engfunc( EngFunc_AllocString, gszKnifeModelP )
giMaxPlayers = get_maxplayers()
}
public plugin_precache() {
precache_model( gszKnifeModelV )
precache_model( gszKnifeModelP )
}
public client_putinserver(id) {
get_user_flags(id) & ACCESS_FLAG ? SetFlag( gbCustomKnfDamage, id ) : ClearFlag( gbCustomKnfDamage, id )
}
public Fwd_ItemDeploy_Knife_Post( ent ) {
const XO_WEAPON = 4 // 'XO' means extraoffset
const m_pPlayer = 41
new iPlayer = get_pdata_cbase( ent, m_pPlayer, XO_WEAPON )
if( CheckFlag( gbCustomKnfDamage, iPlayer ) ) {
set_pev_string( iPlayer, pev_viewmodel2, giszKnifeModelV )
set_pev_string( iPlayer, pev_weaponmodel2, giszKnifeModelP )
}
}
public Fwd_TakeDamage( victim, inflictor, attacker, Float:damage, damagebits ) {
if( IsPlayer(attacker) && attacker == inflictor /* it is mandatory be4 checking current weapon (it could not be the same as one inflicting damage now) */
&& CheckFlag( gbCustomKnfDamage, attacker ) && get_user_weapon(attacker) == CSW_KNIFE ) {
SetHamParamFloat( 4, damage * CUSTOM_DMG )
return HAM_HANDLED
}
return HAM_IGNORED
}
Здравствуйте памогите пожалуйсто переделать с кнайфа на авп и чтобы ещё _W модель читало :))