[Include] [INC] tAxI's Housing System - Clone of PEN1 - house vehicles and MORE!!!
#1

[INC] tAxI's Housing System
This system is a fairly complicated housing system which saves permanently. As the title suggests It's a stand alone system which is designed to be a replica of the PEN1 housing system complete with house vehicles and some upgrades to the system. - BEFORE ANYONE SAYS THIS IS A COPY OF CODE GUESS AGAIN - THIS IS 100% MY CODE FROM SCRATCH and PEN1 can go stick it where the sun don't shine lol :P

HOUSING:

the house system allows you to place up to 250 houses on your server. each house is shown on the mini-map by a red or green house marker depending on whether or not it has been bought by anyone. The house configuration allows the server owner to specify individual house interiors and interior world ID's so loads of houses can have the same interior without a player being overlapped. Each house has a pickup at the entry point and when a player picks it up it will display a description of the house, house cost, house owner and whether or not the house has been locked. each house also has a Safe to store money in for a player that owns the house.

HOUSE VEHICLES:

Each house has one vehicle linked to it. When you buy the house you get a vehicle thrown in which you can secure against theft or use by other people. The vehicle is also under insurance and any mods you make at a mod garage are saved along with th house so that when the vehicle respawns it will respawn with any mods you applied to it previously - mods will only be saved if u own the house that the vehicle is linked to. The vehicle insurance system also ensures that if another player is driving your vehicle and it is destroyed then a certain amount of money is paid into your safe inside your house. The value of each car is variable with the number of mods you have added - each mod adds $100 value to your house vehicle with the base value of the vehicle being 1500 in value with no mods applied.

PLEASE NOTE:

Basically this is an unfinished script thus far, i was talking to a few people on msn and they wanted me to release it early to get a sort of sneak preview of it. the entire system runs off a backend of files for houses and users. I am integrating a logontohousesystem command so players can easilly link it into already existing user reg and login systems. As it is unfinished there are no useful commands yet but the house placement and display system are all up and running (hopefully) Basically i need people to test the code for me as i cannot compile anything on this cmp just now so im not sure if there are any obvious glaring problems. There are no management options for the houses yet but if you setup a file called tAxI_houses.cfg in your scriptfiles directory and apply the callbacks in the corrct places in your script it is possible to add houses. Each line of the file will represent one house and all of the variables should be set up in the following way:

Код:
cost,isowned?(0/1),"null",description,owner,pickupx,pickupy,pickupz,intposx,intposy,intposz,worldid,interiorid,locked?(0/1), 0,vehiclex,vehicley,vehiclez,vehicleza,0,vehiclemodel,locked?(0/1),0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,vehiclecolor1,vehiclecolor2,0
as i say this is still in development so please report all problems here and i will fix it - want to get a full running version by tmorrow

DOWNLOAD HERE -> http://sampstorage.coconia.net/housing%20system/

Reply
#2

looks nice.
I'm testing it.

Thanks
Reply
#3

Testing to ill let you know how it goes

UPDATE:
Код:
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(340) : error 001: expected token: ";", but found "new"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(348) : error 001: expected token: "}", but found ";"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(520) : error 017: undefined symbol "valid"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(521) : error 017: undefined symbol "x_ext"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(522) : error 017: undefined symbol "MAX_ACTIVE_HOUSE_ICONS"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(525) : error 017: undefined symbol "x_ext"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(526) : warning 215: expression has no effect
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(530) : error 017: undefined symbol "x_ext"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(531) : warning 215: expression has no effect
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(540) : error 017: undefined symbol "x_ext"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(543) : warning 215: expression has no effect
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(706 -- 707) : error 017: undefined symbol "Houseid"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(750) : error 017: undefined symbol "bhfile"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(755) : error 025: function heading differs from prototype
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(812) : error 001: expected token: ";", but found "new"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(819) : error 017: undefined symbol "Split_String"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(820) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(821) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(840) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(841) : warning 213: tag mismatch
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(841) : error 032: array index out of bounds (variable "PlInfo")
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(864) : warning 213: tag mismatch
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(873) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(874) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(898) : warning 235: public function lacks forward declaration (symbol "tAxI_OnPlayerStateChange")
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\tAxI_houses.inc(902) : error 017: undefined symbol "vehicleid"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\utils.inc(52) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\utils.inc(57) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\utils.inc(57) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\utils.inc(58) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\utils.inc(60) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Owner\My Documents\samp022server.win32\pawno\include\utils.inc(52) : warning 204: symbol is assigned a value that is never used: "name"
C:\Documents and Settings\Owner\My Documents\samp022server.win32\gamemodes\GCRP.pwn(739) : warning 201: redefinition of constant/macro (symbol "pInfo")
C:\Documents and Settings\Owner\My Documents\samp022server.win32\gamemodes\GCRP.pwn(836) : warning 201: redefinition of constant/macro (symbol "hInfo")
C:\Documents and Settings\Owner\My Documents\samp022server.win32\gamemodes\GCRP.pwn(1457) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Owner\My Documents\samp022server.win32\gamemodes\GCRP.pwn(1459) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Owner\My Documents\samp022server.win32\gamemodes\GCRP.pwn(1459) : error 035: argument type mismatch (argument 2)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#4

