ксо меню оружия (вылетает)

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
137
Реакции
9
Помог
3 раз(а)
Неверный раздел форума
Здравствуйте. ставлю плагин он работает открывает покупает оружие. но когда оружие в руке уже. начинаю стрелять и клиент игры зависает. сервер продолжает работать но клиент зависает и закрываеться. и так при любом оружии. и не знаю что может быть. проверял с 3 сборок установленых на компе так же. и у всех других так же. вот код
Код:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <xs>
#include <cstrike>
#include <Colorchat>

#pragma tabsize 0

new keys = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9|MENU_KEY_0

#define ENG_NULLENT            -1
#define EV_INT_WEAPONKEY    EV_INT_impulse

#define k1ase_WEAPONKEY        400
#define mp7a1_WEAPONKEY        401
#define cv47_WEAPONKEY        402
#define f2000_WEAPONKEY        403
#define xm8_WEAPONKEY        404
#define dualkriss_WEAPONKEY    405
#define watergun_WEAPONKEY    406
#define guitar_WEAPONKEY    407
#define scar_WEAPONKEY        408

#define MAX_PLAYERS          32
#define IsValidUser(%1) (1 <= %1 <= g_MaxPlayers)

const USE_STOPPED = 0
const OFFSET_ACTIVE_ITEM = 373
const OFFSET_WEAPONOWNER = 41
const OFFSET_LINUX = 5
const OFFSET_LINUX_WEAPONS = 4

#define WEAP_LINUX_XTRA_OFF        4
#define m_fKnown                    44
#define m_flNextPrimaryAttack         46
#define m_flTimeWeaponIdle            48
#define m_iClip                    51
#define m_fInReload                54
#define PLAYER_LINUX_XTRA_OFF    5
#define m_flNextAttack                83

#define k1ase_RELOAD_TIME     3.0
#define k1ase_RELOAD            1
#define k1ase_DRAW            2
#define k1ase_SHOOT1            3
#define k1ase_SHOOT2            4

#define mp7a1_RELOAD_TIME     3.6
#define mp7a1_RELOAD            1
#define mp7a1_DRAW            2
#define mp7a1_SHOOT1            3
#define mp7a1_SHOOT2            4

#define cv47_RELOAD_TIME    2.45
#define cv47_RELOAD        1
#define cv47_DRAW            2
#define cv47_SHOOT1        3
#define cv47_SHOOT2        4

#define f2000_RELOAD_TIME     3.3
#define f2000_RELOAD            1
#define f2000_DRAW            2
#define f2000_SHOOT1            3
#define f2000_SHOOT2            4

#define xm8_RELOAD_TIME  3.5
#define xm8_RELOAD        1
#define xm8_DRAW        2
#define xm8_SHOOT1        3
#define xm8_SHOOT2        4

#define dualkriss_RELOAD_TIME     3.2
#define dualkriss_RELOAD        1
#define dualkriss_DRAW        2
#define dualkriss_SHOOT1        3
#define dualkriss_SHOOT2        4
#define dualkriss_SHOOT3        5

#define watergun_RELOAD_TIME     3.5
#define watergun_RELOAD        1
#define watergun_DRAW        2
#define watergun_SHOOT1        3
#define watergun_SHOOT2        4

#define guitar_RELOAD_TIME     3.3
#define guitar_RELOAD            1
#define guitar_DRAW            2
#define guitar_SHOOT1            3
#define guitar_SHOOT2            4

#define scar_RELOAD_TIME     3.0
#define scar_RELOAD        1
#define scar_DRAW        2
#define scar_SHOOT1        3
#define scar_SHOOT2        4

new gmsgWeaponList, watergun_sprite

#define write_coord_f(%1)    engfunc(EngFunc_WriteCoord,%1)

new const Fire_Sounds[][] = { "weapons/k1ase-1.wav", "weapons/mp7-1.wav", "weapons/cv47-1.wav", "weapons/f2000-1.wav", "weapons/xm8_carbine.wav", "weapons/dualkriss-1.wav", "weapons/water-1.wav", "weapons/gt-1.wav", "weapons/scar-1.wav" }

new k1ase_V_MODEL[64] = "models/weapons/v_k1ase.mdl"
new k1ase_P_MODEL[64] = "models/weapons/p_k1ase.mdl"
new k1ase_W_MODEL[64] = "models/weapons/w_k1ase.mdl"

new mp7a1_V_MODEL[64] = "models/weapons/v_mp7a1.mdl"
new mp7a1_P_MODEL[64] = "models/weapons/p_mp7a1.mdl"
new mp7a1_W_MODEL[64] = "models/weapons/w_mp7a1.mdl"

new cv47_V_MODEL[64] = "models/weapons/v_cv47.mdl"
new cv47_P_MODEL[64] = "models/weapons/p_cv47.mdl"
new cv47_W_MODEL[64] = "models/weapons/w_cv47.mdl"

new f2000_V_MODEL[64] = "models/weapons/v_f2000.mdl"
new f2000_P_MODEL[64] = "models/weapons/p_f2000.mdl"
new f2000_W_MODEL[64] = "models/weapons/w_f2000.mdl"

new xm8_V_MODEL[64] = "models/weapons/v_xm8.mdl"
new xm8_P_MODEL[64] = "models/weapons/p_xm8.mdl"
new xm8_W_MODEL[64] = "models/weapons/w_xm8.mdl"

new dualkriss_V_MODEL[64] = "models/weapons/v_dualkriss.mdl"
new dualkriss_P_MODEL[64] = "models/weapons/p_dualkriss.mdl"
new dualkriss_W_MODEL[64] = "models/weapons/w_dualkriss.mdl"

new watergun_V_MODEL[64] = "models/weapons/v_watergun.mdl"
new watergun_P_MODEL[64] = "models/weapons/p_watergun.mdl"
new watergun_W_MODEL[64] = "models/weapons/w_watergun.mdl"

new guitar_V_MODEL[64] = "models/weapons/v_guitar.mdl"
new guitar_P_MODEL[64] = "models/weapons/p_guitar.mdl"
new guitar_W_MODEL[64] = "models/weapons/w_guitar.mdl"

new scar_V_MODEL[64] = "models/weapons/v_scar.mdl"
new scar_P_MODEL[64] = "models/weapons/p_scar.mdl"
new scar_W_MODEL[64] = "models/weapons/w_scar.mdl"

new const GUNSHOT_DECALS[] = { 41, 42, 43, 44, 45 }

new cvar_dmg_k1ase, cvar_recoil_k1ase, cvar_clip_k1ase, cvar_spd_k1ase, cvar_k1ase_ammo
new g_MaxPlayers, g_orig_event_k1ase, g_IsInPrimaryAttack
new Float:cl_pushangle[MAX_PLAYERS + 1][3], m_iBlood[2]
new g_has_k1ase[33], g_clip_ammo[33], g_k1ase_TmpClip[33], oldweap[33], g_hasZoom[33], Float:g_flNextUseTime[33], g_Reload[33]

new cvar_dmg_mp7a1, cvar_recoil_mp7a1, cvar_clip_mp7a1, cvar_spd_mp7a1, cvar_mp7a1_ammo, g_orig_event_mp7a1, g_mp7a1_TmpClip[33], g_has_mp7a1[33]
new cvar_dmg_cv47, cvar_recoil_cv47, cvar_recoil_cv47_zoom, cvar_clip_cv47, cvar_spd_cv47, cvar_cv47_ammo, g_orig_event_cv47, g_cv47_TmpClip[33], g_has_cv47[33]
new cvar_dmg_f2000, cvar_recoil_f2000, cvar_clip_f2000, cvar_spd_f2000, cvar_f2000_ammo, g_orig_event_f2000, g_f2000_TmpClip[33], g_has_f2000[33]
new cvar_dmg_xm8, cvar_recoil_xm8, cvar_clip_xm8, cvar_spd_xm8, cvar_xm8_ammo, g_orig_event_xm8, g_xm8_TmpClip[33], g_has_xm8[33]
new cvar_dmg_dualkriss, cvar_recoil_dualkriss, cvar_clip_dualkriss, cvar_spd_dualkriss, cvar_dualkriss_ammo, g_orig_event_dualkriss, g_dualkriss_TmpClip[33], g_has_dualkriss[33]
new cvar_dmg_watergun, cvar_recoil_watergun, cvar_clip_watergun, cvar_spd_watergun, cvar_watergun_ammo, g_orig_event_watergun, g_watergun_TmpClip[33], g_has_watergun[33]
new cvar_dmg_guitar, cvar_recoil_guitar, cvar_clip_guitar, cvar_spd_guitar, cvar_guitar_ammo, g_has_guitar[33]
new cvar_dmg_scar, cvar_recoil_scar, cvar_clip_scar, cvar_spd_scar, cvar_scar_ammo, g_has_scar[33]

const PRIMARY_WEAPONS_BIT_SUM =
(1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<
CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90)
new const WEAPONENTNAMES[][] = { "", "weapon_p228", "", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_c4", "weapon_mac10",
            "weapon_aug", "weapon_smokegrenade", "weapon_elite", "weapon_fiveseven", "weapon_ump45", "weapon_sg550",
            "weapon_galil", "weapon_famas", "weapon_usp", "weapon_glock18", "weapon_awp", "weapon_mp5navy", "weapon_m249",
            "weapon_m3", "weapon_m4a1", "weapon_tmp", "weapon_g3sg1", "weapon_flashbang", "weapon_deagle", "weapon_sg552",
            "weapon_ak47", "weapon_knife", "weapon_p90" }

