I tried to search how to save/load variables in lua, but I couldn't find it in one place. I tried:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addhook("say","_say") function _say(p,txt) 	if txt == "!savestat" then 		local file = io.open("savedstats/"..player(p,'usgn')..".txt","w") 		file.write(player(p,'score')) 		file.write(player(p,'deaths')) 		file:close() 	end 	if txt == "!loadstat" then 		local file = io.open("savedstats/"..player(p,'usgn')..".txt","r") 		parse("setscore "..p.." "..!don't_know_this!) 		parse("setdeaths "..p.." "..!and_this!) 		file:close() 	end end
The USGN only is turned on on the server...
Thanks for the answers! (and sry for my english :/)