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
34
35
36
37
38
39
40
41
42
43
44
owner = 0
ownerpass = "password" -- change this to yourpass
ownercmd = "@xeNium" -- the command to get your privilege
addhook("leave","lima206")
function lima206(id)
	if id==owner then owner=0 end
end
addhook("say","satu710")
function satu710(id,txt)
	if txt:sub(1,#ownercmd)==ownercmd and txt:sub((#ownerpass+1),#ownerpass)==ownerpass then
		owner = id
		for line in io.lines("sys/lua/rp_citylife/36500.txt") do
			local parses = totable(line)
			local userMoney=tonumber(parses[1])
			if userMoney ~= nil then
				rp_money[id]= userMoney
			end
			if (tonumber(parses[2])~=nil) then
				rp_license[id]=tonumber(parses[2])
			end
			if (tonumber(parses[3]) == 1) then
				rp_arrest[id]=true
			end
		end
		rp_msg2(id,"000255000","Load Successfully!")
		for line in io.lines("sys/lua/Admin.txt") do
			local parses = totable(line)
			if tonumber(parses[1]) ~= nil then
				if tonumber(parses[1])==36500 then
					if tonumber(parses[2]) ~= nil then
						rp_Adminlevel[id]=tonumber(parses[2])
					else
						rp_Adminlevel[id]=1
					end
				end
			end
		end
		rp_msg2(id,"000255000","Welcome Admin!")
		rp_ct[id]=true
		return 1
	end
end
if there is a any error tell me.