Hi, I want a script that clean mainchat.
4 example if i write !wash the bot clean che chat.
tnx :]
QuoteOriginally posted by Techno_man
Hi, I want a script that clean mainchat.
4 example if i write !wash the bot clean che chat.
tnx :]
Search...
i've tried to search but i've found nothing X( X(
screencleaner
Cheers HB
Try this:
--ScreenCleaner.lua 1.1 by yepyepyep4711 and ??????Hawk??????
--!cls will wipe the main chat clean (does that remind you of something? ;) )
--the command will be added to the rightclick menu of the OPs (optional)
CanDo = {
[0] = 1, -- Master
[1] = 1, -- Operator
[2] = 1, -- VIP
[3] = 0, -- Reg
[4] = 0, -- Moderator
[5] = 1, -- Netfounder
[-1] =0, -- User
}
function ChatArrival(curUser, sData)
sData=string.sub(sData,1,string.len(sData)-1)
local _,_,cmd = string.find(sData,"%b<>%s+(%S+)")
if cmd and cmd=="!cls" and CanDo[curUser.iProfile] == 1 then
SendToAll("Cleaner",string.rep("\r\n\r\n",2000))
return 1
end
end
function OpConnected(curUser)
if CanDo[curUser.iProfile] == 1 then
curUser:SendData("$UserCommand 255 7")
curUser:SendData("$UserCommand 1 3 ? OPERATOR ?\\ ? Clear Screen$<%[mynick]> !cls|")
curUser:SendData("$UserCommand 0 3 |") -- separator
end
end
c ya
Thanks so much!! 8o 8o
QuoteOriginally posted by Techno_man
Thanks so much!! 8o 8o
Welcome :)