Proprety.cfg :-??
#1

pawn Код:
3 Room Luxury,2000000,0,0,10,1,0,0,1000,0,1337,516,-1,-1,364,5,111
0.000000,-1277.998657,26.179687,2261.300048,-1135.900024,1050.599975,0,0,0,0,0,0,GOD,
So this is 1 line from my GM i am using in property.cfg this is a 3 room house can you explain me a bit ? so i can add more houses ? please ? cause idk how and i really want to find out tks !
Reply
#2

We don't even know on what filterscript/gamemode you use this, and don't even tell us. just ask in it's thread...
Reply
#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
#4

You just copied that Tutoiral of [M2S]Moe's thread, Atleast give credits.

And ask in the Pen script thread.
Reply
#5

Hey man but how can i find the interior coordonates cause idk how ... when i tipe /enter i enter on a interior what coordonates ?! i put
Reply
#6

so i have this from interios on wiki samp : [pawn] Madd Doggs Mansion 5 1299.14 -794.77 1084.00 The large mansion you get at the end of Las Venturas Storyline Section. Also part of mission "Madd Doggs Rhymes" Mulholland, Los Santos [pawn] what part should i take ? that "5" ? or what ? so i can add the interior ?!
Reply
#7

http://forum.sa-mp.com/index.php?topic=67900.0

For Gods Sake! please SA:MP DESTROY Godfather!!
Reply
#8

This didnt helped me man... respond at those 2 questions and btw if i add 1 more house i must edit something in gamemode its something for exemple : House(34) (there are 34 houses) and if i add 1 more house i must edit there House (35) ! Where is that ? please
Reply
#9

Quote:
Originally Posted by Miokie*
You just copied that Tutoiral of [M2S]Moe's thread, Atleast give credits.

And ask in the Pen script thread.
not PEN , is GodFather
Reply
#10

Lol this gamemode is not downloadable ! a friend of my made it but he left in other country ! ... i dont use a gamemode that is downloadable !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)