English Script request

No replies
Goto Page
To the start Previous 1 Next To the start
29.04.13 01:24:55 am
Up
Jhony
User
Offline Off
I want to put the names of people that I saved the menu, they even being offline, if I click, when they come appeared a warning message.

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
28
29
30
31
32
33
Folder = "sys/lua/Save/Names/"

function loc(location)
     local f=io.open(location)
     if f~=nil then
          io.close(f)
     end
     return f~=nil
end

addhook("serveraction","_action")
function _action(id,act)
if act == 1 then
     menu(id,"Menu, < name of the users salved in my [b]folder[/b] here > ")
     end
end

addhook("menu","_menu")
function _menu(id,t,b)
if t == "Menu" then
     if b == 1 then
     Warning = io.open("sys/lua/Save/Names/"..player(id,"name")..".txt", "a")
     Warning:write("\nWarning : 123 ")
     Warning:close()
     end
end

addhook("join","_join")
function _join(id)
if loc("sys/lua/Save/Names/"..player(id,"usgn")..".txt") then
     msg2(id,"Warning : < value here of the warning saved >
     end
end
To the start Previous 1 Next To the start