1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
addhook("say","_pm")
function _pm(id,txt)
if string.sub(txt, 1, 6) == "!sayto" then
if string.sub(txt, 7, 8) ~= nil then
local clr = string.char(169)
if string.sub(txt, 9, 9) ~= " " then
pl = tonumber(string.sub(txt, 8, 9))
text = string.sub(txt, 11, #txt)
else
pl = tonumber(string.sub(txt, 8, 8))
text = string.sub(txt, 10, #txt)
end
if player(pl,"exists") then
if player(pl,"team") == 0 then msg(clr.."255220000"..player(pl,"name").." *DEAD*:"..clr.."255220000 "..text); end
if player(pl,"team") == 1 then msg(clr.."255000000"..player(pl,"name")..":"..clr.."255220000 "..text); end
if player(pl,"team") == 2 then msg(clr.."000148255"..player(pl,"name")..":"..clr.."255220000 "..text); end
else
msg2(id,clr.."255255000[Server]: ©255000000Player with ID "..pl.." doesn't exist!")
end
return 1
end
end
return 0
end