Forum

> > CS2D > Scripts > houses
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch houses

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt houses

Agustindz23
User Off Offline

Zitieren
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}}},

alt Re: houses

Rainoth
Moderator Off Offline

Zitieren
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.

alt Re: houses

Promaster
User Off Offline

Zitieren
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

alt Re: houses

eduxd0707
BANNED Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht