Forum

> > CS2D > Scripts > houses
Forums overviewCS2D overview Scripts overviewLog in to reply

English houses

5 replies
To the start Previous 1 Next To the start

old houses

Agustindz23
User Off Offline

Quote
hello all
my problem is the house
i'm use the command !house buy. all is normal, but when the door does not open everything works fine [money if used] the problem is the door
if I can help.
thanks

CODE
1
2
3
4
{pos1 = {13,1}, pos2 = {16,3}, ent = {14,5}, door = {14,4}, price =2500, owner = nil, endtime = nil, allow = {11471}, doors = {[1] = {11471}}},
	{pos1 = {16,1}, pos2 = {20,3}, ent = {18,5}, door = {18,4}, price = 2500, owner = nil, endtime = nil, allow = {11471}, doors = {[1] = {11471}}},
	{pos1 = {20,1}, pos2 = {24,3}, ent = {22,5}, door = {22,4}, price = 2500, owner = nil, endtime = nil, allow = {11471}, doors = {[1] = {11471}}},
	{pos1 = {24,1}, pos2 = {29,3}, ent = {26,5}, door = {26,4}, price = 3000, owner = nil, endtime = nil, allow = {11471}, doors = {[1] = {11471}}},

old Re: houses

Rainoth
Moderator Off Offline

Quote
That's not the whole code.
I don't know the script but you should search for hook that managed door opening (probably "use") and look up all the checks if the person bought a house and if he is eligible to access the house.

EDIT : If you really think that the problem is in the code you posted, the problem might be the extra comma "," at the end.

old Re: houses

Promaster
User Off Offline

Quote
You need to name the door to [number]_1.
Exemple
1_1
2_1
3_1
4_1
5_1
6_1
7_1
8_1

old Re: houses

eduxd0707
BANNED Off Offline

Quote
this problem are all with the same number
change the drywall on the map editor with a number different from each other
and the number of drywall that have it do you use the port you want there in the script
but if you have the same number will fail
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview