Proprety.cfg :-??
#3

Yes. Here is an example for a house:


Code:
794.992309,1687.345336,5.281300,2261.300048,-1135.900024,1050.599975,0,0,0,0,0,0,The State,3 Room Luxury,2000000,0,0,10,1,0,3,500,1,9999,418,-1,-1,600,5
So, in there what do we have, first of all:

794.992309 - coordinate of house entrance X
1687.345336 - coordinate of house entrance Y
5.281300 - coordinate of house entrance Z

then we have:

2261.300048 - coordinate of INSIDE THE INTERIOR X
-1135.900024 - coordinate of INSIDE THE INTERIOR Y
1050.599975 - coordinate of INSIDE THE INTERIOR Z

then, you have six zeros like this: 0,0,0,0,0,0

then you have the NAME of the owner of the house: The State

then you have the DESCRIPTION of the house: 3 Room Luxury

then you have the PRICE of the house: 2 000 000 dollars

then you have a zero (zero = no, on‌e = yes) for the HEALTH upgrade (you know, when you can type /heal in your house): 0

then you have another zero for the ARMOR upgrade (also when you do /heal): 0

then you have the INTERIOR ID of the interior for your house, in this case, ten: 10

then you have a zero or a one for DOOR LOCKED/UNLOCKED: 1 (one because it is locked until someone buys it)

then you have a zero or a one for house is OWNED/BUYABLE: 0 (zero because house is buyable)

then you have the number of rooms in your house, in this case three rooms (because 3 room luxury): 3 sidenote: this is used for people who want to rent rooms in your house. If you have 3 rooms available that means 3 people can rent at your house, after 3 people have done /rentroom, nobody can rent anymore.

Next is the RENT FEE (how much does it cost to rent this house): 500 dollars (paid to you every payday in your house account)

Next is if the house can be RENTED (1) or NOT (0): 1 (because once this house is bought by a player, other players can rent rooms)

Next is how much money you have in the HOUSE ACCOUNT: 9999 dollars (set this to 0 or whatever you want)

After that is the HOUSECAR MODELID: 418 (the van thats there by default)

Then comes HOUSECAR FIRST COLOR: -1 (-1 = random)

Then HOUSECAR SECOND COLOR: -1

Then the TIME PASSED SINCE THE OWNER LAST LOGGED IN THE SERVER: 600 (this does not matter, set it to anything u want)

And finally, the LEVEL OF THE HOUSE: level 5.

I hope that helps you understand better Enjoy

Adding houses tutorial

ADDING HOUSES FULL TUTORIAL:

Go in front of the entrance of the house you want to make, and type /save houseentrance

Then take a normal sized car, park it somewhere close, and save the position also (for the housecar).

Then go into your property.cfg and make a new line which will start by the first 3 variable of the position of the entrance:

entranceX,entranceY,entranceZ,

Then you follow by the position inside the interior (interior IDs+coordinates here: https://sampwiki.blast.hk/index.php/InteriorIDs)

which will give you:

entranceX, entranceY,entranceZ,interiorX,interiorY,interiorZ,

Then you add 6 zeros:

entranceX, entranceY,entranceZ,interiorX,interiorY,interiorZ, 0,0,0,0,0,0,

Then you add the name of owner (i just use The State as default, when you buy the house ingame the name will change) followed by a short description of the house and its price:

entranceX, entranceY,entranceZ,interiorX,interiorY,interiorZ, 0,0,0,0,0,0,NameOfOwner,DescriptionOfHouse,Price,

Then you add two zeros (health/armor upgrades which you will buy ingame) followed by the interior ID of the house:

entranceX, entranceY,entranceZ,interiorX,interiorY,interiorZ, 0,0,0,0,0,0,NameOfOwner,DescriptionOfHouse,Price,h ealthupgrade,armorupgrade,interiorID,

After that: interiorID, locked(1)/unlocked(0), owned(1)/notowned(0), numberofrooms, rentfee, rentable(1) or not (0), housebank, housecar modelID, carcolor1, carcolor2, timesincelastlogin, level

Then, once your ligne in property.cfg is done, open your script and look for this line:
Quote
new HouseInfo[34][hInfo];

Change the "34" to a "35" (if you add only 1 house).

Then look for

I hope you understand this:P
Reply


Messages In This Thread
Proprety.cfg :-?? - by Kirchhoff - 28.05.2009, 04:26
Re: Proprety.cfg :-?? - by OmeRinG - 28.05.2009, 06:45
Re: Proprety.cfg :-?? - by Derksen123 - 28.05.2009, 08:45
Re: Proprety.cfg :-?? - by miokie - 28.05.2009, 10:38
Re: Proprety.cfg :-?? - by Kirchhoff - 31.05.2009, 06:51
Re: Proprety.cfg :-?? - by Kirchhoff - 31.05.2009, 06:56
Re: Proprety.cfg :-?? - by Andom - 31.05.2009, 07:13
Re: Proprety.cfg :-?? - by Kirchhoff - 31.05.2009, 08:19
Re: Proprety.cfg :-?? - by russiany - 31.05.2009, 08:46
Re: Proprety.cfg :-?? - by Kirchhoff - 31.05.2009, 09:25

Forum Jump:


Users browsing this thread: 2 Guest(s)