Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onJoin = function(id)
- local file = io.open("sys/lua/testio/"..player(id,"usgn")..".txt", "r")
- if not file then
- local file = io.output(io.open("sys/lua/testio/"..player(id,"usgn")..".txt", "w+"))
- file:write(player(id,"name"))
- msg2(id,"\169255000000Save file not found")
- file:flush()
- file:close()
- else
- msg2(id,"Save file found") -- gonna read the name of the player later
- file:flush()
- file:close()
- end
- end
- addhook("join","onJoin")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement