Jump to content
MakeWebGames

[MMCODE V2] Set Sell Price of houses after they are Purchased...


Recommended Posts

Posted

if this has already been done then ya can delete me post if not then this mod will allow STAFF to set a sell price for each house they create.

just add this SQL to the remaining houses SQLS

ALTER TABLE houses ADD hSELLPRICE BIGINT(90) NOT NULL;

Overwrite you old staff_houses.php with this one..

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now in your estate.php look for

$db->query("UPDATE users SET money=money+{$np['hPRICE']},will=150,maxwill=150 WHERE userid=$userid",$c);

and overwrite with.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Dont forget to add a new table name called SELL HOUSE. and overwrite this

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

with this

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And your done...

Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

+1 very helpful. Like in real life, you could set the buy price to say 10,000 and the sell price to 5,000 which would keep the economy fine.

Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

How would I get it into this:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

That messes up the sale, you get 0 back.

I have no clue where to put the

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Any help?

Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

 

How would I get it into this:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

That messes up the sale, you get 0 back.

I have no clue where to put the

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Any help?

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Try that, not tested.

Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

You sold your Motel Room for 0 and went back to your Shed

Sold for the sale price this time. Still says 0 though

Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Should be... (if i saw it right)

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

Cheers guys for the updates :) hope it wasnt my script working failing me again lol

  • 3 weeks later...
Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

why not just set the percent say you lose 20% of orig house price

Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

 

why not just set the percent say you lose 20% of orig house price

I've already done that :P lol 1 little thing and done :).. also made a thing so you can get less or more money for you house at random of the house price.

  • 2 months later...
Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

Destroyer.. all mods for MCC are useless thats why we create them, in the hope some people may see through the Uslessness of them and try making something from it :)

Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

 

Destroyer.. all mods for MCC are useless thats why we create them, in the hope some people may see through the Uslessness of them and try making something from it :)

Yes but Richard did he made a much better use of this mod than this :-)

  • 3 weeks later...
Posted

Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...

for those who are seeing the message that their houses are being sold for $0

then alter this

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

to this

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

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