Oh so what you mean was, everytime an adoptables receives a click, the owner of the adoptables get the money?
That's easy, just change this query from line 238
PHP Code:
$query = "SELECT * FROM `".$prefix."users` WHERE `username`='$loggedinname'";
into this
PHP Code:
$query = "SELECT * FROM `".$prefix."users` WHERE `username`='$owner'";
and on line 253, find this query
PHP Code:
mysql_query("UPDATE `".$prefix."users` SET `dollar`='" . $newbalance . "' WHERE `username`='$loggedinname'");
and change it into this
PHP Code:
mysql_query("UPDATE `".$prefix."users` SET `dollar`='" . $newbalance . "' WHERE `username`='$owner'");
I think that should do the trick..