PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: Markitos on 15 October, 2005, 16:45:18

Title: Write without nick
Post by: Markitos on 15 October, 2005, 16:45:18
Made by the_pest

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


Cheers...
Title:
Post by: 6Marilyn6Manson6 on 15 October, 2005, 16:54:23
QuoteOriginally posted by Markitos
Dunno who made it jt found it in my friend server
Made by ???

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


Cheers...

This is made by  the_pest
c ya
Title:
Post by: Markitos on 16 October, 2005, 08:59:40
Updated...
Title:
Post by: 6Marilyn6Manson6 on 16 October, 2005, 11:35:27
QuoteOriginally posted by Markitos
Updated...

Yeah :)