I made a menu script which acts like ATM machine. Could you made me a function that saves local money (CS2D money) onto output file like ATM.txt. ATM only works for registered player.
Source code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function use(id,x,y) local x,y=player(id,"tilex"),player(id,"tiley") 	if x==28 and y==61 then 		menu(id,"ATM,Deposit,Withdraw,Balance") 	end end function menu(id,title,button) 	if title=="ATM" then 		if button==1 then 			menu(id,"Deposit,10,50,100") 		elseif button==2 then 			menu(id,"Withdraw,10,50,100") 		elseif button==3 then 			-- this line will shows player balance message 			--unlogged in player can't access this 		end 	end 	if title=="Deposit" then 		-- this line and next is up to solver 		-- unlogged in player can't save money 	end 	if title=="Withdraw" then 		-- this line and next is up to solver	 		-- unlogged in player can't save money 	end end
11 December 2013: I have to overwrite this post because I can't create a new post, I don't know why.
edited 1×, last 11.12.13 07:34:37 am