#define PLUGIN ""
#define VERSION ""
#define AUTHOR ""
#include <amxmodx>
#include <weapon_skin_system>
#pragma semicolon 1
enum SkinInfo { SkinIndex, SkinWeaponid };
enum Skins {SKIN_AK};
new g_iWeaponSkins[Skins][SkinInfo];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public wss_loaded_skin(index, weaponid, name[])
{
if(equal(name, "AK-47 Arena"))
{
g_iWeaponSkins[SKIN_AK][SkinIndex] = index;
g_iWeaponSkins[SKIN_AK][SkinWeaponid] = weaponid;
}
}
public wss_weapon_can_pickup(id, weaponbox, weapon, weaponid, skin)
{
new skin = wss_get_weapon_skin_index(weapon);
if(skin == g_iWeaponSkins[SKIN_AK][SkinIndex] && ~get_user_flags(id) & ADMIN_KICK)
{
return WEAPON_BLOCK_PICKUP;
}
if(!skin)
{
return WEAPON_CAN_PICKUP;
}
return WEAPON_CAN_PICKUP;
}