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
45
46
47
48
49
if p == nil then p = {} end
--------USGN-Tables--------
p.owner = {}
p.viceowner = {}
p.admin = {}
p.mod = {}
p.member = {}
p.vip = {}
function status(table,id)
for _, u in ipairs(table) do
if player(id,"usgn") == u then
return true
end
end
return false
end
addhook("say","p.psay")
function p.psay(id,txt)
if txt == "!resetscore" then
parse("setscore "..id.." 0")
parse("setdeaths "..id.." 0")
msg("©041023000"..player(id,"name").." used !ResetScore")
return 1
elseif string.lower(txt) ~= "rank" then
if status(p.owner,id) then
msg("©000255255"..player(id,"name").." [Owner]:"..txt)
return 1
elseif status(p.viceowner,id) then
msg("©255000255"..player(id,"name").." [Vice-Owner]: "..txt)
return 1
elseif status(p.admin,id) then
msg("©255255255"..player(id,"name").." [Admin]: "..txt)
return 1
elseif status(p.mod,id) then
msg("©000000255"..player(id,"name").." [Moderator]: "..txt)
return 1
elseif status(p.member,id) then
msg("©255155000"..player(id,"name").." [Member]: "..txt)
return 1
elseif status(p.vip,id) then
msg("©255000000"..player(id,"name").." [V.I.P]: "..txt)
return 1
end
end
end