Forum

> > CS2D > Scripts > Script request
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script request

No replies
To the start Previous 1 Next To the start

old Script request

Jhony
User Off Offline

Quote
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.

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
Log in to reply Scripts overviewCS2D overviewForums overview