public plugin_init()
{
    register_plugin("[ZP] Weapon: Smguns", "1.0", "LARS-DAY[BR]EAKER")
    register_message(get_user_msgid("DeathMsg"), "message_DeathMsg")
    register_event("CurWeapon","CurrentWeapon","be","1=1")
    RegisterHam(Ham_Item_AddToPlayer, "weapon_galil", "fw_k1ase_AddToPlayer")
    RegisterHam(Ham_Item_AddToPlayer, "weapon_mac10", "fw_mp7a1_AddToPlayer")
    RegisterHam(Ham_Item_AddToPlayer, "weapon_ak47", "fw_cv47_AddToPlayer")
    RegisterHam(Ham_Item_AddToPlayer, "weapon_sg552", "fw_f2000_AddToPlayer")
    RegisterHam(Ham_Item_AddToPlayer, "weapon_aug", "fw_xm8_AddToPlayer")
    RegisterHam(Ham_Item_AddToPlayer, "weapon_mp5navy", "fw_watergun_AddToPlayer")
    RegisterHam(Ham_Item_AddToPlayer, "weapon_ump45", "fw_dualkriss_AddToPlayer")   
    RegisterHam(Ham_Use, "func_tank", "fw_UseStationary_Post", 1)
    RegisterHam(Ham_Use, "func_tankmortar", "fw_UseStationary_Post", 1)
    RegisterHam(Ham_Use, "func_tankrocket", "fw_UseStationary_Post", 1)
    RegisterHam(Ham_Use, "func_tanklaser", "fw_UseStationary_Post", 1)
    for (new i = 1; i < sizeof WEAPONENTNAMES; i++)
    if (WEAPONENTNAMES[i][0]) RegisterHam(Ham_Item_Deploy, WEAPONENTNAMES[i], "fw_Item_Deploy_Post", 1)
    
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_galil", "fw_k1ase_PrimaryAttack")
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_galil", "fw_k1ase_PrimaryAttack_Post", 1)
    RegisterHam(Ham_Item_PostFrame, "weapon_galil", "k1ase_ItemPostFrame")
    RegisterHam(Ham_Weapon_Reload, "weapon_galil", "k1ase_Reload")
    RegisterHam(Ham_Weapon_Reload, "weapon_galil", "k1ase_Reload_Post", 1)
    
    RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
    register_forward(FM_SetModel, "fw_SetModel")
    register_forward(FM_UpdateClientData, "fw_UpdateClientData_Post", 1)
    register_forward(FM_PlaybackEvent, "fwPlaybackEvent")
    
    register_forward(FM_CmdStart, "fw_CmdStart")
        
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_mac10", "fw_mp7a1_PrimaryAttack")
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_mac10", "fw_mp7a1_PrimaryAttack_Post", 1)
    RegisterHam(Ham_Item_PostFrame, "weapon_mac10", "mp7a1_ItemPostFrame")
    RegisterHam(Ham_Weapon_Reload, "weapon_mac10", "mp7a1_Reload")
    RegisterHam(Ham_Weapon_Reload, "weapon_mac10", "mp7a1_Reload_Post", 1)
    
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_ak47", "fw_cv47_PrimaryAttack")
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_ak47", "fw_cv47_PrimaryAttack_Post", 1)
    RegisterHam(Ham_Item_PostFrame, "weapon_ak47", "cv47_ItemPostFrame")
    RegisterHam(Ham_Weapon_Reload, "weapon_ak47", "cv47_Reload")
    RegisterHam(Ham_Weapon_Reload, "weapon_ak47", "cv47_Reload_Post", 1)
    RegisterHam(Ham_Item_Holster, "weapon_ak47", "cv47_Holster_Post", 1)

    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_sg552", "fw_f2000_PrimaryAttack")
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_sg552", "fw_f2000_PrimaryAttack_Post", 1)
    RegisterHam(Ham_Item_PostFrame, "weapon_sg552", "f2000_ItemPostFrame")
    RegisterHam(Ham_Weapon_Reload, "weapon_sg552", "f2000_Reload")
    RegisterHam(Ham_Weapon_Reload, "weapon_sg552", "f2000_Reload_Post", 1)

    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_aug", "fw_xm8_PrimaryAttack")
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_aug", "fw_xm8_PrimaryAttack_Post", 1)
    RegisterHam(Ham_Item_PostFrame, "weapon_aug", "xm8_ItemPostFrame")
    RegisterHam(Ham_Weapon_Reload, "weapon_aug", "xm8_Reload")
    RegisterHam(Ham_Weapon_Reload, "weapon_aug", "xm8_Reload_Post", 1)
    
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_mp5navy", "fw_watergun_PrimaryAttack")
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_mp5navy", "fw_watergun_PrimaryAttack_Post", 1)
    RegisterHam(Ham_Item_PostFrame, "weapon_mp5navy", "watergun_ItemPostFrame")
    RegisterHam(Ham_Weapon_Reload, "weapon_mp5navy", "watergun_Reload")
    RegisterHam(Ham_Weapon_Reload, "weapon_mp5navy", "watergun_Reload_Post", 1)
    
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_ump45", "fw_dualkriss_PrimaryAttack")
    RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_ump45", "fw_dualkriss_PrimaryAttack_Post", 1)
    RegisterHam(Ham_Item_PostFrame, "weapon_ump45", "dualkriss_ItemPostFrame")
    RegisterHam(Ham_Weapon_Reload, "weapon_ump45", "dualkriss_Reload")
    RegisterHam(Ham_Weapon_Reload, "weapon_ump45", "dualkriss_Reload_Post", 1)
    RegisterHam(Ham_Item_Holster, "weapon_ump45", "fw_dualkriss_Holster_Post", 1)

    gmsgWeaponList = get_user_msgid("WeaponList")
    
    RegisterHam(Ham_TraceAttack, "worldspawn", "fw_TraceAttack", 1)
    RegisterHam(Ham_TraceAttack, "func_breakable", "fw_TraceAttack", 1)
    RegisterHam(Ham_TraceAttack, "func_wall", "fw_TraceAttack", 1)
    RegisterHam(Ham_TraceAttack, "func_door", "fw_TraceAttack", 1)
    RegisterHam(Ham_TraceAttack, "func_door_rotating", "fw_TraceAttack", 1)
    RegisterHam(Ham_TraceAttack, "func_plat", "fw_TraceAttack", 1)
    RegisterHam(Ham_TraceAttack, "func_rotating", "fw_TraceAttack", 1)
    
    register_menu("Menu 1", keys, "func_menu")
    register_clcmd("say /vipmenu", "server_menu", ADMIN_LEVEL_H )

    cvar_dmg_k1ase = register_cvar("zp_k1ase_dmg", "1.15")
    cvar_recoil_k1ase = register_cvar("zp_k1ase_recoil", "0.45")
    cvar_clip_k1ase = register_cvar("zp_k1ase_clip", "30")
    cvar_spd_k1ase = register_cvar("zp_k1ase_spd", "0.95")
    cvar_k1ase_ammo = register_cvar("zp_k1ase_ammo", "90")
    
    cvar_dmg_mp7a1 = register_cvar("zp_mp7a1_dmg", "1.25")
    cvar_recoil_mp7a1 = register_cvar("zp_mp7a1_recoil", "0.35")
    cvar_clip_mp7a1 = register_cvar("zp_mp7a1_clip", "30")
    cvar_spd_mp7a1 = register_cvar("zp_mp7a1_spd", "1.25")
    cvar_mp7a1_ammo = register_cvar("zp_mp7a1_ammo", "100")
    
    cvar_dmg_cv47 = register_cvar("zp_cv47_dmg", "1.45")
    cvar_recoil_cv47 = register_cvar("zp_cv47_recoil", "0.35")
    cvar_recoil_cv47_zoom = register_cvar("zp_cv47_recoil_zoom", "0.35")
    cvar_clip_cv47 = register_cvar("zp_cv47_clip", "30")
    cvar_spd_cv47 = register_cvar("zp_cv47_spd", "0.85")
    cvar_cv47_ammo = register_cvar("zp_cv47_ammo", "90")
    
    cvar_dmg_f2000 = register_cvar("zp_f2000_dmg", "0.95")
    cvar_recoil_f2000 = register_cvar("zp_f2000_recoil", "0.35")
    cvar_clip_f2000 = register_cvar("zp_f2000_clip", "30")
    cvar_spd_f2000 = register_cvar("zp_f2000_spd", "1.0")
    cvar_f2000_ammo = register_cvar("zp_f2000_ammo", "90")
    
    cvar_dmg_xm8 = register_cvar("zp_xm8_dmg", "1.15")
    cvar_recoil_xm8 = register_cvar("zp_xm8_recoil", "0.35")
    cvar_clip_xm8 = register_cvar("zp_xm8_clip", "30")
    cvar_spd_xm8 = register_cvar("zp_xm8_spd", "0.80")
    cvar_xm8_ammo = register_cvar("zp_xm8_ammo", "90")
    
    cvar_dmg_dualkriss = register_cvar("zp_dualkriss_dmg", "1.0")
    cvar_recoil_dualkriss = register_cvar("zp_dualkriss_recoil", "0.45")
    cvar_clip_dualkriss = register_cvar("zp_dualkriss_clip", "30")
    cvar_spd_dualkriss = register_cvar("zp_dualkriss_spd", "0.95")
    cvar_dualkriss_ammo = register_cvar("zp_dualkriss_ammo", "100")
    
    cvar_dmg_watergun = register_cvar("zp_watergun_dmg", "1.35")
    cvar_recoil_watergun = register_cvar("zp_watergun_recoil", "0.45")
    cvar_clip_watergun = register_cvar("zp_watergun_clip", "40")
    cvar_spd_watergun = register_cvar("zp_watergun_spd", "1.15")
    cvar_watergun_ammo = register_cvar("zp_watergun_ammo", "120")
    
    cvar_dmg_guitar = register_cvar("zp_guitar_dmg", "1.65")
    cvar_recoil_guitar = register_cvar("zp_guitar_recoil", "0.65")
    cvar_clip_guitar = register_cvar("zp_guitar_clip", "30")
    cvar_spd_guitar = register_cvar("zp_guitar_spd", "1.15")
    cvar_guitar_ammo = register_cvar("zp_guitar_ammo", "90")
    
    cvar_dmg_scar = register_cvar("zp_scar_dmg", "1.05")
    cvar_recoil_scar = register_cvar("zp_scar_recoil", "0.35")
    cvar_clip_scar = register_cvar("zp_scar_clip", "30")
    cvar_spd_scar = register_cvar("zp_scar_spd", "1.15")
    cvar_scar_ammo = register_cvar("zp_scar_ammo", "90")
    
    register_clcmd("mp7a1_give","give_mp7a1")
    register_clcmd("cv47_give","give_cv47")
    register_clcmd("f2000_give","give_f2000")
    register_clcmd("xm8_give","give_xm8")
    register_clcmd("dualkriss_give","give_dualkriss")
    register_clcmd("watergun_give","give_watergun")
    register_clcmd("guitar_give","give_guitar", ADMIN_LEVEL_A)
    register_clcmd("scar_give","give_scar")
    register_clcmd("k1ase_give","give_k1ase")
    g_MaxPlayers = get_maxplayers()
}

public plugin_precache()
{
    precache_model(k1ase_V_MODEL)
    precache_model(k1ase_P_MODEL)
    precache_model(k1ase_W_MODEL)
    
    precache_model(mp7a1_V_MODEL)
    precache_model(mp7a1_P_MODEL)
    precache_model(mp7a1_W_MODEL)
    
    precache_model(cv47_V_MODEL)
    precache_model(cv47_P_MODEL)
    precache_model(cv47_W_MODEL)
    
    precache_model(f2000_V_MODEL)
    precache_model(f2000_P_MODEL)
    precache_model(f2000_W_MODEL)
    
    precache_model(xm8_V_MODEL)
    precache_model(xm8_P_MODEL)
    precache_model(xm8_W_MODEL)
    
    precache_model(dualkriss_V_MODEL)
    precache_model(dualkriss_P_MODEL)
    precache_model(dualkriss_W_MODEL)
    
    precache_model(watergun_V_MODEL)
    precache_model(watergun_P_MODEL)
    precache_model(watergun_W_MODEL)
    
    precache_model(guitar_V_MODEL)
    precache_model(guitar_P_MODEL)
    precache_model(guitar_W_MODEL)
    
    precache_model(scar_V_MODEL)
    precache_model(scar_P_MODEL)
    precache_model(scar_W_MODEL)
        
    for(new i = 0; i < sizeof Fire_Sounds; i++)
    precache_sound(Fire_Sounds[i])   
    precache_sound("weapons/k1a_clipin.wav")
    precache_sound("weapons/k1a_clipout.wav")
    precache_sound("weapons/k1a_draw.wav")
    precache_sound("weapons/k1a_foley1.wav")
    
    precache_sound("weapons/mp7_clipin.wav")
    precache_sound("weapons/mp7_clipout.wav")
    precache_sound("weapons/mp7_draw.wav")
    precache_sound("weapons/mp7_foley1.wav")
    
    precache_sound("weapons/f2000_draw.wav")
    precache_sound("weapons/akm_draw.wav")
    precache_sound("weapons/svd_clipin.wav")
    precache_sound("weapons/hk416_clipin.wav")
    precache_sound("weapons/hk416_clipout.wav")
    
    precache_sound("weapons/xm8_clipin.wav")
    precache_sound("weapons/xm8_clipon.wav")
    precache_sound("weapons/xm8_clipout.wav")
    precache_sound("weapons/xm8_draw.wav")
    
    precache_sound("weapons/dualkriss_clipin.wav")
    precache_sound("weapons/dualkriss_clipout.wav")
    precache_sound("weapons/dualkriss_draw.wav")
    
    precache_sound("weapons/water_clipin.wav")
    precache_sound("weapons/water_clipout.wav")
    precache_sound("weapons/water_pump.wav")
    precache_sound("weapons/water_draw.wav")
    
    precache_sound("weapons/gt_clipin.wav")
    precache_sound("weapons/gt_clipon.wav")
    precache_sound("weapons/gt_clipout.wav")
    precache_sound("weapons/gt_draw.wav")   
    
    precache_sound("weapons/scar_clipin.wav")
    precache_sound("weapons/scar_clipout.wav")
    precache_sound("weapons/scar_draw.wav")   
    
    precache_generic("sprites/zm_weapon_guitar.txt")
    precache_generic("sprites/zm_cso/640hud38.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_guitar", "weapon_hook")
    
    precache_generic("sprites/zm_weapon_scar.txt")
    precache_generic("sprites/zm_cso/640hud10.spr")
    precache_generic("sprites/zm_cso/640hud11.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_scar", "weapon_hook")   
    
    precache_generic("sprites/zm_weapon_watergun.txt")
    precache_generic("sprites/zm_cso/640hud40.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_watergun", "weapon_hook7")
    
    precache_generic("sprites/zm_weapon_dualkriss.txt")
    precache_generic("sprites/zm_cso/640hud54.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_dualkriss", "weapon_hook6")
    
    precache_generic("sprites/zm_weapon_xm8.txt")
    precache_generic("sprites/zm_cso/640hud22.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_xm8", "weapon_hook5")   
            
    precache_generic("sprites/zm_weapon_k1ase.txt")
    precache_generic("sprites/zm_cso/640hud35.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_k1ase", "weapon_hook")
    
    precache_generic("sprites/zm_weapon_mp7a1.txt")
    precache_generic("sprites/zm_cso/640hud45.spr")
    precache_generic("sprites/zm_cso/640hud46.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_mp7a1", "weapon_hook2")
    
    precache_generic("sprites/zm_weapon_cv47.txt")
    precache_generic("sprites/zm_cso/640hud32.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_cv47", "weapon_hook3")   
    
    precache_generic("sprites/zm_weapon_f2000.txt")
    precache_generic("sprites/zm_cso/640hud35.spr")
    precache_generic("sprites/zm_cso/640hud7.spr")
    
    register_clcmd("zm_weapon_f2000", "weapon_hook4")   

    m_iBlood[0] = precache_model("sprites/blood.spr")
    m_iBlood[1] = precache_model("sprites/bloodspray.spr")
    watergun_sprite = precache_model("sprites/watergun.spr")

    register_forward(FM_PrecacheEvent, "fwPrecacheEvent_Post", 1)
}

