Hi I've been trying to disable the pickup of root combiners if the user is not the owner. I haven't been able to make it check for root combiner. It probably needs a simple fix, although I haven't been able to find it yet.
private object CanPickupEntity(BasePlayer player, BaseEntity entity)
{
if(entity as electrical.combiner.deployed)
{
if(entity.OwnerID != 0 && entity.OwnerID != player.userID)
{
SendReply(player, "You cannot pickup a root combiner that doesn't belong to you!");
return false;
}
return null;
}
return null;
}