PHP Code:
public drop_ent(id){
if(g_has_ent[id]){
//if user has entity then you drop it with your code or function
//add here your code that drops entity
return PLUGIN_HANDLED;
//After your dropped entity , you block weapon drop by returning handled
}
return PLUGIN_CONTINUE;
//If player doesn't have entity, weapon drop won't be blocked
}
You shall have a global boolean array which checks if player has the entity :
new g_has_entity[33]
I think you understand.