public server_menu(id)
{
     new name[32]
     new money = cs_get_user_money(id)
     get_user_name(id, name, 31)
     static menu[650], iLen
     iLen = 0
     iLen = formatex(menu[iLen], charsmax(menu) - iLen, "\yМагазинчег \rCSO^n\yПривет, \r%s^n\yТвои Деньги: \r%d$^n^n", name, money)
    
     if(!is_user_alive(id) || cs_get_user_money(id) < 2000)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r1. \dMp7a1 \d(\rНедоступно\d)^n")
             keys |= MENU_KEY_1
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r1. \wMp7a1 \d[\y2000$\d]^n")
             keys |= MENU_KEY_1
     }

     if(!is_user_alive(id) || cs_get_user_money(id) < 3500)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r2. \dAK-Long \d(\rНедоступно\d)^n")
             keys |= MENU_KEY_2
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r2. \wAK-Long \d[\y3500$\d]^n")
             keys |= MENU_KEY_2
     }

     if(!is_user_alive(id) || cs_get_user_money(id) < 5000)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r3. \dFn F2000 \d(\rНедоступно\d)^n")
             keys |= MENU_KEY_3
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r3. \wFn F2000 \d[\y5000$\d]^n")
             keys |= MENU_KEY_3
     }
    
     if(!is_user_alive(id) || cs_get_user_money(id) < 7500)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r4. \dXM8 Basic \d(\rНедоступно\d)^n")
             keys |= MENU_KEY_4
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r4. \wXM8 Basic \d[\y7500$\d]^n")
             keys |= MENU_KEY_4
     }

     if(!is_user_alive(id) || cs_get_user_money(id) < 10000)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r5. \dWatergun \d(\rНедоступно\d)^n")
             keys |= MENU_KEY_5
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r5. \wWatergun \d[\y10000$\d]^n")
             keys |= MENU_KEY_5
     }

     if(!is_user_alive(id) || cs_get_user_money(id) < 12000)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r6. \dDual Kross \d(\rНедоступно\d)^n")
             keys |= MENU_KEY_6
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r6. \wDual Kross \d[\y12000$\d]^n")
             keys |= MENU_KEY_6
     }

     if(!is_user_alive(id) || cs_get_user_money(id) < 14000)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r7. \dScar Basic \d(\rНедоступно\d)^n")
             keys |= MENU_KEY_7
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r7. \wScar Basic \d[\y14000$\d]^n")
             keys |= MENU_KEY_7
     }

     if(!is_user_alive(id) || cs_get_user_money(id) < 15000)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r8. \dK1ase \d(\rНедоступно\d)^n")
             keys |= MENU_KEY_8
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r8. \wK1ase \d[\y15000$\d]^n")
             keys |= MENU_KEY_8
     }
    
     if(!is_user_alive(id) || cs_get_user_money(id) < 16000)
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r9. \dRoch Guitar \d(\rНедоступно\d)^n^n")
             keys |= MENU_KEY_9
     }
     else
     {
         iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r9. \wRoch Guitar \d[\y16000$\d] \d(\rV.I.P\d)^n^n")
             keys |= MENU_KEY_9
     }     

     iLen += formatex(menu[iLen], charsmax(menu) - iLen, "\r0. \wВыход^n")
     keys |= MENU_KEY_0

     show_menu(id, keys, menu, -1, "Menu 1")
     return PLUGIN_HANDLED
}

public func_menu(id, key)
{
     switch(key)
     {
case 0:
    {
    client_cmd(id, "mp7a1_give")
    }
case 1:
    {
    client_cmd(id, "cv47_give")
    }
case 2:
    {
    client_cmd(id, "f2000_give")
    }
case 3:
    {
    client_cmd(id, "xm8_give")
    }
case 4:
    {
    client_cmd(id, "watergun_give")
    }
case 5:
    {
    client_cmd(id, "dualkriss_give")
    }
case 6:
    {
    client_cmd(id, "scar_give")
    }
case 7:
    {
    client_cmd(id, "k1ase_give")
    }
case 8:
    {
    client_cmd(id, "guitar_give")
    }   
}
     return PLUGIN_HANDLED
}

public weapon_hook(id)
{
    engclient_cmd(id, "weapon_galil")
    return PLUGIN_HANDLED
}

public weapon_hook2(id)
{
    engclient_cmd(id, "weapon_mac10")
    return PLUGIN_HANDLED
}

public weapon_hook3(id)
{
    engclient_cmd(id, "weapon_ak47")
    return PLUGIN_HANDLED
}

public weapon_hook4(id)
{
    engclient_cmd(id, "weapon_sg552")
    return PLUGIN_HANDLED
}

public weapon_hook5(id)
{
    engclient_cmd(id, "weapon_aug")
    return PLUGIN_HANDLED
}

public weapon_hook6(id)
{
    engclient_cmd(id, "weapon_ump45")
    return PLUGIN_HANDLED
}

public weapon_hook7(id)
{
    engclient_cmd(id, "weapon_mp5navy")
    return PLUGIN_HANDLED
}

public fw_CmdStart(id, uc_handle, seed)
{
    if(g_Reload[id])
        return PLUGIN_HANDLED

    if(!is_user_alive(id))
        return PLUGIN_HANDLED
    
    if((get_uc(uc_handle, UC_Buttons) & IN_ATTACK2) && !(pev(id, pev_oldbuttons) & IN_ATTACK2))
    {
        new szClip, szAmmo
        new szWeapID = get_user_weapon(id, szClip, szAmmo)

        if(szWeapID == CSW_AK47 && g_has_cv47[id] && !g_hasZoom[id])
        {
            g_hasZoom[id] = true
            cs_set_user_zoom(id, CS_SET_AUGSG552_ZOOM, 0)
        }
        else if(szWeapID == CSW_AK47 && g_has_cv47[id] && g_hasZoom[id])
        {
            g_hasZoom[id] = false
            cs_set_user_zoom(id, CS_RESET_ZOOM, 0)   
        }
        else if(szWeapID == CSW_UMP45 && g_has_dualkriss[id] && !g_hasZoom[id])
        {
            g_hasZoom[id] = true
            cs_set_user_zoom(id, CS_SET_AUGSG552_ZOOM, 0)
        }
        else if(szWeapID == CSW_UMP45 && g_has_dualkriss[id] && g_hasZoom[id])
        {
            g_hasZoom[id] = false
            cs_set_user_zoom(id, CS_RESET_ZOOM, 0)   
        }
    }
    return PLUGIN_HANDLED
}

public fw_TraceAttack(iEnt, iAttacker, Float:flDamage, Float:fDir[3], ptr, iDamageType)
{
    if(!is_user_alive(iAttacker))
        return

    new g_currentweapon = get_user_weapon(iAttacker)

    if((g_currentweapon == CSW_UMP45 && !g_has_dualkriss[iAttacker]) || (g_currentweapon == CSW_AUG && !g_has_xm8[iAttacker]) || (g_currentweapon == CSW_SG552 && !g_has_f2000[iAttacker]) || (g_currentweapon == CSW_GALIL && !g_has_k1ase[iAttacker] && !g_has_guitar[iAttacker] && !g_has_scar[iAttacker]) || (g_currentweapon == CSW_MAC10 && !g_has_mp7a1[iAttacker]) || (g_currentweapon == CSW_AK47 && !g_has_cv47[iAttacker])
    || (g_currentweapon != CSW_UMP45 && g_currentweapon != CSW_AUG && g_currentweapon != CSW_GALIL && g_currentweapon != CSW_MAC10 && g_currentweapon != CSW_AK47 && g_currentweapon != CSW_SG552)) return

    static Float:flEnd[3]
    get_tr2(ptr, TR_vecEndPos, flEnd)
    
    if(iEnt)
    {
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
        write_byte(TE_DECAL)
        write_coord_f(flEnd[0])
        write_coord_f(flEnd[1])
        write_coord_f(flEnd[2])
        write_byte(GUNSHOT_DECALS[random_num (0, sizeof GUNSHOT_DECALS -1)])
        write_short(iEnt)
        message_end()
    }
    else
    {
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
        write_byte(TE_WORLDDECAL)
        write_coord_f(flEnd[0])
        write_coord_f(flEnd[1])
        write_coord_f(flEnd[2])
        write_byte(GUNSHOT_DECALS[random_num (0, sizeof GUNSHOT_DECALS -1)])
        message_end()
    }
    message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
    write_byte(TE_GUNSHOTDECAL)
    write_coord_f(flEnd[0])
    write_coord_f(flEnd[1])
    write_coord_f(flEnd[2])
    write_short(iAttacker)
    write_byte(GUNSHOT_DECALS[random_num (0, sizeof GUNSHOT_DECALS -1)])
    message_end()
}

public fwPrecacheEvent_Post(type, const name[])
{
    if (equal("events/galil.sc", name))
    {
        g_orig_event_k1ase = get_orig_retval()
        return FMRES_HANDLED
    }
    else if (equal("events/mac10.sc", name))
    {
        g_orig_event_mp7a1 = get_orig_retval()
        return FMRES_HANDLED
    }
    else if (equal("events/ak47.sc", name))
    {
        g_orig_event_cv47 = get_orig_retval()
        return FMRES_HANDLED
    }
    else if (equal("events/sg552.sc", name))
    {
        g_orig_event_f2000 = get_orig_retval()
        return FMRES_HANDLED
    }
    else if (equal("events/aug.sc", name))
    {
        g_orig_event_xm8 = get_orig_retval()
        return FMRES_HANDLED
    }
    else if (equal("events/ump45.sc", name))
    {
        g_orig_event_dualkriss = get_orig_retval()
        return FMRES_HANDLED
    }
    else if (equal("events/mp5n.sc", name))
    {
        g_orig_event_watergun = get_orig_retval()
        return FMRES_HANDLED
    }
    return FMRES_IGNORED
}

public client_connect(id)
{
    g_has_k1ase[id] = false
    g_has_mp7a1[id] = false
    g_has_cv47[id] = false
    g_has_f2000[id] = false
    g_has_xm8[id] = false
    g_has_dualkriss[id] = false
    g_has_watergun[id] = false
    g_has_guitar[id] = false
    g_has_scar[id] = false
}

public client_disconnect(id)
{
    g_has_k1ase[id] = false
    g_has_mp7a1[id] = false
    g_has_cv47[id] = false
    g_has_f2000[id] = false
    g_has_xm8[id] = false
    g_has_dualkriss[id] = false
    g_has_watergun[id] = false
    g_has_guitar[id] = false
    g_has_scar[id] = false
}

