[FilterScript] jHouse - a MySQL based, user friendly housing system!
#1

jHouse
Instructions
Open up the script and READ the comments at the top. Make sure you follow them if they have instructions.
Compile the script.
Put the script in your filterscripts folder.
Add it to server.cfg.
Run!

Add-ons
You will need:
zcmd (put it in pawno/includes)
G-sTyLeZzZ's MySQL Plugin (Instructions in the thread)

Main Commands
/buyhouse - buys a house
/enterhouse - enters a house
/exithouse - exits a house
/sellhouse - sells a house

Selling and Buying
To buy a house, get to the checkpoint of the house you want, and type /buyhouse. You must have the right amount of money, and you can only own one house. To sell a house, get to the checkpoint, on the outside of the house, and type /sellhouse. You will get the full amount of money back.

House Creation
(I recommend using an Interior Explorer for this)
Log into RCON.
Go to the spot you want the entrance pickup to be, and type /createhouse exterior.
Now go to the place you want the player to be teleported to when they enter, and type /createhouse interior.
Type /createhouse finish and you will be teleported to the house's exterior.
Walk over the pickup, and if you are still logged onto RCON then you will get a message saying the house's ID.
Type /setprice ID PRICE with the ID of the house and the PRICE you want it to be.
That's it, your house is created and someone can buy it!
(P.s. setting the house's price to -1 makes it unavailable to buy, setting it to 0 makes it free!)

Locks
If you own the house, type /lockhouse to lock it. Simple.
Unlike other house systems, you can lock the house from inside or out, you can lock people inside and you can lock yourself inside to hide.
The house's lock can also be permanently broken (until it's fixed!)
To break a lock (you can break your own lock, and you can break the lock from indoors if you get locked in) go to the door and do /breaklock. You will be frozen and a timer will appear. If you wish to stop breaking in, do /stopbreaking. When the lock is broken, the house will be unlocked and the house will be unable to be locked again. (P.s. it's easier to break a door from outside than inside, and it's easier to break a locked door than an unlocked one.)
To fix the lock, type /fixlock and it will be fixed, for a small fee.
To upgrade your lock and make it harder for attackers, type /upgradelock, and it will be upgraded, for a slightly larger fee.

Safes and Lockers
When you own a house, you get access to a gun safe and a cash locker.
To access these, go into the house and type either /housesafe or /houselocker - the rest will become clear.

Bugs/requests
I will fix any bugs (or atleast attempt) and will take all requests/suggestions into consideration. Just post any suggestions or requests on the thread!

Downloads
.pwn
.amx
Package (both .pwn and .amx, and zcmd include)

Last but not least...
Enjoy the script! If you do choose to use it on your server, I ask that out of respect you give me credits, but if you choose not to then there's not much I can do.
- jameskmonger
Reply
#2

Nice, this could be useful!

http://www.englishfreeroam.co.cc/other/JHouse.zip
Reply
#3

Thanks! I will add that link when I am off my phone and on my pc :P

Could you have a test of it, maybe with a few friends, and do some bug finding? Don't worry if you can't though.
Reply
#4

Good job Dude
Reply
#5

Thanks!
Could I ask that anyone who downloads the script posts any bugs they find, and anyone who looks at this thread posts any suggestions.
Reply
#6

awesome, might test it out later ill let you know how that goes
Reply
#7

Thanks - I've done a lot of testing to make sure the features WORK, but I'm sure there's a bug or two
Reply
#8

Bump.
Reply
#9

Uhh would be possible to get the database thingy to just upload into database beside doing it by ur own, its kinda confusing for players that are new to mysql :\

EDIT: Dont mind it I got it working.

However Im confused on a process of making houses "Now go to the place you want the player to be teleported to when they enter, and type /createhouse interior." what do you mean by that?
Reply
#10

Quote:
Originally Posted by Tachibana
Посмотреть сообщение
However Im confused on a process of making houses "Now go to the place you want the player to be teleported to when they enter, and type /createhouse interior." what do you mean by that?
/createhouse [Interior ID]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)