can anyone make a script like the pm to ops in robocop
Ahh... starting the day with some lua =)
-- PmToOps
-- Request by kEwL
-- Made by Madman
Bot = "PmToOps"
function Main()
frmHub:RegBot(Bot)
end
function ToArrival(curUser, data)
local _,_,To,From,Msg = string.find(data, "$To:%s+(%S+)%s+From:%s+(%S+)%s+%S+%s+(.+)|")
if To == Bot then
if curUser.bOperator then
curUser:SendPM(Bot, "You are op and not able to use the Opchat") return 1
else
SendPmToOps(Bot, From.." want us to know: " ..Msg)
curUser:SendPM(Bot, "Your pm has been sent to all Ops")
end
end
end
ty m8 :)