public fw_SetModel(entity, model[])
{
    if(!is_valid_ent(entity))
        return FMRES_IGNORED
    
    static szClassName[33]
    entity_get_string(entity, EV_SZ_classname, szClassName, charsmax(szClassName))
        
    if(!equal(szClassName, "weaponbox"))
        return FMRES_IGNORED
    
    static iOwner
    
    iOwner = entity_get_edict(entity, EV_ENT_owner)
    
    if(equal(model, "models/w_galil.mdl"))
    {
        static iStoredAugID
        
        iStoredAugID = find_ent_by_owner(ENG_NULLENT, "weapon_galil", entity)
    
        if(!is_valid_ent(iStoredAugID))
            return FMRES_IGNORED
    
        if(g_has_k1ase[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, k1ase_WEAPONKEY)
            
            g_has_k1ase[iOwner] = false
            
            entity_set_model(entity, k1ase_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
        else
        if(g_has_guitar[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, guitar_WEAPONKEY)
            
            g_has_guitar[iOwner] = false
            
            entity_set_model(entity, guitar_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
        else
        if(g_has_scar[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, scar_WEAPONKEY)
            
            g_has_scar[iOwner] = false
            
            entity_set_model(entity, scar_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
    }
    else if(equal(model, "models/w_mac10.mdl"))
    {
        static iStoredAugID
        
        iStoredAugID = find_ent_by_owner(ENG_NULLENT, "weapon_mac10", entity)
    
        if(!is_valid_ent(iStoredAugID))
            return FMRES_IGNORED
    
        if(g_has_mp7a1[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, mp7a1_WEAPONKEY)
            
            g_has_mp7a1[iOwner] = false
            
            entity_set_model(entity, mp7a1_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
    }
    else if(equal(model, "models/w_ak47.mdl"))
    {
        static iStoredAugID
        
        iStoredAugID = find_ent_by_owner(ENG_NULLENT, "weapon_ak47", entity)
    
        if(!is_valid_ent(iStoredAugID))
            return FMRES_IGNORED
    
        if(g_has_cv47[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, cv47_WEAPONKEY)
            
            g_has_cv47[iOwner] = false
            
            entity_set_model(entity, cv47_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
    }
    else if(equal(model, "models/w_sg552.mdl"))
    {
        static iStoredAugID
        
        iStoredAugID = find_ent_by_owner(ENG_NULLENT, "weapon_sg552", entity)
    
        if(!is_valid_ent(iStoredAugID))
            return FMRES_IGNORED
    
        if(g_has_f2000[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, f2000_WEAPONKEY)
            
            g_has_f2000[iOwner] = false
            
            entity_set_model(entity, f2000_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
    }
    else if(equal(model, "models/w_aug.mdl"))
    {
        static iStoredAugID
        
        iStoredAugID = find_ent_by_owner(ENG_NULLENT, "weapon_aug", entity)
    
        if(!is_valid_ent(iStoredAugID))
            return FMRES_IGNORED
    
        if(g_has_xm8[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, xm8_WEAPONKEY)
            
            g_has_xm8[iOwner] = false
            
            entity_set_model(entity, xm8_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
    }
    else if(equal(model, "models/w_ump45.mdl"))
    {
        static iStoredAugID
        
        iStoredAugID = find_ent_by_owner(ENG_NULLENT, "weapon_ump45", entity)
    
        if(!is_valid_ent(iStoredAugID))
            return FMRES_IGNORED
    
        if(g_has_dualkriss[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, dualkriss_WEAPONKEY)
            
            g_has_dualkriss[iOwner] = false
            
            entity_set_model(entity, dualkriss_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
    }
    else if(equal(model, "models/w_mp5.mdl"))
    {
        static iStoredAugID
        
        iStoredAugID = find_ent_by_owner(ENG_NULLENT, "weapon_mp5navy", entity)
    
        if(!is_valid_ent(iStoredAugID))
            return FMRES_IGNORED
    
        if(g_has_watergun[iOwner])
        {
            entity_set_int(iStoredAugID, EV_INT_WEAPONKEY, watergun_WEAPONKEY)
            
            g_has_watergun[iOwner] = false
            
            entity_set_model(entity, watergun_W_MODEL)
            
            return FMRES_SUPERCEDE
        }
    }
    return FMRES_IGNORED
}

public give_watergun(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 10000)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 10000)   
    ColorChat(id, RED, "Вы купили WaterGun")   
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_mp5navy")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_watergun))
        cs_set_user_bpammo (id, CSW_MP5NAVY, get_pcvar_num(cvar_watergun_ammo))   
        UTIL_PlayWeaponAnimation(id, watergun_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)
    }
    g_has_watergun[id] = true
    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
    write_string("zm_weapon_watergun")
    write_byte(10)
    write_byte(120)
    write_byte(-1)
    write_byte(-1)
    write_byte(0)
    write_byte(7)
    write_byte(CSW_MP5NAVY)
    message_end()
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить WaterGun!")
}
}

public give_dualkriss(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 6000)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 6000)   
    ColorChat(id, RED, "Вы купили Dual Kriss")
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_ump45")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_dualkriss))
        cs_set_user_bpammo (id, CSW_UMP45, get_pcvar_num(cvar_dualkriss_ammo))   
        UTIL_PlayWeaponAnimation(id, dualkriss_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_dualkriss")
        write_byte(6)
        write_byte(100)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(15)
        write_byte(CSW_UMP45)
        message_end()
    }
    g_has_dualkriss[id] = true
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить Dual Kriss!")
}
}

public give_k1ase(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 15000)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 15000)   
    ColorChat(id, RED, "Вы купили Super K1ase")
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_galil")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_k1ase))
        cs_set_user_bpammo (id, CSW_GALIL, get_pcvar_num(cvar_k1ase_ammo))   
        UTIL_PlayWeaponAnimation(id, k1ase_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
    }
    g_has_k1ase[id] = true
    write_string("zm_weapon_k1ase")
    write_byte(4)
    write_byte(90)
    write_byte(-1)
    write_byte(-1)
    write_byte(0)
    write_byte(17)
    write_byte(CSW_GALIL)
    message_end()
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить Super K1ase!")
}
}

public give_guitar(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 12000 && get_user_flags(id) & ADMIN_LEVEL_A)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 12000)   
    ColorChat(id, RED, "Вы купили Roch Guitar")
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_galil")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_guitar))
        cs_set_user_bpammo (id, CSW_GALIL, get_pcvar_num(cvar_guitar_ammo))   
        UTIL_PlayWeaponAnimation(id, guitar_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
    }
    g_has_guitar[id] = true
    write_string("zm_weapon_guitar")
    write_byte(4)
    write_byte(90)
    write_byte(-1)
    write_byte(-1)
    write_byte(0)
    write_byte(17)
    write_byte(CSW_GALIL)
    message_end()
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить Roch Guitar!")
}
}

public give_scar(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 14000)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 14000)   
    ColorChat(id, RED, "Вы купили Scar Basic")
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_galil")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_scar))
        cs_set_user_bpammo (id, CSW_GALIL, get_pcvar_num(cvar_scar_ammo))   
        UTIL_PlayWeaponAnimation(id, scar_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
    }
    g_has_scar[id] = true
    write_string("zm_weapon_scar")
    write_byte(4)
    write_byte(90)
    write_byte(-1)
    write_byte(-1)
    write_byte(0)
    write_byte(17)
    write_byte(CSW_GALIL)
    message_end()
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить Scar Basic!")
}
}

public give_mp7a1(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 2000)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 2000)   
    ColorChat(id, RED, "Вы купили Dual Mp7a1")
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_mac10")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_mp7a1))
        cs_set_user_bpammo (id, CSW_MAC10, get_pcvar_num(cvar_mp7a1_ammo))   
        UTIL_PlayWeaponAnimation(id, mp7a1_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)
    }
    g_has_mp7a1[id] = true
    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
    write_string("zm_weapon_mp7a1")
    write_byte(6)
    write_byte(100)
    write_byte(-1)
    write_byte(-1)
    write_byte(0)
    write_byte(13)
    write_byte(CSW_MAC10)
    message_end()
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить Mp7a1!")
}
}

public give_cv47(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 3500)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 3500)   
    ColorChat(id, RED, "Вы купили Dual Ak-47 Long")
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_ak47")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_cv47))
        cs_set_user_bpammo (id, CSW_AK47, get_pcvar_num(cvar_cv47_ammo))   
        UTIL_PlayWeaponAnimation(id, cv47_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_cv47")
        write_byte(2)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(1)
        write_byte(CSW_AK47)
        message_end()
    }
    g_has_cv47[id] = true
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить Ak-47 Long!")
}
}

public give_f2000(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 5000)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 5000)   
    ColorChat(id, RED, "Вы купили Fn F2000")
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_sg552")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_f2000))
        cs_set_user_bpammo (id, CSW_SG552, get_pcvar_num(cvar_f2000_ammo))   
        UTIL_PlayWeaponAnimation(id, f2000_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_f2000")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(10)
        write_byte(CSW_SG552)
        message_end()
    }
    g_has_f2000[id] = true
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить Fn F2000!")
}
}

public give_xm8(id)
{
    if(is_user_alive(id) && cs_get_user_money(id) >= 7500)
    {
    cs_set_user_money(id, cs_get_user_money(id) - 7500)   
    ColorChat(id, RED, "Вы купили Xm8 Basic")
    drop_weapons(id, 1)
    new iWep2 = give_item(id,"weapon_aug")
    if( iWep2 > 0 )
    {
        cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_xm8))
        cs_set_user_bpammo (id, CSW_AUG, get_pcvar_num(cvar_xm8_ammo))   
        UTIL_PlayWeaponAnimation(id, xm8_DRAW)
        set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_xm8")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(14)
        write_byte(CSW_AUG)
        message_end()
    }
    g_has_xm8[id] = true
    }
    else
    {
    ColorChat(id, RED, "Вы не можете купить Xm8 Basic!")
}
}

public fw_dualkriss_AddToPlayer(dualkriss, id)
{
    if(!is_valid_ent(dualkriss) || !is_user_connected(id))
        return HAM_IGNORED
    
    if(entity_get_int(dualkriss, EV_INT_WEAPONKEY) == dualkriss_WEAPONKEY)
    {
        g_has_dualkriss[id] = true
        
        entity_set_int(dualkriss, EV_INT_WEAPONKEY, 0)
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_dualkriss")
        write_byte(6)
        write_byte(100)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(15)
        write_byte(CSW_UMP45)
        message_end()

        return HAM_HANDLED
    }
    else
    {
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("weapon_ump45")
        write_byte(6)
        write_byte(100)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(15)
        write_byte(CSW_UMP45)
        message_end()
    }
    return HAM_IGNORED
}

public fw_k1ase_AddToPlayer(k1ase, id)
{
    if(!is_valid_ent(k1ase) || !is_user_connected(id))
        return HAM_IGNORED
    
    if(entity_get_int(k1ase, EV_INT_WEAPONKEY) == k1ase_WEAPONKEY)
    {
        g_has_k1ase[id] = true
        
        entity_set_int(k1ase, EV_INT_WEAPONKEY, 0)
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_k1ase")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(17)
        write_byte(CSW_GALIL)
        message_end()

        return HAM_HANDLED
    }
    else if(entity_get_int(k1ase, EV_INT_WEAPONKEY) == guitar_WEAPONKEY)
    {
        g_has_guitar[id] = true
        
        entity_set_int(k1ase, EV_INT_WEAPONKEY, 0)
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_guitar")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(17)
        write_byte(CSW_GALIL)
        message_end()

        return HAM_HANDLED
    }
    else if(entity_get_int(k1ase, EV_INT_WEAPONKEY) == scar_WEAPONKEY)
    {
        g_has_scar[id] = true
        
        entity_set_int(k1ase, EV_INT_WEAPONKEY, 0)
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_scar")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(17)
        write_byte(CSW_GALIL)
        message_end()

        return HAM_HANDLED
    }
    else
    {
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("weapon_galil")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(17)
        write_byte(CSW_GALIL)
        message_end()
    }
    return HAM_IGNORED
}

public fw_xm8_AddToPlayer(xm8, id)
{
    if(!is_valid_ent(xm8) || !is_user_connected(id))
        return HAM_IGNORED
    
    if(entity_get_int(xm8, EV_INT_WEAPONKEY) == xm8_WEAPONKEY)
    {
        g_has_xm8[id] = true
        
        entity_set_int(xm8, EV_INT_WEAPONKEY, 0)
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_xm8")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(14)
        write_byte(CSW_AUG)
        message_end()

        return HAM_HANDLED
    }
    else
    {
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("weapon_aug")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(14)
        write_byte(CSW_AUG)
        message_end()
    }
    return HAM_IGNORED
}