Whats the point of it? What are the upgrades? No levels for houses? No renting? This is nice but not replacement for PEN1 unfortunately
Reply
#5

meh its more of a replica to be honest at the moment - its not designed for use in PEN1 or GF and i refuse to make it so that it does because too many ppl try to just mod them. The Idea is to have a house system like the PEN1 which to be honest is pretty good but way to hard to edit and irritatingly coded in places lol...plus it doesn't stand alone - this one does plus this comes with default support for multiple world interiors which ppl seem to want these days

bottom line as i said is its unfinished - im adding numerous other crap like renting and robbing houses, probs interior pickups etc, the only problems with these systems is the variable management when the player is offline, ie each house line is gonna be huge inside the file and the house setup will take years but its really the simplest way to do it without making a whole filterscript, plus this has the added bonus of having my latest streamer technology built in to handle up to 250 minimap icons per player. As for other upgrades im probably be going to incorporate a fair number of my XVM systems into this and eventually menu base alot of things in it - this is really a work in progress like i said so bear with it :P u cant expect 100% perfection after only 6-7 hours of coding after all lol :P

Also considering i started this at 7pm last night isn't bad :P
Reply
#6

No doubt, I'm not criticizing, I was just hoping you'd release a standalone minimap streamer (the one thats currently out makes a lot of people timeout often on my server). I mean most people who use your scripts are not noob scripters because most noobs, even though what you do is easy to use, still can't figure it out. Would be nice if us more advanced scripters could use some of these to our liking, instead of having them be released with tons of feature we dont really have any use for.
Reply
#7

Finnaly some nice housing system
Reply
#8

well the system is ready for use in terms of minimap streaming - although this is the first release ever of the code for the new improved system so ill release it as a stand alone later probs tomorrow since i lose the use of internet at 5pm today :S

EDIT: fixed those bugs in the first release now and up for download

Reply
#9

Cool, i'll be using that
Reply
#10

ok when i finally got to a computer where i could compile i found over 50 errors and when fixed came out with a whole bunch more than before...blah blah blah

In Short the first release wasn't even close to coming close to a first draft of the final item.

*a few hours of swearing at the computer, drinking Irn-Bru (for all u non-barbarian non-Scottish people out there - Irn-Bru's the reason the coca-cola company cant sell enough coke in Scotland to make a good profit - HAHAHAHAHAHAHAHAHAHAHAHA), and number grinding etc etc etc pass...*

voilla we now have a fun filled working house system toolkit complete with putplayerinhouse and removeplayerfromhouse

u wanna know the funny thing...i got so involvd in working out the really complicated management of interiors, worlds, and variable data that I totally forgot to put in the ownership system as of yet.

good news is that i was smart and included a number useful commands to make putting a player in and out of a house dead easy, and not only that i have included a version of LVDM that i have very helpfully installed with my house system and 1 house (The very imaginatively named - The Nice Mansion) Its entry point lies at the side of the Ammunation accross from the 4 dragons casino. to enter simply go there and type /enterhouse and to exit type /exithouse

the house is currently sold to myself so make ur name tAxI to own the house and attached vehicle. check the code inside the modified lvdm script to see how to change stuff and what commands are available to you...to activate the automoding of your house vehicle type /automodon. when you spawn to get started simply type /start. this will spawn u round lv randomly and give u a car

as i say this is simply a very very very rough GM i coded from the LVDM to show u how to get syarted with this but the buyhouse and sellhouse processes will be coming soon tonight probs but this is to get u started

as i say redowload on the first page
Reply
#11

YEY!!!
Reply
#12

How to buy a house?
Reply
#13

lol you can't yet - still to code that part...basically this was never meant to be released - started coding it as a project for my brother actually but then decided he didnt want it - i mentioned that i had designed it to someone and they wantd it released so meh...here it is - dont expect hugely rapid progress on this one guys as its on the backburner just now - maybe the weekend before i do anything else to it :P
Reply
#14

How about that minimap icon streamer?
Reply
#15

yes i want to know how to add more than 32 icons lol this is the scriot?maybe in this script can learn me how to add ,let's try then
Reply
#16

plss another link
Reply
#17

abnother link cant to sombody give me?
Reply
#18

I probley sound like a noob, but what are the commands?
Reply
#19

i want to compile it but it say fatal error 100 cant read from file tAxI_houses but i have the include in the includes folder whats wrong ?
Reply
#20

Quote:
Originally Posted by GTAplay
i want to compile it but it say fatal error 100 cant read from file tAxI_houses but i have the include in the includes folder whats wrong ?
maybe you should put all maps an folders in and.
try this AT TOP!
#include <tAxI_houses>
Quote:

damn people be await he is still coding it aint finnsihed read!

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)