R
Rozinx
Guest
Hey peeps, this script works on my 0.3.4 servers , but not on 0.3.6 one ;x
Has broadcast function been changed somewhere?
It's not tutorflags or something like that, because I can't broadcast via GOD too.
Code:
function onSay(cid, words, param)
timenow = os.time()
quantity = math.floor((getPlayerStorageValue(cid,29000) - timenow)/(3600*24))
local message = "[V.I.P] ".. getCreatureName(cid) .. " [" .. getPlayerLevel(cid) .. "]: " .. param
local message2 = "[Golden V.I.P] ".. getCreatureName(cid) .. " [" .. getPlayerLevel(cid) .. "]: " .. param
if quantity > 0 and getPlayerStorageValue(cid,26000) < 1 then
if getPlayerStorageValue(cid,28998) < 1 then
doBroadcastMessage(cid, message, MESSAGE_EVENT_ADVANCE)
else if getPlayerStorageValue(cid,28998) == 1 then
doBroadcastMessage(cid, message2, MESSAGE_EVENT_ADVANCE)
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores VIPs podem fazer isso ou você foi bloqueado.")
end return TRUE end return TRUE end return TRUE end
Has broadcast function been changed somewhere?
It's not tutorflags or something like that, because I can't broadcast via GOD too.