1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("join","_load_data") function _load_data() owner = {0} admin = {0} vip = {0} dude = {0} local file = io.open("sys/lua/rp/1.txt") local string1, string2, string3, string4 = file:read("","*n","*n","*n") 	owner = string1 	admin = string2 	vip = string3 	dude = string4 end
EDIT: there is code where i using variables "owner","admin","vip","dude":
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
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
pl = {} addhook("join","_join") function _join(id) pl[id] = {} pl[id].usgn = player(id,"usgn") 	for _, usgn in ipairs(owner) do 		if player(id,"usgn")==usgn then 			msg2(id,"©000255000You are the OWNER!") 		end 	end 	for _, usgn in ipairs(admin) do 		if player(id,"usgn")==usgn then 			msg2(id,"©000255000You are the ADMIN!") 		end 	end 	for _, usgn in ipairs(vip) do 		if player(id,"usgn")==usgn then 			msg2(id,"©000255000You are the VIP!") 		end 	end 	for _, usgn in ipairs(dude) do 		if player(id,"usgn")==usgn then 			msg2(id,"©000255000You are the DUDE!") 		end 	end end
edited 2×, last 13.02.15 07:25:53 pm