I think you're looking for something like what I have. The user can only have 5 eggs at a time. But you have to add it to breeding.php, the pound (which with the new script I haven't tried yet) doadopt.php and I think that's it. It's something like this though
Code:
$stmt = $adopts->query("SELECT * FROM ".constant("PREFIX")."owned_adoptables WHERE owner='".$loggedinname."' AND currentlevel<='3' AND isfrozen='no'");
$data = $stmt->fetchAll();
$num = count($data);
if($num >= 5){
$canadopt = "no";
$article_title = "Too many eggs!"; $article_content = "You already have too many eggs to take care of! Come back once you have hatched an egg!";
}
else