Declare this plugin in configs/maps/plugins-apw_bycastor.ini :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define VERSION "0.0.1"
#define PLUGIN "awp_bycastor"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
new ent, m_iItem = 34, XO_ARMOURY = 4, CSA_AWP = 10
while( ( ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "armoury_entity") ) )
{
if( get_pdata_int(ent, m_iItem, XO_ARMOURY)!= CSA_AWP )
{
engfunc(EngFunc_RemoveEntity, ent)
}
}
}
__________________