SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/12/2014, 01:57 AM   #1
BornHuman
Huge Clucker
 
BornHuman's Avatar
 
Join Date: Sep 2013
Location: 127.0.0.1
Posts: 360
Reputation: 33
Default Jason's Dynamic Housing System



Jason's Dynamic Housing System v1.0.0



Summary
Jason's Dynamic House System is a SA:MP inspired script composed from scratch and only the most efficiently tested & clean scripting for the right audience. This housing system is composed of several administrator and player commands that is easily customizeable, short, simple, and of course sweet. With this filterscript only being 573 lines long, it is easy to take code for your script as you choose. As this filterscript continues to be developed, more and more customization features will come, along with easy to use scripting tools for understanding just how it works.


Commands
[rcon] /hcreate - Creates a house with the following parameters: exterior, interior, complete.
[rcon] /hedit - Edits an existing house with the following parameters: exterior, interior, sell, price.
[rcon] /gotohouse - Teleports the player to the exterior of a specified house id.
[rcon] /goinhouse - Teleports the player to the interior of a specified house id.
[rcon] /gotoco - Teleports the player to specified coordinates with the following parameters: x, y, z, interior id.

/buyhouse - Purchases the closest house for the player that executes the command.
/lockhouse - Locks a house if the player owns it, and is near the exterior/interior.
/enterhouse - Teleports the player to the interior of the house.
/exithouse - Teleports the player to the exterior of the house.


Features
Efficient saving system using dini.inc
Dynamic Creation of Houses
Dynamic Editing of Houses
Dynamic editing features include price, exterior, interior, owner, etc.
5 Administrator (rcon) commands
4 Player commands
Easy to read coding
Easy to learn coding
Easy to copy coding
Easy to change coding



