Forum




Toll Door
2 replies



1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("use","use_button") function use_button(id,event,data,x,y) 	local money = player(id,"money") 	if (x == 00 and y == 00) or (x == 00 and y == 00) then 		if money>29 then 			parse("trigger 'DoorName' ") 			parse("setmoney "..id.." "..(player(id,"money") - 30)) 		end 	end end
In
(x == 00 and y == 00)replace the
00with the coordinates where the Trigger_Use is.
In
money>29replace the
29with the amount of money you can't pay the toll with.
In
("trigger 'DoorName' ")replace the
'DoorName'with the Dyn_Wall's name.
In
("setmoney "..id.." "..(player(id,"money") - 30))replace the
- 30for the amount of money it is required to open the door.