public fw_f2000_AddToPlayer(f2000, id)
{
    if(!is_valid_ent(f2000) || !is_user_connected(id))
        return HAM_IGNORED
    
    if(entity_get_int(f2000, EV_INT_WEAPONKEY) == f2000_WEAPONKEY)
    {
        g_has_f2000[id] = true
        
        entity_set_int(f2000, EV_INT_WEAPONKEY, 0)
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_f2000")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(10)
        write_byte(CSW_SG552)
        message_end()

        return HAM_HANDLED
    }
    else
    {
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("weapon_sg552")
        write_byte(4)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(10)
        write_byte(CSW_SG552)
        message_end()
    }
    return HAM_IGNORED
}

public fw_UseStationary_Post(entity, caller, activator, use_type)
{
    if (use_type == USE_STOPPED && is_user_connected(caller))
        replace_weapon_models(caller, get_user_weapon(caller))
}

public fw_Item_Deploy_Post(weapon_ent)
{
    static owner
    owner = fm_cs_get_weapon_ent_owner(weapon_ent)
    
    static weaponid
    weaponid = cs_get_weapon_id(weapon_ent)
    
    replace_weapon_models(owner, weaponid)
}

public CurrentWeapon(id)
{
    replace_weapon_models(id, read_data(2))

    if((read_data(2) == CSW_MP5NAVY && !g_has_watergun[id]) || (read_data(2) == CSW_GALIL && !g_has_k1ase[id] && !g_has_guitar[id] && !g_has_scar[id]) || (read_data(2) == CSW_UMP45 && !g_has_dualkriss[id]) || (read_data(2) == CSW_AUG && !g_has_xm8[id]) ||(read_data(2) == CSW_MAC10 && !g_has_mp7a1[id]) || (read_data(2) == CSW_AK47 && !g_has_cv47[id]) || (read_data(2) == CSW_SG552 && !g_has_f2000[id])
    || (read_data(2) != CSW_MP5NAVY && read_data(2) != CSW_AUG && read_data(2) != CSW_GALIL && read_data(2) != CSW_MAC10 && read_data(2) != CSW_AK47 && read_data(2) != CSW_SG552))
        return
    
    static Float:iSpeed
    if(g_has_k1ase[id])
        iSpeed = get_pcvar_float(cvar_spd_k1ase)
    else if(g_has_mp7a1[id])
        iSpeed = get_pcvar_float(cvar_spd_mp7a1)
    else if(g_has_cv47[id])
        iSpeed = get_pcvar_float(cvar_spd_cv47)
    else if(g_has_f2000[id])
        iSpeed = get_pcvar_float(cvar_spd_f2000)
    else if(g_has_xm8[id])
        iSpeed = get_pcvar_float(cvar_spd_xm8)
    else if(g_has_dualkriss[id])
        iSpeed = get_pcvar_float(cvar_spd_dualkriss)
    else if(g_has_watergun[id])
        iSpeed = get_pcvar_float(cvar_spd_watergun)
    else if(g_has_guitar[id])
        iSpeed = get_pcvar_float(cvar_spd_guitar)
    else if(g_has_scar[id])
        iSpeed = get_pcvar_float(cvar_spd_scar)
    
    static weapon[32],Ent
    get_weaponname(read_data(2),weapon,31)
    Ent = find_ent_by_owner(-1,weapon,id)
    if(Ent)
    {
        static Float:Delay, Float:M_Delay
        Delay = get_pdata_float( Ent, 46, 4) * iSpeed
        M_Delay = get_pdata_float( Ent, 47, 4) * iSpeed
        
        if (Delay > 0.0)
        {
            set_pdata_float(Ent, 46, Delay, 4)
            set_pdata_float(Ent, 47, M_Delay, 4)
        }
    }
}

replace_weapon_models(id, weaponid)
{
    switch (weaponid)
    {
        case CSW_GALIL:
        {
            if(g_has_k1ase[id])
            {
                set_pev(id, pev_viewmodel2, k1ase_V_MODEL)
                set_pev(id, pev_weaponmodel2, k1ase_P_MODEL)
                if(oldweap[id] != CSW_GALIL)
                {
                    UTIL_PlayWeaponAnimation(id, k1ase_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

                    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
                    write_string("zm_weapon_k1ase")
                    write_byte(4)
                    write_byte(90)
                    write_byte(-1)
                    write_byte(-1)
                    write_byte(0)
                    write_byte(17)
                    write_byte(CSW_GALIL)
                    message_end()
                }
            }
            else if(g_has_guitar[id])
            {
                set_pev(id, pev_viewmodel2, guitar_V_MODEL)
                set_pev(id, pev_weaponmodel2, guitar_P_MODEL)
                if(oldweap[id] != CSW_GALIL)
                {
                    UTIL_PlayWeaponAnimation(id, guitar_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

                    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
                    write_string("zm_weapon_guitar")
                    write_byte(4)
                    write_byte(90)
                    write_byte(-1)
                    write_byte(-1)
                    write_byte(0)
                    write_byte(17)
                    write_byte(CSW_GALIL)
                    message_end()
                }
            }
            else if(g_has_scar[id])
            {
                set_pev(id, pev_viewmodel2, scar_V_MODEL)
                set_pev(id, pev_weaponmodel2, scar_P_MODEL)
                if(oldweap[id] != CSW_GALIL)
                {
                    UTIL_PlayWeaponAnimation(id, scar_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

                    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
                    write_string("zm_weapon_scar")
                    write_byte(4)
                    write_byte(90)
                    write_byte(-1)
                    write_byte(-1)
                    write_byte(0)
                    write_byte(17)
                    write_byte(CSW_GALIL)
                    message_end()
                }
            }
        }
        case CSW_UMP45:
        {           
            if(g_has_dualkriss[id])
            {
                set_pev(id, pev_viewmodel2, dualkriss_V_MODEL)
                set_pev(id, pev_weaponmodel2, dualkriss_P_MODEL)
                if(oldweap[id] != CSW_UMP45)
                {
                    UTIL_PlayWeaponAnimation(id, dualkriss_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

                    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
                    write_string("zm_weapon_dualkriss")
                    write_byte(6)
                    write_byte(100)
                    write_byte(-1)
                    write_byte(-1)
                    write_byte(0)
                    write_byte(15)
                    write_byte(CSW_UMP45)
                    message_end()
                }
            }
        }
        case CSW_MP5NAVY:
        {
            if(g_has_watergun[id])
            {
                set_pev(id, pev_viewmodel2, watergun_V_MODEL)
                set_pev(id, pev_weaponmodel2, watergun_P_MODEL)
                if(oldweap[id] != CSW_MP5NAVY)
                {
                    UTIL_PlayWeaponAnimation(id, watergun_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)
                }
            }
        }
        case CSW_MAC10:
        {
            if(g_has_mp7a1[id])
            {
                set_pev(id, pev_viewmodel2, mp7a1_V_MODEL)
                set_pev(id, pev_weaponmodel2, mp7a1_P_MODEL)
                if(oldweap[id] != CSW_MAC10)
                {
                    UTIL_PlayWeaponAnimation(id, mp7a1_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)
                    
                    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
                    write_string("zm_weapon_mp7a1")
                    write_byte(6)
                    write_byte(100)
                    write_byte(-1)
                    write_byte(-1)
                    write_byte(0)
                    write_byte(13)
                    write_byte(CSW_MAC10)
                    message_end()
                }
            }
        }
        case CSW_AK47:
        {
            if(g_has_cv47[id])
            {
                set_pev(id, pev_viewmodel2, cv47_V_MODEL)
                set_pev(id, pev_weaponmodel2, cv47_P_MODEL)
                if(oldweap[id] != CSW_AK47)
                {
                    UTIL_PlayWeaponAnimation(id, cv47_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

                    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
                    write_string("zm_weapon_cv47")
                    write_byte(2)
                    write_byte(90)
                    write_byte(-1)
                    write_byte(-1)
                    write_byte(0)
                    write_byte(1)
                    write_byte(CSW_AK47)
                    message_end()
                }
            }
        }
        case CSW_SG552:
        {
            if(g_has_f2000[id])
            {
                set_pev(id, pev_viewmodel2, f2000_V_MODEL)
                set_pev(id, pev_weaponmodel2, f2000_P_MODEL)
                if(oldweap[id] != CSW_SG552)
                {
                    UTIL_PlayWeaponAnimation(id, f2000_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

                    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
                    write_string("zm_weapon_f2000")
                    write_byte(4)
                    write_byte(90)
                    write_byte(-1)
                    write_byte(-1)
                    write_byte(0)
                    write_byte(10)
                    write_byte(CSW_SG552)
                    message_end()
                }
            }
        }
        case CSW_AUG:
        {
            if(g_has_xm8[id])
            {
                set_pev(id, pev_viewmodel2, xm8_V_MODEL)
                set_pev(id, pev_weaponmodel2, xm8_P_MODEL)
                if(oldweap[id] != CSW_AUG)
                {
                    UTIL_PlayWeaponAnimation(id, xm8_DRAW)
                    set_pdata_float(id, m_flNextAttack, 1.0, PLAYER_LINUX_XTRA_OFF)

                    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
                    write_string("zm_weapon_xm8")
                    write_byte(4)
                    write_byte(90)
                    write_byte(-1)
                    write_byte(-1)
                    write_byte(0)
                    write_byte(14)
                    write_byte(CSW_AUG)
                    message_end()
                }
            }
        }
    }
    oldweap[id] = weaponid
}

public fw_UpdateClientData_Post(Player, SendWeapons, CD_Handle)
{
    if(!is_user_alive(Player))
        return FMRES_IGNORED;
        
    if((get_user_weapon(Player) == CSW_MP5NAVY && !g_has_watergun[Player]) || (get_user_weapon(Player) == CSW_UMP45 && !g_has_dualkriss[Player]) || (get_user_weapon(Player) == CSW_AUG && !g_has_xm8[Player]) || (get_user_weapon(Player) == CSW_AUG && !g_has_xm8[Player]) || (get_user_weapon(Player) == CSW_SG552 && !g_has_f2000[Player]) || (get_user_weapon(Player) == CSW_GALIL && !g_has_k1ase[Player] && !g_has_guitar[Player] && !g_has_scar[Player])
    || (get_user_weapon(Player) == CSW_MAC10 && !g_has_mp7a1[Player]) || (get_user_weapon(Player) == CSW_AK47 && !g_has_cv47[Player])
    || (get_user_weapon(Player) != CSW_MP5NAVY && get_user_weapon(Player) != CSW_UMP45 && get_user_weapon(Player) != CSW_GALIL && get_user_weapon(Player) != CSW_MAC10 && get_user_weapon(Player) != CSW_AK47 && get_user_weapon(Player) != CSW_SG552 && get_user_weapon(Player) != CSW_AUG))
        return FMRES_IGNORED
    
    set_cd(CD_Handle, CD_flNextAttack, halflife_time () + 0.001)
    return FMRES_HANDLED
}

public fwPlaybackEvent(flags, invoker, eventid, Float:delay, Float:origin[3], Float:angles[3], Float:fparam1, Float:fparam2, iParam1, iParam2, bParam1, bParam2)
{
    if ((eventid != g_orig_event_watergun && eventid != g_orig_event_dualkriss && eventid != g_orig_event_k1ase && eventid != g_orig_event_xm8 && eventid != g_orig_event_f2000 && eventid != g_orig_event_mp7a1 && eventid != g_orig_event_cv47) || !g_IsInPrimaryAttack)
        return FMRES_IGNORED
        
    if (!(1 <= invoker <= g_MaxPlayers))
        return FMRES_IGNORED

    playback_event(flags | FEV_HOSTONLY, invoker, eventid, delay, origin, angles, fparam1, fparam2, iParam1, iParam2, bParam1, bParam2)
    return FMRES_SUPERCEDE
}

public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
    if (victim != attacker && is_user_connected(attacker))
    {
        if(get_user_weapon(attacker) == CSW_GALIL)
        {
            if(g_has_k1ase[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_k1ase))
            else if(g_has_guitar[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_guitar))
            else if(g_has_scar[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_scar))
        }
        else if(get_user_weapon(attacker) == CSW_MAC10)
        {
            if(g_has_mp7a1[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_mp7a1))
        }
        else if(get_user_weapon(attacker) == CSW_AK47)
        {
            if(g_has_cv47[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_cv47))
        }
        else if(get_user_weapon(attacker) == CSW_SG552)
        {
            if(g_has_f2000[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_f2000))
        }
        else if(get_user_weapon(attacker) == CSW_AUG)
        {
            if(g_has_xm8[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_xm8))
        }
        else if(get_user_weapon(attacker) == CSW_UMP45)
        {
            if(g_has_dualkriss[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_dualkriss))
        }
        else if(get_user_weapon(attacker) == CSW_MP5NAVY)
        {
            if(g_has_watergun[attacker])
                SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_watergun))
        }
    }
}

public message_DeathMsg(msg_id, msg_dest, id)
{
    static szTruncatedWeapon[33], iAttacker, iVictim
    
    get_msg_arg_string(4, szTruncatedWeapon, charsmax(szTruncatedWeapon))
    
    iAttacker = get_msg_arg_int(1)
    iVictim = get_msg_arg_int(2)
    
    if(!is_user_connected(iAttacker) || iAttacker == iVictim)
        return PLUGIN_CONTINUE
    
    if(equal(szTruncatedWeapon, "galil") && get_user_weapon(iAttacker) == CSW_GALIL)
    {
        if(g_has_k1ase[iAttacker])
            set_msg_arg_string(4, "k1ase")
        else if(g_has_guitar[iAttacker])
            set_msg_arg_string(4, "guitar")
        else if(g_has_scar[iAttacker])
            set_msg_arg_string(4, "scar")
    }
    else if(equal(szTruncatedWeapon, "mac10") && get_user_weapon(iAttacker) == CSW_MAC10)
    {
        if(g_has_mp7a1[iAttacker])
            set_msg_arg_string(4, "mp7a1")
    }
    else if(equal(szTruncatedWeapon, "ak47") && get_user_weapon(iAttacker) == CSW_AK47)
    {
        if(g_has_cv47[iAttacker])
            set_msg_arg_string(4, "ak4760r")
    }
    else if(equal(szTruncatedWeapon, "sg552") && get_user_weapon(iAttacker) == CSW_SG552)
    {
        if(g_has_f2000[iAttacker])
            set_msg_arg_string(4, "f2000")
    }
    else if(equal(szTruncatedWeapon, "aug") && get_user_weapon(iAttacker) == CSW_AUG)
    {
        if(g_has_xm8[iAttacker])
            set_msg_arg_string(4, "xm8carabine")
    }
    else if(equal(szTruncatedWeapon, "ump45") && get_user_weapon(iAttacker) == CSW_UMP45)
    {
        if(g_has_dualkriss[iAttacker])
            set_msg_arg_string(4, "dualkriss")
    }
    else if(equal(szTruncatedWeapon, "mp5navy") && get_user_weapon(iAttacker) == CSW_MP5NAVY)
    {
        if(g_has_watergun[iAttacker])
            set_msg_arg_string(4, "watergun")
    }
    return PLUGIN_CONTINUE
}

stock fm_cs_get_current_weapon_ent(id)
{
    return get_pdata_cbase(id, OFFSET_ACTIVE_ITEM, OFFSET_LINUX)
}

stock fm_cs_get_weapon_ent_owner(ent)
{
    return get_pdata_cbase(ent, OFFSET_WEAPONOWNER, OFFSET_LINUX_WEAPONS)
}

stock UTIL_PlayWeaponAnimation(const Player, const Sequence)
{
    set_pev(Player, pev_weaponanim, Sequence)
    
    message_begin(MSG_ONE_UNRELIABLE, SVC_WEAPONANIM, .player = Player)
    write_byte(Sequence)
    write_byte(pev(Player, pev_body))
    message_end()
}

public fw_k1ase_PrimaryAttack(Weapon)
{
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    if (!g_has_k1ase[Player] &&!g_has_guitar[Player] && !g_has_scar[Player])
        return
    
    g_IsInPrimaryAttack = 1
    pev(Player,pev_punchangle,cl_pushangle[Player])
    
    g_clip_ammo[Player] = cs_get_weapon_ammo(Weapon)
}

public fw_k1ase_PrimaryAttack_Post(Weapon)
{
    g_IsInPrimaryAttack = 0
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    new szClip, szAmmo
    get_user_weapon(Player, szClip, szAmmo)
    
    if(!is_user_alive(Player))
        return

    if(g_has_k1ase[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_k1ase),push)
        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[0], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        UTIL_PlayWeaponAnimation(Player, random_num(k1ase_SHOOT1, k1ase_SHOOT2))
    }
    else if(g_has_guitar[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_guitar),push)
        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[7], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        UTIL_PlayWeaponAnimation(Player, random_num(guitar_SHOOT1, guitar_SHOOT2))
    }
    else if(g_has_scar[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_scar),push)
        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[8], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        UTIL_PlayWeaponAnimation(Player, random_num(scar_SHOOT1, scar_SHOOT2))
    }
}

