Kieran-R Posted November 22, 2010 Posted November 22, 2010 Hello. I just finished making a new mod that will hopefully encourage your users to donate more, and will bring a bit more cash into your game economy. Its a "Drug Dealers" mod where users train, then collect from there drug dealers. Non donators get 3 daily collections, while donators get 5. (easily changed) It costs users energy to train drug dealers, while it will cost them max brave to collect from them. So here it is: SQLS: [mysql]ALTER TABLE `users` ADD `drugdealers` INT( 11 ) NOT NULL DEFAULT '0', ADD `maxdealers` INT( 11 ) NOT NULL DEFAULT '100', ADD `ddcollections` INT( 11 ) NOT NULL DEFAULT '0'[/mysql], [mysql]ALTER TABLE `houses` ADD `maxdealers` INT( 11 ) NOT NULL DEFAULT '0'[/mysql] drugdealers.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. open estate.php, and find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add to cron_day.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thats it all! (I think) If you have any bugs with it, post them and ill fix them if I can. Quote
Jordan Palmer Posted November 22, 2010 Posted November 22, 2010 I must say seems the tips in other topics is paying off well Very nice addition :) Quote
blackcloudmafia Posted November 23, 2010 Posted November 23, 2010 how can i change the box color to a darker color like black with red text nice mod Quote
Jaaaacccckkk Posted November 23, 2010 Posted November 23, 2010 You should maybes take a look at learning css. w3schools.com is a good place, i suggest you start learning more if you can't adjust the look! Quote
Eurogangster Posted November 24, 2010 Posted November 24, 2010 I think there is a bug. When someone reached the maximum drug dealers if he click Collect he shows the the message -> Sorry you have reached the maximum ....... But he takes the collect gains. I believe something going wrong We have made one 2 modifications in the forms we did them black color i add the code below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Jordan Palmer Posted November 24, 2010 Posted November 24, 2010 how can i change the box color to a darker color like black with red text nice mod If I am right your asking how to change the submit button, Well simply change the 'black' bellow in the code :) STYLE='background-color: black; @Jaaaack; If your not willing to help people why even reply? You could of pointed it out to him and supplied a link as to where he can look it up. I'm sure you asked these kind of questions once.. Quote
Jaaaacccckkk Posted November 24, 2010 Posted November 24, 2010 @Jordan Palmer If you had of read my post, i did supply a link and i'm not being funny here; but it's better than not posting anything! I did ask these kind of questions before, but it's better to learn, rather than be told the exact answer! Quote
Kieran-R Posted November 24, 2010 Author Posted November 24, 2010 I think there is a bug. When someone reached the maximum drug dealers if he click Collect he shows the the message -> Sorry you have reached the maximum ....... But he takes the collect gains. I believe something going wrong We have made one 2 modifications in the forms we did them black color i add the code below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I dont understand where your bug is coming from. As you can see in my code, when the user has max drug dealers and they try to collect, there is no query that gives them the collected money. Quote
blackcloudmafia Posted November 24, 2010 Posted November 24, 2010 Thanks Jordan thats what i was looking for all the text color i knew how to change that i just got stumped for a min on the sumit button :thumbsup: Quote
Eurogangster Posted November 24, 2010 Posted November 24, 2010 I think there is a bug. When someone reached the maximum drug dealers if he click Collect he shows the the message -> Sorry you have reached the maximum ....... But he takes the collect gains. I believe something going wrong We have made one 2 modifications in the forms we did them black color i add the code below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I dont understand where your bug is coming from. As you can see in my code, when the user has max drug dealers and they try to collect, there is no query that gives them the collected money. I mean that either we use $_POST['train'] either $_POST['collect'] it gives us the message that we have completed the maximum drug dealers When someone use $+POST['collect'] as i see in your code he shouldnt get this message Quote
Kieran-R Posted November 24, 2010 Author Posted November 24, 2010 Hmm I see. I have looked through the code, and this probably shouldn't be happening? Mabe one of the more experienced coders can review it? :) Quote
Danny696 Posted November 25, 2010 Posted November 25, 2010 Who ever posted that code, post up the full code please :) Quote
Eurogangster Posted November 25, 2010 Posted November 25, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.