Installation
Note: You will need a ZIP program.
Upon downloading the package from the link at the bottom of the page, you will notice several folders in the ZIP file. These folders mark where the contents should go. Inside the filterscripts folder, you will see jdhs.pwn and jdhs.amx. These files go into your server's filterscript folder. Inside pawno, you will see includes. Inside includes, you will see zcmd, sscanf2, streamer, and dini. These files also go into your pawno -> includes folder. Next you should see plugins. Inside plugins, you should see sscanf & streamer. Drag these into your plugins folder. Lastly you should see sscanf. Drag that folder into your server's folder. Then open up your server.cfg, and on the plugins line (if there is not already one, type 'plugins' (without the ') under filterscripts. Then, after the word plugins, type streamer sscanf. So your line should look similar to this: plugins streamer sscanf Save your server.cfg. Go into your scriptfiles folder, and create a new folder called 'Houses'. Reboot your server, and log in game. Log into your server's rcon with /rcon login <password (which is found & changed in your server.cfg)>, and type /rcon loadfs jdhs. If it says the load was successful, you're ready to begin. If it failed, please see the F.A.Q section. If it continues to fail, please PM me on the forums and I will help you troubleshoot.



Pictures
Picture 1


Frequently Asked Questions

Q: When I add a house, it crashes the server
A: You need to create a 'Houses' folder inside your scriptfiles. Do this, restart your server, and then try adding another house.

Q: No commands are working
A: You probably don't have an updated version of one of the plugins and/or includes. Use the ones that are packaged in the .zip file. Or, you did not load the filterscript. To load the filterscript, log into your rcon and type /rcon loadfs jdhs

Q: Load failed
A: If the load failed, one or two things may be happening. One, you didn't add the necessary files into your samp server as stated above in Installation. Two, you do not have the .amx in your filterscripts folder. This can be fixed by simply adding the needed files as stated in the Installatin section, or by re-compiling the .amx in your pawno.



Credits
BornHuman (Jason) for Jason's Dynamic Housing System
Y_Less for sscanf & streamer
DracoBlue for dini
Zeex for zcmd







Download v1.0.0
File Size: 194.51KB || Click Below to Download || Pastebin: http://pastebin.com/sRhJCguq





Please leave feedback as well as bug reports in my inbox and/or down below! Thank you so much for choosing J.D.H.S
__________________


_________________________________________________

Retired NGRP Director of Development
_________________________________________________


Projects:
Peak Gaming Roleplay
Vortex Roleplay 1 [EDIT]
Jason's Dynamic Housing System


Last edited by BornHuman; 23/12/2014 at 03:19 AM.
BornHuman is online now   Reply With Quote
Old 23/12/2014, 02:00 AM   #2
MohanedZzZ
Huge Clucker
 
Join Date: Nov 2013
Location: Scripting Help
Posts: 256
Reputation: 103
Default Re: Jason's Dynamic Housing System

Nice work you deserve a reputation
__________________
42O Crew || Mistral42O

Want Anti s0biet script? PM ME
MohanedZzZ is offline   Reply With Quote
Old 23/12/2014, 02:38 AM   #3
BornHuman
Huge Clucker
 
BornHuman's Avatar
 
Join Date: Sep 2013
Location: 127.0.0.1
Posts: 360
Reputation: 33
Default Re: Jason's Dynamic Housing System

Quote:
Originally Posted by MohanedZzZ View Post
Nice work you deserve a reputation
Thanks, means a lot.
__________________


_________________________________________________

Retired NGRP Director of Development
_________________________________________________


Projects:
Peak Gaming Roleplay
Vortex Roleplay 1 [EDIT]
Jason's Dynamic Housing System

BornHuman is online now   Reply With Quote
Old 23/12/2014, 02:41 AM   #4
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,493
Reputation: 439
Default Re: Jason's Dynamic Housing System

Seems alright.

Woah; why do you make your strings so big? There's nothing wrong; but it really isn't good scripting practice when you start making long, complex scripts. Try making your strings a few cells shorter in the future!
Abagail is offline   Reply With Quote
Old 23/12/2014, 02:52 AM   #5
BornHuman
Huge Clucker
 
BornHuman's Avatar
 
Join Date: Sep 2013
Location: 127.0.0.1
Posts: 360
Reputation: 33
Default Re: Jason's Dynamic Housing System

****
Quote:
Originally Posted by Abagail View Post
There's nothing wrong
__________________


_________________________________________________

Retired NGRP Director of Development
_________________________________________________


Projects:
Peak Gaming Roleplay
Vortex Roleplay 1 [EDIT]
Jason's Dynamic Housing System

BornHuman is online now   Reply With Quote
Old 23/12/2014, 02:57 AM   #6
Ahammad
Huge Clucker
 
Ahammad's Avatar
 
Join Date: Oct 2014
Location: India
Posts: 330
Reputation: 53
Default Re: Jason's Dynamic Housing System

Nice work
Ahammad is offline   Reply With Quote
Old 23/12/2014, 03:27 AM   #7
xXRealLegitXx
Big Clucker
 
Join Date: Sep 2012
Posts: 154
Reputation: 1
Default Re: Jason's Dynamic Housing System

Dude fucking sweet!
xXRealLegitXx is offline   Reply With Quote
Old 23/12/2014, 04:09 AM   #8
Min99
Big Clucker
 
Min99's Avatar
 
Join Date: Aug 2014
Location: Your girlfriend's house
Posts: 101
Reputation: 7
Default Re: Jason's Dynamic Housing System

Wow Nice work !
__________________
SAMP | ******* | ******** | Steam | Get Free Money Easily
----------------------------
Searching for admin/helper for your community/server ?
I have experience being admin/helper.
You can contact me via pm.


Min99 is offline   Reply With Quote
Old 23/12/2014, 04:20 AM   #9
NNek
Huge Clucker
 
NNek's Avatar
 
Join Date: Jun 2014
Location: Candy KingDom
Posts: 234
Reputation: 15
Default Re: Jason's Dynamic Housing System

Nice housing system!!
__________________
Need This Hit Me Up To Have This

NNek is offline   Reply With Quote
Old 23/12/2014, 09:27 AM   #10
SpikY_
High-roller
 
SpikY_'s Avatar
 
Join Date: Jul 2014
Posts: 1,263
Reputation: 128
Default Re: Jason's Dynamic Housing System

GooD Work!
__________________
-
SpikY_ 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] Dynamic Housing [Scratch] JonathanW Filterscripts 30 23/03/2015 07:11 PM
Help with my dynamic housing! RyanPetersons Scripting Help 0 20/09/2012 11:37 AM
Dynamic Housing system using djSon Skylar Paul Help Archive 1 21/05/2011 01:29 PM
SZR:GTA Roleplay housing / Dynamic Housing [Request] Oi! Help Archive 2 08/07/2009 09:13 AM
Help me with my Dynamic Housing System Sean12 Help Archive 2 30/04/2009 08:26 AM


All times are GMT. The time now is 02:57 PM.


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