public k1ase_ItemPostFrame(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_k1ase[id] && !g_has_guitar[id] && !g_has_scar[id])
        return HAM_IGNORED

    static iClipExtra;
    
    if(g_has_k1ase[id])
        iClipExtra = get_pcvar_num(cvar_clip_k1ase)
    else if(g_has_guitar[id])
        iClipExtra = get_pcvar_num(cvar_clip_guitar)
    else if(g_has_scar[id])
        iClipExtra = get_pcvar_num(cvar_clip_scar)
    
    new Float:flNextAttack = get_pdata_float(id, m_flNextAttack, PLAYER_LINUX_XTRA_OFF)

    new iBpAmmo = cs_get_user_bpammo(id, CSW_GALIL);
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    new fInReload = get_pdata_int(weapon_entity, m_fInReload, WEAP_LINUX_XTRA_OFF)

    if( fInReload && flNextAttack <= 0.0 )
    {
        new j = min(iClipExtra - iClip, iBpAmmo)
    
        set_pdata_int(weapon_entity, m_iClip, iClip + j, WEAP_LINUX_XTRA_OFF)
        cs_set_user_bpammo(id, CSW_GALIL, iBpAmmo-j)
        
        set_pdata_int(weapon_entity, m_fInReload, 0, WEAP_LINUX_XTRA_OFF)
        fInReload = 0
    }
    return HAM_IGNORED
}

public k1ase_Reload(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_k1ase[id] && !g_has_guitar[id] && !g_has_scar[id])
        return HAM_IGNORED

    static iClipExtra

    if(g_has_k1ase[id])
        iClipExtra = get_pcvar_num(cvar_clip_k1ase)
    else if(g_has_guitar[id])
        iClipExtra = get_pcvar_num(cvar_clip_guitar)
    else if(g_has_scar[id])
        iClipExtra = get_pcvar_num(cvar_clip_scar)

    g_k1ase_TmpClip[id] = -1

    new iBpAmmo = cs_get_user_bpammo(id, CSW_GALIL)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    if (iBpAmmo <= 0)
        return HAM_SUPERCEDE

    if (iClip >= iClipExtra)
        return HAM_SUPERCEDE

    g_k1ase_TmpClip[id] = iClip

    return HAM_IGNORED
}

public k1ase_Reload_Post(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_k1ase[id] && !g_has_guitar[id] && !g_has_scar[id])
        return HAM_IGNORED

    if (g_k1ase_TmpClip[id] == -1)
        return HAM_IGNORED
        
    static Float:iClipExtra
        
    if(g_has_k1ase[id])
        iClipExtra = k1ase_RELOAD_TIME
    else if(g_has_guitar[id])
        iClipExtra = guitar_RELOAD_TIME
    else if(g_has_scar[id])
        iClipExtra = scar_RELOAD_TIME

    set_pdata_int(weapon_entity, m_iClip, g_k1ase_TmpClip[id], WEAP_LINUX_XTRA_OFF)

    set_pdata_float(weapon_entity, m_flTimeWeaponIdle, iClipExtra, WEAP_LINUX_XTRA_OFF)

    set_pdata_float(id, m_flNextAttack, iClipExtra, PLAYER_LINUX_XTRA_OFF)

    set_pdata_int(weapon_entity, m_fInReload, 1, WEAP_LINUX_XTRA_OFF)

    static anims
        
    if(g_has_k1ase[id])
        anims = k1ase_RELOAD
    else if(g_has_guitar[id])
        anims = guitar_RELOAD
    else if(g_has_scar[id])
        anims = scar_RELOAD

    UTIL_PlayWeaponAnimation(id, anims)

    return HAM_IGNORED
}

public fw_mp7a1_PrimaryAttack(Weapon)
{
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    if (!g_has_mp7a1[Player])
        return
    
    g_IsInPrimaryAttack = 1
    pev(Player,pev_punchangle,cl_pushangle[Player])
    
    g_clip_ammo[Player] = cs_get_weapon_ammo(Weapon)
}

public fw_mp7a1_PrimaryAttack_Post(Weapon)
{
    g_IsInPrimaryAttack = 0
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    new szClip, szAmmo
    get_user_weapon(Player, szClip, szAmmo)
    
    if(!is_user_alive(Player))
        return

    if(g_has_mp7a1[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_mp7a1),push)
        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[1], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        UTIL_PlayWeaponAnimation(Player, random_num(mp7a1_SHOOT1, mp7a1_SHOOT2))
    }
}

public mp7a1_ItemPostFrame(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_mp7a1[id])
        return HAM_IGNORED

    static iClipExtra
    
    iClipExtra = get_pcvar_num(cvar_clip_mp7a1)
    new Float:flNextAttack = get_pdata_float(id, m_flNextAttack, PLAYER_LINUX_XTRA_OFF)

    new iBpAmmo = cs_get_user_bpammo(id, CSW_MAC10)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    new fInReload = get_pdata_int(weapon_entity, m_fInReload, WEAP_LINUX_XTRA_OFF)

    if( fInReload && flNextAttack <= 0.0 )
    {
        new j = min(iClipExtra - iClip, iBpAmmo)
    
        set_pdata_int(weapon_entity, m_iClip, iClip + j, WEAP_LINUX_XTRA_OFF)
        cs_set_user_bpammo(id, CSW_MAC10, iBpAmmo-j)
        
        set_pdata_int(weapon_entity, m_fInReload, 0, WEAP_LINUX_XTRA_OFF)
        fInReload = 0
    }
    return HAM_IGNORED
}

public mp7a1_Reload(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_mp7a1[id])
        return HAM_IGNORED

    static iClipExtra

    if(g_has_mp7a1[id])
        iClipExtra = get_pcvar_num(cvar_clip_mp7a1)

    g_mp7a1_TmpClip[id] = -1

    new iBpAmmo = cs_get_user_bpammo(id, CSW_MAC10)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    if (iBpAmmo <= 0)
        return HAM_SUPERCEDE

    if (iClip >= iClipExtra)
        return HAM_SUPERCEDE

    g_mp7a1_TmpClip[id] = iClip

    return HAM_IGNORED
}

public mp7a1_Reload_Post(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_mp7a1[id])
        return HAM_IGNORED

    if (g_mp7a1_TmpClip[id] == -1)
        return HAM_IGNORED

    set_pdata_int(weapon_entity, m_iClip, g_mp7a1_TmpClip[id], WEAP_LINUX_XTRA_OFF)

    set_pdata_float(weapon_entity, m_flTimeWeaponIdle, mp7a1_RELOAD_TIME, WEAP_LINUX_XTRA_OFF)

    set_pdata_float(id, m_flNextAttack, mp7a1_RELOAD_TIME, PLAYER_LINUX_XTRA_OFF)

    set_pdata_int(weapon_entity, m_fInReload, 1, WEAP_LINUX_XTRA_OFF)

    UTIL_PlayWeaponAnimation(id, mp7a1_RELOAD)

    return HAM_IGNORED
}

public fw_watergun_AddToPlayer(watergun, id)
{
    if(!is_valid_ent(watergun) || !is_user_connected(id))
        return HAM_IGNORED
    
    if(entity_get_int(watergun, EV_INT_WEAPONKEY) == watergun_WEAPONKEY)
    {
        g_has_watergun[id] = true
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_watergun")
        write_byte(10)
        write_byte(120)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(7)
        write_byte(CSW_MP5NAVY)
        message_end()
        
        entity_set_int(watergun, EV_INT_WEAPONKEY, 0)
        
        return HAM_HANDLED
    }
    else
    message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
    write_string("weapon_mp5navy")
    write_byte(10)
    write_byte(120)
    write_byte(-1)
    write_byte(-1)
    write_byte(0)
    write_byte(7)
    write_byte(CSW_MP5NAVY)
    message_end()
    return HAM_IGNORED
}

