I agree with thEsp, instead of picking up and dropping, just block the pickup, it is super easy. This would apply to weaponbox and armoury_entity.
This is a very rough example that will block picking up weapons, you can add more logic/conditions to it. E.g. only if the weapon is on the ground, type of weapon, only particular players, only in certain scenarios, etc.
PHP Code:
#include <amxmodx>
#include <engine>
public plugin_init()
{
register_touch( "weaponbox" , "player" , "PlayerTouchWeaponbox" );
}
public PlayerTouchWeaponbox( iEntity , iPlayer )
{
return PLUGIN_HANDLED;
}
__________________