This mod will allow users to create there own credit card companys in which they can loan money to other users in-game.
This mod is also gonna be apart of my "Gang Mod" which will be called the Loan Shark business's instead of credit card companys. more details found here: http://criminalexistence.com/ceforums/i ... 125361#new
Teaser:
SQL
CREATE TABLE `userCCCompany` (
`comp_id` int(11) NOT NULL auto_increment,
`comp_user_id` int(11) NOT NULL default '0',
`comp_daily_interest` int(3) NOT NULL default '0',
`comp_available_funds` bigint(15) NOT NULL default '0',
`comp_loan_ammount` bigint(15) NOT NULL default '0',
`comp_name` varchar(255) NOT NULL default '',
`comp_clients` int(10) NOT NULL default '0',
PRIMARY KEY (`comp_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 ;
CREATE TABLE `userCCCompanyClients` (
`client_id` int(11) NOT NULL auto_increment,
`client_user_id` int(11) NOT NULL default '0',
`client_comp_id` int(3) NOT NULL default '0',
`client_ammount_loaned` bigint(15) NOT NULL default '0',
`client_ammount_owed` bigint(15) NOT NULL default '0',
`client_ammount_int` int(3) NOT NULL default '0',
PRIMARY KEY (`client_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 ;
add this line of code before ?> in "cron_day.php"
mysql_query("UPDATE userCCCompanyClients SET client_ammount_owed=(client_ammount_owed + (client_ammount_owed / client_ammount_int))") or die(mysql_error());
user_cc_companys.php file
http://www.teampo2.com/crime-web/user_cc_companys.zip
Be sure to add a link pointing to user_cc_companys.php in your menu somewhere.