public fw_mp7a1_AddToPlayer(mp7a1, id)
{
    if(!is_valid_ent(mp7a1) || !is_user_connected(id))
        return HAM_IGNORED
    
    if(entity_get_int(mp7a1, EV_INT_WEAPONKEY) == mp7a1_WEAPONKEY)
    {
        g_has_mp7a1[id] = true
        
        entity_set_int(mp7a1, EV_INT_WEAPONKEY, 0)
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_mp7a1")
        write_byte(6)
        write_byte(100)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(13)
        write_byte(CSW_MAC10)
        message_end()

        return HAM_HANDLED
    }
    else
    {
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("weapon_mac10")
        write_byte(6)
        write_byte(100)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(13)
        write_byte(CSW_MAC10)
        message_end()
    }
    return HAM_IGNORED
}

public fw_cv47_PrimaryAttack(Weapon)
{
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    if (!g_has_cv47[Player])
        return
    
    g_IsInPrimaryAttack = 1
    pev(Player,pev_punchangle,cl_pushangle[Player])
    
    g_clip_ammo[Player] = cs_get_weapon_ammo(Weapon)
}

public fw_cv47_PrimaryAttack_Post(Weapon)
{
    g_IsInPrimaryAttack = 0
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    new szClip, szAmmo
    get_user_weapon(Player, szClip, szAmmo)
    
    if(!is_user_alive(Player))
        return

    if(g_has_cv47[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        if(cs_get_user_zoom(Player) == CS_SET_AUGSG552_ZOOM)
            xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_cv47_zoom),push)
        else
            xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_cv47),push)

        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[2], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        UTIL_PlayWeaponAnimation(Player, random_num(cv47_SHOOT1, cv47_SHOOT2))
    }
}

public cv47_ItemPostFrame(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_cv47[id])
        return HAM_IGNORED

    static iClipExtra
    
    iClipExtra = get_pcvar_num(cvar_clip_cv47)
    new Float:flNextAttack = get_pdata_float(id, m_flNextAttack, PLAYER_LINUX_XTRA_OFF)

    new iBpAmmo = cs_get_user_bpammo(id, CSW_AK47)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    new fInReload = get_pdata_int(weapon_entity, m_fInReload, WEAP_LINUX_XTRA_OFF)

    if( fInReload && flNextAttack <= 0.0 )
    {
        new j = min(iClipExtra - iClip, iBpAmmo)
    
        set_pdata_int(weapon_entity, m_iClip, iClip + j, WEAP_LINUX_XTRA_OFF)
        cs_set_user_bpammo(id, CSW_AK47, iBpAmmo-j)
        
        set_pdata_int(weapon_entity, m_fInReload, 0, WEAP_LINUX_XTRA_OFF)
        fInReload = 0
        g_Reload[id] = 0
    }
    return HAM_IGNORED
}

public cv47_Reload(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_cv47[id])
        return HAM_IGNORED

    static iClipExtra

    if(g_has_cv47[id])
        iClipExtra = get_pcvar_num(cvar_clip_cv47)

    g_cv47_TmpClip[id] = -1

    new iBpAmmo = cs_get_user_bpammo(id, CSW_AK47)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    if (iBpAmmo <= 0)
        return HAM_SUPERCEDE

    if (iClip >= iClipExtra)
        return HAM_SUPERCEDE

    g_cv47_TmpClip[id] = iClip

    return HAM_IGNORED
}

public cv47_Reload_Post(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_cv47[id])
        return HAM_IGNORED

    if (g_cv47_TmpClip[id] == -1)
        return HAM_IGNORED

    set_pdata_int(weapon_entity, m_iClip, g_cv47_TmpClip[id], WEAP_LINUX_XTRA_OFF)

    cs_set_user_zoom(id, CS_RESET_ZOOM, 1)

    set_pdata_float(weapon_entity, m_flTimeWeaponIdle, cv47_RELOAD_TIME, WEAP_LINUX_XTRA_OFF)

    set_pdata_float(id, m_flNextAttack, cv47_RELOAD_TIME, PLAYER_LINUX_XTRA_OFF)

    set_pdata_int(weapon_entity, m_fInReload, 1, WEAP_LINUX_XTRA_OFF)

    UTIL_PlayWeaponAnimation(id, cv47_RELOAD)

    g_Reload[id] = 1

    return HAM_IGNORED
}

public cv47_Holster_Post(weapon_entity)
{
    static Player
    Player = get_pdata_cbase(weapon_entity, OFFSET_WEAPONOWNER, OFFSET_LINUX_WEAPONS)
    
    g_flNextUseTime[Player] = 0.0

    if(g_has_cv47[Player])
    {
        cs_set_user_zoom(Player, CS_RESET_ZOOM, 1)
        g_hasZoom[Player] = false
    }
}

public fw_cv47_AddToPlayer(cv47, id)
{
    if(!is_valid_ent(cv47) || !is_user_connected(id))
        return HAM_IGNORED
    
    if(entity_get_int(cv47, EV_INT_WEAPONKEY) == cv47_WEAPONKEY)
    {
        g_has_cv47[id] = true
        
        entity_set_int(cv47, EV_INT_WEAPONKEY, 0)
        
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("zm_weapon_cv47")
        write_byte(2)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(1)
        write_byte(CSW_AK47)
        message_end()

        return HAM_HANDLED
    }
    else
    {
        message_begin(MSG_ONE, gmsgWeaponList, {0,0,0}, id)
        write_string("weapon_ak47")
        write_byte(2)
        write_byte(90)
        write_byte(-1)
        write_byte(-1)
        write_byte(0)
        write_byte(1)
        write_byte(CSW_AK47)
        message_end()
    }
    return HAM_IGNORED
}

public fw_f2000_PrimaryAttack(Weapon)
{
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    if (!g_has_f2000[Player])
        return
    
    g_IsInPrimaryAttack = 1
    pev(Player,pev_punchangle,cl_pushangle[Player])
    
    g_clip_ammo[Player] = cs_get_weapon_ammo(Weapon)
}

public fw_f2000_PrimaryAttack_Post(Weapon)
{
    g_IsInPrimaryAttack = 0
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    new szClip, szAmmo
    get_user_weapon(Player, szClip, szAmmo)
    
    if(!is_user_alive(Player))
        return

    if(g_has_f2000[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_f2000),push)
        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[3], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        UTIL_PlayWeaponAnimation(Player, random_num(f2000_SHOOT1, f2000_SHOOT2))
    }
}

public f2000_ItemPostFrame(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED
    
    if (!g_has_f2000[id])
        return HAM_IGNORED
    
    static iClipExtra
    
    iClipExtra = get_pcvar_num(cvar_clip_f2000)
    new Float:flNextAttack = get_pdata_float(id, m_flNextAttack, PLAYER_LINUX_XTRA_OFF)

    new iBpAmmo = cs_get_user_bpammo(id, CSW_SG552)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)
    
    new fInReload = get_pdata_int(weapon_entity, m_fInReload, WEAP_LINUX_XTRA_OFF)

    if( fInReload && flNextAttack <= 0.0 )
    {
        new j = min(iClipExtra - iClip, iBpAmmo)
    
        set_pdata_int(weapon_entity, m_iClip, iClip + j, WEAP_LINUX_XTRA_OFF)
        cs_set_user_bpammo(id, CSW_SG552, iBpAmmo-j)
        
        set_pdata_int(weapon_entity, m_fInReload, 0, WEAP_LINUX_XTRA_OFF)
        fInReload = 0
    }
    return HAM_IGNORED
}

public f2000_Reload(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_f2000[id])
        return HAM_IGNORED

    static iClipExtra

    if(g_has_f2000[id])
        iClipExtra = get_pcvar_num(cvar_clip_f2000)

    g_f2000_TmpClip[id] = -1

    new iBpAmmo = cs_get_user_bpammo(id, CSW_SG552)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    if (iBpAmmo <= 0)
        return HAM_SUPERCEDE

    if (iClip >= iClipExtra)
        return HAM_SUPERCEDE

    g_f2000_TmpClip[id] = iClip

    return HAM_IGNORED
}

public f2000_Reload_Post(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_f2000[id])
        return HAM_IGNORED

    if (g_f2000_TmpClip[id] == -1)
        return HAM_IGNORED

    set_pdata_int(weapon_entity, m_iClip, g_f2000_TmpClip[id], WEAP_LINUX_XTRA_OFF)

    set_pdata_float(weapon_entity, m_flTimeWeaponIdle, f2000_RELOAD_TIME, WEAP_LINUX_XTRA_OFF)

    set_pdata_float(id, m_flNextAttack, f2000_RELOAD_TIME, PLAYER_LINUX_XTRA_OFF)

    set_pdata_int(weapon_entity, m_fInReload, 1, WEAP_LINUX_XTRA_OFF)

    UTIL_PlayWeaponAnimation(id, f2000_RELOAD)

    return HAM_IGNORED
}

public fw_xm8_PrimaryAttack(Weapon)
{
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    if (!g_has_xm8[Player])
        return
    
    g_IsInPrimaryAttack = 1
    pev(Player,pev_punchangle,cl_pushangle[Player])
    
    g_clip_ammo[Player] = cs_get_weapon_ammo(Weapon)
}

public fw_xm8_PrimaryAttack_Post(Weapon)
{
    g_IsInPrimaryAttack = 0
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    new szClip, szAmmo
    get_user_weapon(Player, szClip, szAmmo)
    
    if(!is_user_alive(Player))
        return

    if(g_has_xm8[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_xm8),push)
        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[4], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        UTIL_PlayWeaponAnimation(Player, random_num(xm8_SHOOT1, xm8_SHOOT2))
    }
}

public xm8_ItemPostFrame(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_xm8[id])
        return HAM_IGNORED

    static iClipExtra
    
    iClipExtra = get_pcvar_num(cvar_clip_xm8)
    new Float:flNextAttack = get_pdata_float(id, m_flNextAttack, PLAYER_LINUX_XTRA_OFF)

    new iBpAmmo = cs_get_user_bpammo(id, CSW_AUG)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    new fInReload = get_pdata_int(weapon_entity, m_fInReload, WEAP_LINUX_XTRA_OFF)

    if( fInReload && flNextAttack <= 0.0 )
    {
        new j = min(iClipExtra - iClip, iBpAmmo)
    
        set_pdata_int(weapon_entity, m_iClip, iClip + j, WEAP_LINUX_XTRA_OFF)
        cs_set_user_bpammo(id, CSW_AUG, iBpAmmo-j)
        
        set_pdata_int(weapon_entity, m_fInReload, 0, WEAP_LINUX_XTRA_OFF)
        fInReload = 0
    }
    return HAM_IGNORED
}

public xm8_Reload(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_xm8[id])
        return HAM_IGNORED

    static iClipExtra

    if(g_has_xm8[id])
        iClipExtra = get_pcvar_num(cvar_clip_xm8)

    g_xm8_TmpClip[id] = -1

    new iBpAmmo = cs_get_user_bpammo(id, CSW_AUG)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    if (iBpAmmo <= 0)
        return HAM_SUPERCEDE

    if (iClip >= iClipExtra)
        return HAM_SUPERCEDE

    g_xm8_TmpClip[id] = iClip

    return HAM_IGNORED
}

public xm8_Reload_Post(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_xm8[id])
        return HAM_IGNORED

    if (g_xm8_TmpClip[id] == -1)
        return HAM_IGNORED

    set_pdata_int(weapon_entity, m_iClip, g_xm8_TmpClip[id], WEAP_LINUX_XTRA_OFF)

    set_pdata_float(weapon_entity, m_flTimeWeaponIdle, xm8_RELOAD_TIME, WEAP_LINUX_XTRA_OFF)

    set_pdata_float(id, m_flNextAttack, xm8_RELOAD_TIME, PLAYER_LINUX_XTRA_OFF)

    set_pdata_int(weapon_entity, m_fInReload, 1, WEAP_LINUX_XTRA_OFF)

    UTIL_PlayWeaponAnimation(id, xm8_RELOAD)

    return HAM_IGNORED
}

public fw_dualkriss_PrimaryAttack(Weapon)
{
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    if (!g_has_dualkriss[Player])
        return
    
    g_IsInPrimaryAttack = 1
    pev(Player,pev_punchangle,cl_pushangle[Player])
    
    g_clip_ammo[Player] = cs_get_weapon_ammo(Weapon)
}

