:$pm (id) (message)
help me pls
Scripts
Private Message CS2D lua Script
Private Message CS2D lua Script
1

addhook ("say","pmsent")
function pmsent(id,txt)
if string.find(txt,"!pm") then
local to4=txt:sub(5,6)
msg2 (id,"©000255000You have sent a pm to "..player(to4,"name").."!")
return 1;
end
end
addhook ("say","pmrecieve")
function pmrecieve(id,txt)
local to1=txt:sub(1,3)
local to2=txt:sub(5,6)
local to3=txt:sub(8)
if to1=="!pm" then
msg2 (to2,"©000255255"..player(id,"name").."(pm): "..to3)
end
end

kalis has written
1
