Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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.

Posted
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..

 

Posted

@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!

Posted
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.
Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...