PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: the_pest on 27 February, 2005, 15:48:41

Title: writting without nick
Post by: the_pest on 27 February, 2005, 15:48:41
(http://www.pestypest.info/emoticons/kuru.gif)
cMASTER = GetProfileIdx("Master") --0
cOP = GetProfileIdx("Operator") --1
cVIP = GetProfileIdx("VIP") --2
cREG = GetProfileIdx("Reg") --3
cUSER = -1

cAPPLY = {[cMASTER] = 1}

function ChatArrival(curUser, data)
if cAPPLY[curUser.iProfile] == 1 then
local s,e, cmd, what = string.find(data, "%b<>%s+(%S+)%s*(.*)|")
if cmd == "!talk" and what then
SendToAll(what)
return 1
end
end
end