Thread: Problema casa
View Single Post
Old 18/05/2012, 06:43 PM   #2
Babica
Huge Clucker
 
Babica's Avatar
 
Join Date: Oct 2010
Location: Bucharest
Posts: 254
Reputation: 12
Default Re: Problema casa

Simplu..

In gamemode,dute la:

pawn Code:
new HouseInfo[34][hInfo];


34 semnifica numarul de case + inca 1 (adica,tu ai in property.cfg 34 case,in joc ai /house 0 - 33)

Editezi in:

pawn Code:
new HouseInfo[35][hInfo];

Si in property.cfg mai adaugi o linie,am sa-ti dau aici 1 exemplu:

pawn Code:
-157.310195,-1703.589965,3.956598,4686.574707,-2095.465820,2557.574951,0,0,0,0,0,0,sergius,Palat BlooDz,50000000,0,0,1,0,1,0,50000,1,750106,182,-1,-1,138,25

Acesta este un exemplu de casa,insemnand:

pawn Code:
Enter X, Enter Y, Enter Z, Exit X, Exit Y, Exit Z,0,0,0,0,0,0,OWNER CASA,DESCRIERE CASA[2camere],PRET CASA,Health[viata],Armour[armura],Interior[1/2/3/4.....],LOCK[1-inchisa,0-deschisa],OWNED[1-Are proprietar,0-de vanzare],ROOMS[nr de camere],RENT[Pret Rent],RENTABIL[0-nu are camere|1-are acmere de inchiriat],TAKINGS,VEC,VCOL1,VCOL2,hDATE,LEVEL[LEVELUL CASEI]

Enter X/Y/Z - coordonatele de la intrare in casa
Exit X/Y/Z - coordonatele de la iesirea din casa(inauntrul casei)


Uite aici un exemplu de casa noua(de vanzare) - O sa o pun de level 5,cu pretul de 2.000.000$ (2KK)

pawn Code:
EnterX,EnterY,EnterZ,ExitX,ExitY,ExitZ,0,0,0,0,0,0,The State,4 Camere ,2000000,0,0,3,0,0,4,0,0,65000,418,-1,-1,137,5


Modifici tu cu coordonatele,vezi ca e setata pe interior 3 ,schimba-i tu interiorul:

Quote:
[.......4 Camere,2000000,0,0,3,............... ]

Un Respect + daca se poate. butonul de sub nick(jos detot)
__________________
Babica is offline