Этот плагин проигрывает звуки про подъёме оружия и item-ов
Версия : 1.0.2
Автор : BIGs
SMA
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
#include <amxmodx> #include <hamsandwich> #include <fakemeta> #pragma semicolon 1 #define PLUGIN "HL : Get Items Sounds" #define VERSION "1.0.2" #define AUTHOR "BIGs" new const Sounds[21][] = { "fvox/get_9mmclip.wav", "fvox/get_44ammo.wav", "fvox/get_44pistol.wav", "fvox/get_alien_wpn.wav", "fvox/get_assault.wav", "fvox/get_assaultgren.wav", "fvox/get_battery.wav", "fvox/get_bolts.wav", "fvox/get_buckshot.wav", "fvox/get_crossbow.wav", "fvox/get_egon.wav", "fvox/get_egonpower.wav", "fvox/get_gauss.wav", "fvox/get_grenade.wav", "fvox/get_medkit.wav", "fvox/get_pistol.wav", "fvox/get_rpg.wav", "fvox/get_rpgammo.wav", "fvox/get_satchel.wav", "fvox/get_shotgun.wav", "fvox/get_tripmine.wav" }; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); RegisterHam(Ham_Item_AddToPlayer, "weapon_9mmhandgun", "fw_9mmHandGun_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_9mmhandgun", "fw_9mmHandGun_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_357", "fw_357_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_357", "fw_357_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_9mmAR", "fw_9mmAR_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_9mmAR", "fw_9mmAR_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_shotgun", "fw_ShotGun_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_shotgun", "fw_ShotGun_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_crossbow", "fw_CrossBow_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_crossbow", "fw_CrossBow_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_rpg", "fw_RPG_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_rpg", "fw_RPG_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_gauss", "fw_Gauss_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_gauss", "fw_Gauss_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_egon", "fw_Egon_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_egon", "fw_Egon_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_hornetgun", "fw_HornetGun_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_hornetgun", "fw_HornetGun_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_handgrenade", "fw_HandGrenade_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_handgrenade", "fw_HandGrenade_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_satchel", "fw_Satchel_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_satchel", "fw_Satchel_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddToPlayer, "weapon_tripmine", "fw_TripMine_AddToPlayer_Post", 1); RegisterHam(Ham_Item_AddDuplicate, "weapon_tripmine", "fw_TripMine_AddToPlayer_Post", 1); RegisterHam(Ham_GiveAmmo, "player", "fw_Player_GiveAmmo_Post", 1); register_event("ItemPickup","BatterySound","b","1&item_battery"); register_event("ItemPickup","HealthKitSound","b","1&item_healthkit"); } public plugin_precache() { for(new i = 0; i < sizeof(Sounds); i++) precache_sound(Sounds[i]); } public fw_9mmHandGun_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[15]); } public fw_357_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[2]); } public fw_9mmAR_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[4]); } public fw_ShotGun_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[19]); } public fw_CrossBow_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[9]); } public fw_RPG_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[16]); } public fw_Gauss_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[12]); } public fw_Egon_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[10]); } public fw_HornetGun_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[3]); } public fw_HandGrenade_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[13]); } public fw_Satchel_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[18]); } public fw_TripMine_AddToPlayer_Post(Ent, id) { if(!pev_valid(Ent)) return ; PlaySound(id, Sounds[20]); } public fw_Player_GiveAmmo_Post(id, Amount, Name[], Max) { if(equali(Name, "357")) PlaySound(id, Sounds[1]); else if(equali(Name, "ARgrenades")) PlaySound(id, Sounds[5]); else if(equali(Name, "bolts")) PlaySound(id, Sounds[7]); else if(equali(Name, "9mm")) PlaySound(id, Sounds[0]); else if(equali(Name, "buckshot")) PlaySound(id, Sounds[8]); else if(equali(Name, "rockets")) PlaySound(id, Sounds[17]); else if(equali(Name, "uranium")) PlaySound(id, Sounds[11]); } public BatterySound(id) { PlaySound(id, Sounds[6]); } public HealthKitSound(id) { PlaySound(id, Sounds[14]); } stock PlaySound(id, const sound[]) { emit_sound(id, CHAN_STREAM, sound, VOL_NORM, ATTN_NORM, 0, PITCH_NORM); } |
[collapse]