SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 14/12/2014, 12:17 PM   #1
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,696
Reputation: 484
Post JaKe's House System

JaKe's House System v1

Introduction

When i began scripting, i started off using GarHouse it was great and cool. It is rare to find GarHouse these days,
so i decided to make a similar script to GarHouse, Note i never copied any codes from GarHouse, just an idea and stuffs. JakHouse has been scripted a while ago back in October, it has been in my PC long time ago, lazy to release it, now here it is. JakHouse is currently used in my server and pOS (Creed's server - modification has been done.) The house system doesn't support House Vehicles unlike to the other house system, This is just one simple house system with house storage, house note and a basic house system features. Feel free to edit it, PM (Consult) me first before releasing it, Took me 3 days to script it and fix the bugs before finally taking it's final BETA test on pOS.

Notes

There are no bugs found during the testing at pOS however, If you found one please post it on this topic or PM me about it, So i can fix it. All the commands has been tested.

If the dialogs doesn't work properly (the /hmenu), Make sure the OnDialogResponse is on return 0 or return 1, try them if it worked. So far no conflictions found during the testing on pOS and on my local server.

Notes from the source code, Read them, I don't need to explain it since i already explain them on the comment (//).

Code:
// Configuartions

#define             MAX_HOUSE_NAME              256
#define             MAX_HOUSES                  350

#define             FREEZE_LOAD                 true
//If enable, Freezes you once entered the house, freezes you aswell once exited the house
//The freeze lifts off in 5 seconds, depends on FREEZE_TIME

#define             FREEZE_TIME                 5   //In seconds

#define             FORCE_SPAWNHOME             true
//Once the FORCE_SPAWNHOME is set to true, a timer will be run for 2.5 seconds when you spawn.
//Once that timer is called, Player will be forced spawn in his home if he has the spawn settings on.
//This define is created as the spawnhome feature we had doesn't work, as instead of spawning at home, it spawns at the gamemode's spawnpoint.

//You can change this [Just make sure you know what you are doing].

#define             SALE_PICKUP                 1273
#define             NOTSALE_PICKUP              1272
#define 			NOTSALE_ICON         		32
#define 			SALE_ICON            		31

#define             STREAM_DISTANCES            35.0
//Do not make it higher, or else it will conflict with the other stream objects etc.

Installing

Open the JakHouse zip file, Now open the folder called "JaKe's House System", Open up the filterscript there are 2 folders, compiled and source. If you want to edit the script, Open the source folder, there'll be a .pwn name jakhouse, Move it to your server's filterscript then recompile it. If you don't want to edit the script and decided to stick with the default way of my scripting, Choose the Compiled folder, there'll be a .amx name jakhouse, Move it to your server's filterscript. Moving on, Head to pawno/includes, Place all the includes to your server's pawno/includes folder. Head back to the first page, Click plugins, There'll be two folders on it, One is Linux (CentOS) and Windows OS, if you are using a Windows Operating System, choose the folder Windows OS, there'll be two files (sscanf.dll and streamer.dll), Import them to your server's plugins folder. If you are using a Linux Operating System, choose the folder Linux (CentOS), there'll be a plugin similar to mentioned above but with the format of .so, Import them to your plugins folder. Now go to your server's scriptfiles, Create a folder name JakHouse, inside the folder JakHouse create 2 folders name 'Houses' and 'User'.

Now on loading the filterscript, It's basically easy. Open server.cfg and add the following.

filterscript jakhouse
plugins sscanf streamer

(Add .so in the end on the plugins' name if you are using Linux)

Commands

/hcmds - For the house commands
/buyint - To buy interior (Works only when you choose interior on /hmenu)
/cancelint - To cancel the preview interior (Same like /buyint)
/buyhouse - /sellhouse (Buys/Sells house, Works only when in-range of the pickup)
/hlock - To lock the house (Works only when in-range of pickup/Inside)
/hmenu - Player's House Configuration Menu")
/henter - Enters inside the house (If not locked).
/hnote - Adds a note to your house.
/hcnote - Checks a note on someones house
For RCONs, /ahcmds for RCON House commands.

RCON Commands
/addhouse - Adds a house
/removehouse - Removes a house
/gotohouse - Teleports to the house
/hinteriors - Lists all the available interior
/hmove - Moves the specific houseid to your current location.
/asellhouse - Sells the house without doing the actual command.
/hnear - Lists all nearby houses within 35 meters.

Explanation

• Level - Score needed by the player to buy the house, for E.G. 999 level, You need 999 score and above to buy the house. (Cannot be edited, only at /addhouse and .ini editing)
• Price - Cash needed by the player to buy the house, for E.G. 999 cash, You need $999 cash (or above) to buy the house. (Can be edited throughout /hmenu, /addhouse and .ini editing)
• HouseID - HouseID assigned to the house for editing.
♦ Owner - Owner of the house (Default is None)
• Description - Name of the house (E.G. JaKe's house)

Screenshot


(For sale house)


(House bought by the Player JaKe)


(House menus)

NOTE: I am using a modified JakHouse so it's a little bit different from the released version, I am using a modified one (Implemented to my Gamemode)

Credits

JaKe for scripting JakHouse.
Zeex for zcmd, Y_Less for both foreach and sscanf, Incognito for streamer, DracoBlue for dini.

Creed, Anna and pOS staffs for testing JakHouse - They have the original copy.

Download

v1 - Pastebin (Manual Installation/Downloading)
v1 - Solidfiles (Manual Installation/Automatic Download incs.)
__________________



Last edited by JaKe Elite; 15/12/2014 at 08:47 AM.
JaKe Elite is offline   Reply With Quote
Old 14/12/2014, 12:20 PM   #2
MrCreed
Little Clucker
 
MrCreed's Avatar
 
Join Date: Mar 2013
Location: Georgia
Posts: 28
Reputation: 17
Default Re: JaKe's House System

Really Awesome house system, it works well in my server
You've done a good job Jake, thanks for everything.
__________________
Developer and Owner of The Matrix Stuntings Ordinary Official 2016-201*

Nickname: Captain
MrCreed is offline   Reply With Quote
Old 14/12/2014, 12:23 PM   #3
Glossy42O
High-roller
 
Join Date: Oct 2014
Location: in my house
Posts: 1,853
Reputation: 231
Default Re: JaKe's House System

Awesome work!
Glossy42O is offline   Reply With Quote
Old 14/12/2014, 12:33 PM   #4
M4D
Huge Clucker
 
M4D's Avatar
 
Join Date: Oct 2014
Location: Iran
Posts: 280
Reputation: 44
Default Re: JaKe's House System

Nice job bro
Keep it up
Try to update it to Y_Ini or MySQL next version (if you want update it)
+rep
__________________
Work Hard In Silence. Let Your Seuccess Make The Noise
M4D is offline   Reply With Quote
Old 14/12/2014, 12:50 PM   #5
Ox1gEN
Huge Clucker
 
Ox1gEN's Avatar
 
Join Date: Aug 2014
Location: New Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); printf("%f%f%f", x, y, z);
Posts: 365
Reputation: 29
Default Re: JaKe's House System

Very /VERY/ talented scripter.
I enjoy reading your code.
Nice job.
Ox1gEN is offline   Reply With Quote
Old 14/12/2014, 12:55 PM   #6
Arastair
Gangsta
 
Join Date: Jun 2014
Posts: 832
Reputation: 49
Default Re: JaKe's House System

Good job Jake
Arastair is offline   Reply With Quote
Old 14/12/2014, 01:03 PM   #7
JeaSon
Gangsta
 
JeaSon's Avatar
 
Join Date: Aug 2013
Location: Future
Posts: 564
Reputation: 79
Default Re: JaKe's House System

really nice work jake
__________________
Server:23.94.215.9:7777
Social Media:
Other:
My Works
JeaSon is offline   Reply With Quote
Old 14/12/2014, 01:05 PM   #8
xStunt
Banned
 
Join Date: Feb 2014
Posts: 78
Reputation: 40
Default Re: JaKe's House System

Nice work Jake!


Do you remember me? it's me Apex
xStunt is offline   Reply With Quote
Old 14/12/2014, 07:44 PM   #9
iAnonymous
Gangsta
 
iAnonymous's Avatar
 
Join Date: Jun 2013
Location: Kingdom of Saudi Arabia
Posts: 800
Reputation: 154
Default Re: JaKe's House System

Good Job son.

Dini, really?
__________________
Opening a community? Contact me to ask any sort of questions. I'm experienced with handling communities having over 100+ players in their servers all the time. I need no cash, no admin status or anything else. Helping is all I wanna do for now. I can help with dedicated servers and VPSs, Hosts, DDOS protections, Forums.


Experienced EX-Administrator and EX-Management team member of Limitless Gaming Community [www.Lgsamp.com]
[2012-2015]
P.S: I can help you not host for you
iAnonymous is offline   Reply With Quote
Old 14/12/2014, 08:04 PM   #10
Alex Magaña
High-roller
 
Alex Magaña's Avatar
 
Join Date: Oct 2012
Location: 𝕭𝖗𝖔𝖙𝖍𝖊𝖗𝖍𝖔𝖔𝖉
Posts: 2,446
Reputation: 211
Default Re: JaKe's House System

Good job Jake keep it up!
__________________
Alex Magaña is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] v1.6e || Simple House System || 1 line = 1 house Antironix Filterscripts 1307 28/04/2016 01:22 PM
Gagi's House System's House cords problem Wahaj Scripting Help 2 03/07/2014 03:15 PM
House system , save house create Cerealguy Scripting Help 1 27/10/2013 11:34 PM
GF script & house system and house cars Sexserghy Help Archive 4 27/03/2011 10:47 PM
House System is Reading 22 House] MahmutBey Help Archive 2 01/05/2010 11:52 AM


All times are GMT. The time now is 04:33 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.