--broadcast: print "^dMe^6Nina^7 called a vote. Voting for: Change map to oasis\n"
function ParseString(inputString)
local i = 1
local t = {}
for w in string.gfind(inputString, "([^%s]+)%s*") do
t[i]=w
i=i+1
end
return t
end
function et_Print(text)
local sound = "sound/etpro/osp_fight.wav"
local t = ParseString(text)
if t[1] == "broadcast:" and t[12] == "oasis" then --i tried oasis and oasis\n but both wont work
et.G_globalSound( sound )
end
end
Bad news.
I have done some research, and it's impossible to get messages with "broadcast" - i don't know why.
Try to printout whole 'text' variable - there will not be "broadcast" messages at all
i send a chat massage when a client calls a specified vote the prob is that if he has called his maximum number of votes the message is broadcasted... same for if someone already called that vote...
i wanted to read out that the vote has been called and then send the message ...
any idea?