public fw_dualkriss_PrimaryAttack_Post(Weapon)
{
    g_IsInPrimaryAttack = 0
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    new szClip, szAmmo
    get_user_weapon(Player, szClip, szAmmo)
    
    if(!is_user_alive(Player))
        return

    if(g_has_dualkriss[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_dualkriss),push)
        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[5], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        new num
        num = random_num(1,2)
        if(num == 1)  UTIL_PlayWeaponAnimation(Player, random_num(dualkriss_SHOOT1,dualkriss_SHOOT3))
        if(num == 2)  UTIL_PlayWeaponAnimation(Player,  dualkriss_SHOOT2)
    }
}

public dualkriss_ItemPostFrame(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_dualkriss[id])
        return HAM_IGNORED

    static iClipExtra
    
    iClipExtra = get_pcvar_num(cvar_clip_dualkriss)
    new Float:flNextAttack = get_pdata_float(id, m_flNextAttack, PLAYER_LINUX_XTRA_OFF)

    new iBpAmmo = cs_get_user_bpammo(id, CSW_UMP45)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    new fInReload = get_pdata_int(weapon_entity, m_fInReload, WEAP_LINUX_XTRA_OFF)

    if( fInReload && flNextAttack <= 0.0 )
    {
        new j = min(iClipExtra - iClip, iBpAmmo)
    
        set_pdata_int(weapon_entity, m_iClip, iClip + j, WEAP_LINUX_XTRA_OFF)
        cs_set_user_bpammo(id, CSW_UMP45, iBpAmmo-j)
        
        set_pdata_int(weapon_entity, m_fInReload, 0, WEAP_LINUX_XTRA_OFF)
        fInReload = 0
        g_Reload[id] = 0
    }
    return HAM_IGNORED
}

public dualkriss_Reload(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_dualkriss[id])
        return HAM_IGNORED

    static iClipExtra

    if(g_has_dualkriss[id])
        iClipExtra = get_pcvar_num(cvar_clip_dualkriss)

    g_dualkriss_TmpClip[id] = -1

    new iBpAmmo = cs_get_user_bpammo(id, CSW_UMP45)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    if (iBpAmmo <= 0)
        return HAM_SUPERCEDE

    if (iClip >= iClipExtra)
        return HAM_SUPERCEDE

    g_dualkriss_TmpClip[id] = iClip

    return HAM_IGNORED
}

public dualkriss_Reload_Post(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_dualkriss[id])
        return HAM_IGNORED

    if (g_dualkriss_TmpClip[id] == -1)
        return HAM_IGNORED

    set_pdata_int(weapon_entity, m_iClip, g_dualkriss_TmpClip[id], WEAP_LINUX_XTRA_OFF)

    cs_set_user_zoom(id, CS_RESET_ZOOM, 1)

    set_pdata_float(weapon_entity, m_flTimeWeaponIdle, dualkriss_RELOAD_TIME, WEAP_LINUX_XTRA_OFF)

    set_pdata_float(id, m_flNextAttack, dualkriss_RELOAD_TIME, PLAYER_LINUX_XTRA_OFF)

    set_pdata_int(weapon_entity, m_fInReload, 1, WEAP_LINUX_XTRA_OFF)

    UTIL_PlayWeaponAnimation(id, dualkriss_RELOAD)

    g_Reload[id] = 1

    return HAM_IGNORED
}

public fw_dualkriss_Holster_Post(weapon_entity)
{
    static Player
    Player = get_pdata_cbase(weapon_entity, OFFSET_WEAPONOWNER, OFFSET_LINUX_WEAPONS)
    
    g_flNextUseTime[Player] = 0.0

    if(g_has_dualkriss[Player])
    {
        cs_set_user_zoom(Player, CS_RESET_ZOOM, 1)
    }
}

public fw_watergun_PrimaryAttack(Weapon)
{
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    if (!g_has_watergun[Player])
        return
    
    g_IsInPrimaryAttack = 1
    pev(Player,pev_punchangle,cl_pushangle[Player])
    
    g_clip_ammo[Player] = cs_get_weapon_ammo(Weapon)
}

public fw_watergun_PrimaryAttack_Post(Weapon)
{
    g_IsInPrimaryAttack = 0
    new Player = get_pdata_cbase(Weapon, 41, 4)
    
    new szClip, szAmmo
    get_user_weapon(Player, szClip, szAmmo)
    
    if(!is_user_alive(Player))
        return

    if(g_has_watergun[Player])
    {
        if (!g_clip_ammo[Player])
            return

        new Float:push[3]
        pev(Player,pev_punchangle,push)
        xs_vec_sub(push,cl_pushangle[Player],push)
        
        xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_watergun),push)
        xs_vec_add(push,cl_pushangle[Player],push)
        set_pev(Player,pev_punchangle,push)
        
        emit_sound(Player, CHAN_WEAPON, Fire_Sounds[6], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        UTIL_PlayWeaponAnimation(Player, random_num(watergun_SHOOT1, watergun_SHOOT2))

        static Float:plrViewAngles[3], Float:VecEnd[3], Float:VecDir[3], Float:PlrOrigin[3]
        pev(Player, pev_v_angle, plrViewAngles)

        static Float:VecSrc[3], Float:VecDst[3]
        
        pev(Player, pev_origin, PlrOrigin)
        pev(Player, pev_view_ofs, VecSrc)
        xs_vec_add(VecSrc, PlrOrigin, VecSrc)
        
        angle_vector(plrViewAngles, ANGLEVECTOR_FORWARD, VecDir);
        xs_vec_mul_scalar(VecDir, 8192.0, VecDst);
        xs_vec_add(VecDst, VecSrc, VecDst);
        
        new hTrace = create_tr2()
        engfunc(EngFunc_TraceLine, VecSrc, VecDst, 0, Player, hTrace)
        get_tr2(hTrace, TR_vecEndPos, VecEnd);

        create_tracer_water(Player, VecSrc, VecEnd)   
    }
}

public watergun_ItemPostFrame(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_watergun[id])
        return HAM_IGNORED

    static iClipExtra
    
    iClipExtra = get_pcvar_num(cvar_clip_watergun)
    new Float:flNextAttack = get_pdata_float(id, m_flNextAttack, PLAYER_LINUX_XTRA_OFF)

    new iBpAmmo = cs_get_user_bpammo(id, CSW_MP5NAVY);
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    new fInReload = get_pdata_int(weapon_entity, m_fInReload, WEAP_LINUX_XTRA_OFF)

    if( fInReload && flNextAttack <= 0.0 )
    {
        new j = min(iClipExtra - iClip, iBpAmmo)
    
        set_pdata_int(weapon_entity, m_iClip, iClip + j, WEAP_LINUX_XTRA_OFF)
        cs_set_user_bpammo(id, CSW_MP5NAVY, iBpAmmo-j)
        
        set_pdata_int(weapon_entity, m_fInReload, 0, WEAP_LINUX_XTRA_OFF)
        fInReload = 0
    }
    return HAM_IGNORED
}

public watergun_Reload(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_watergun[id])
        return HAM_IGNORED

    static iClipExtra

    if(g_has_watergun[id])
    iClipExtra = get_pcvar_num(cvar_clip_watergun)

    g_watergun_TmpClip[id] = -1

    new iBpAmmo = cs_get_user_bpammo(id, CSW_MP5NAVY)
    new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF)

    if (iBpAmmo <= 0)
        return HAM_SUPERCEDE

    if (iClip >= iClipExtra)
        return HAM_SUPERCEDE

    g_watergun_TmpClip[id] = iClip

    return HAM_IGNORED
}

public watergun_Reload_Post(weapon_entity)
{
    new id = pev(weapon_entity, pev_owner)
    if (!is_user_connected(id))
        return HAM_IGNORED

    if (!g_has_watergun[id])
        return HAM_IGNORED

    if (g_watergun_TmpClip[id] == -1)
        return HAM_IGNORED

    set_pdata_int(weapon_entity, m_iClip, g_watergun_TmpClip[id], WEAP_LINUX_XTRA_OFF)

    set_pdata_float(weapon_entity, m_flTimeWeaponIdle, watergun_RELOAD_TIME, WEAP_LINUX_XTRA_OFF)

    set_pdata_float(id, m_flNextAttack, watergun_RELOAD_TIME, PLAYER_LINUX_XTRA_OFF)

    set_pdata_int(weapon_entity, m_fInReload, 1, WEAP_LINUX_XTRA_OFF)

    UTIL_PlayWeaponAnimation(id, watergun_RELOAD)

    return HAM_IGNORED
}

stock create_tracer_water(id, Float:fVec1[3], Float:fVec2[3])
{
    static iVec1[3]
    FVecIVec(fVec1, iVec1)

    static Float:origin[3], Float:vSrc[3], Float:angles[3], Float:v_forward[3], Float:v_right[3], Float:v_up[3], Float:gun_position[3], Float:player_origin[3], Float:player_view_offset[3]
    pev(id, pev_v_angle, angles)
    engfunc(EngFunc_MakeVectors, angles)
    global_get(glb_v_forward, v_forward)
    global_get(glb_v_right, v_right)
    global_get(glb_v_up, v_up)

    pev(id, pev_origin, player_origin)
    pev(id, pev_view_ofs, player_view_offset)
    xs_vec_add(player_origin, player_view_offset, gun_position)

    xs_vec_mul_scalar(v_forward, 24.0, v_forward)
    xs_vec_mul_scalar(v_right, 3.0, v_right)

    if ((pev(id, pev_flags) & FL_DUCKING) == FL_DUCKING)
        xs_vec_mul_scalar(v_up, 6.0, v_up)
    else
        xs_vec_mul_scalar(v_up, -2.0, v_up)

    xs_vec_add(gun_position, v_forward, origin)
    xs_vec_add(origin, v_right, origin)
    xs_vec_add(origin, v_up, origin)

    vSrc[0] = origin[0]
    vSrc[1] = origin[1]
    vSrc[2] = origin[2]

    new Float:dist = get_distance_f(vSrc, fVec2)
    new CountDrops = floatround(dist / 50.0)
    
    if (CountDrops > 20)
        CountDrops = 20
    
    if (CountDrops < 2)
        CountDrops = 2

    message_begin(MSG_PAS, SVC_TEMPENTITY, iVec1)
    write_byte(TE_SPRITETRAIL)
    engfunc(EngFunc_WriteCoord, vSrc[0])
    engfunc(EngFunc_WriteCoord, vSrc[1])
    engfunc(EngFunc_WriteCoord, vSrc[2])
    engfunc(EngFunc_WriteCoord, fVec2[0])
    engfunc(EngFunc_WriteCoord, fVec2[1])
    engfunc(EngFunc_WriteCoord, fVec2[2])
    write_short(watergun_sprite)
    write_byte(CountDrops)
    write_byte(0)
    write_byte(1)
    write_byte(60)
    write_byte(10)
    message_end()

    message_begin(MSG_PAS, SVC_TEMPENTITY, iVec1)
    write_byte(TE_BEAMPOINTS)
    engfunc(EngFunc_WriteCoord, fVec2[0])
    engfunc(EngFunc_WriteCoord, fVec2[1])
    engfunc(EngFunc_WriteCoord, fVec2[2])
    engfunc(EngFunc_WriteCoord, vSrc[0])
    engfunc(EngFunc_WriteCoord, vSrc[1])
    engfunc(EngFunc_WriteCoord, vSrc[2])
    write_short(watergun_sprite)
    write_byte(6)
    write_byte(200)
    write_byte(1)
    write_byte(100)
    write_byte(0)
    write_byte(64); write_byte(64); write_byte(192);
    write_byte(192)
    write_byte(250)
    message_end()
}

stock drop_weapons(id, dropwhat)
{
    static weapons[32], num, i, weaponid
    num = 0
    get_user_weapons(id, weapons, num)
    
    for (i = 0; i < num; i++)
    {
        weaponid = weapons[i]
        
        if (dropwhat == 1 && ((1<<weaponid) & PRIMARY_WEAPONS_BIT_SUM))
        {
            static wname[32]
            get_weaponname(weaponid, wname, sizeof wname - 1)
            engclient_cmd(id, "drop", wname)
        }
    }
}
 
Сообщения
137
Реакции
9
Помог
3 раз(а)
кто нибудь поможет??
можно лично за вознагрождение
 
Статус
В этой теме нельзя размещать новые ответы.

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

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