Habs versucht hier ist mein Beispiel (hab nen anderen Script editiert!):
Script:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--Allows
adminallow={kick=true,ban=true}
modallow={kick=true,ban=false}
--End of Settings
addhook("say","allowsay")
function allowsay(id,t)
if t:sub(1,4)=="!ban" then
for c=1,99999 do
if (adminallow.ban==true and player(id,"usgn")==admin[c]) or (modallow.ban==true and player(id,"usgn")==mod[c]) then
cif=tonumber(t:sub(6,7))
local bip=player(cif,"ip")
parse("banip '..bip' 30")
end
end
end
Error:
1
ERROR: Can't ban malformed IP. Valid format: X.X.X.X