please comment if you know
Forum
CS2D Maps/Editor Help me with doorsHelp me with doors
10 replies 1
please comment if you know
If only I knew lua..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
BUTTONX=1 --write in the button's X position in tiles BUTTONY=1 --write in the button's Y position in tiles COST=1000 --write in the amount of money to open the door DOORNAME="door1" --write in the entity's name IN QUOTES (" - quote) addhook("use","buydoor") function buydoor(id) 	if (player(id,"tilex")==BUTTONX and player(id,"tiley")==BUTTONY and player(id,"money")>=COST) then 		parse("trigger "..DOORNAME) 		parse("setmoney "..id.." "..(player(id,"money")-COST)) 	else 		msg2(id,"You don't have enough money!") 	end end
Seriously, you ahve to be pretty dumb not to see how it works.
look at THIS
and make it similar
zwinky207 has written
Ooh now i understand THX ALOT!! everybody special you Qrchack and EngiN33R!!!
No problem
1