Hello, i have problem:
PHP Code:
#include <amxmodx>
#include <engine>
public plugin_init()
{
register_touch("weaponbox", "player", "BlockPickUp");
register_touch("armoury_entity", "player", "BlockPickUp");
register_touch("weapon_shield", "player", "BlockPickUp");
}
public BlockPickUp(ent,id)
{
new model[32]; entity_get_string(ent,EV_SZ_model,model,31);
if(equali(model,"models/w_c4.mdl"))
{
return PLUGIN_CONTINUE;
}
if(get_user_team(id) == 1)
{
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
I want, that TE cannot pick up any weapon except bomb. But i have tested it and this not works ;( TE cannot pick up bomb