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
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
addhook("say","bring_cmd")function totable(t,match)
local cmd = {}
if not match then match = "[^%s]+" end
for word in string.gmatch(t, match) do
table.insert(cmd, word)
end
return cmd
end
addhook("say","_say")
function _say(id,text)
local words = totable(text)
local cmd = tostring(words[1])
local param = tonumber(words[2])
if string.lower(cmd) == "!c" then
if player(param,"exists") then
if isAdmin(id) then
if player(param,"health") > 0 and player(id,"health") > 0 then
parse("setpos "..param.." "..player(id,"x").." "..player(id,"y"))
return 1
else
msg2(id,"©255000000[ERROR] - Cant use this command with you/"..player(param,"name").." dead ")
return 1
end
else
msg2(id,"©255000000[ERROR] - Only Admins can use that Command")
return 1
end
else
msg2(id,"©255000000[ERROR] - Player "..param.." exists not.")
return 1
end
end
end
So kommen wir zum 2 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
addhook("say","antiaus")
function antiaus(id,txt)
if isAdmin(id) then
if (txt =="rank") then
parse(id,"say rank")
end
if (txt:sub(1,1)=="!") then
return 1
elseif isAdmin(id) then
msg("©000220000 "..player(id,"name").." ©255000000[ADMIN]: ©255255255"..txt)
return 1
end
elseif isvip(id) then
msg("©255255255 "..player(id,"name").." ©255000000[VIP]: ©000220000"..txt)
return 1
end
end
wenn man im spiel zeigt es nichts an aber wenn man vip bist kann man keine commands nutzen ohne diese admin say script geht dies aber wieder.
Ich hab beide scripts unabhängig von einnander getestet.