Taurus
Texass
I would like if this script could work in 1.3, I'm sure some others could find it useful also.
I am trying to make it work, but I have never done this.
(The script is not mine... came from a datapack I found.)
I am trying to make it work, but I have never done this.
(The script is not mine... came from a datapack I found.)
Lua:
Local config = {
storage = 19400, - storage in which time will be saved color
= "advance", - according to constant.lua da lib
time = 2, - in minutes
price = 1000, - price for use or broadcast
level = 100 - level pra to use or broadcast
}
function onSay (cid, words, param, channel)
if (param == '') then
doPlayerSendTextMessage (cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
End
if getPlayerLevel (cid)> = config.level then
if getPlayerStorageValue (cid, config.storage) - os.time () <= 0 then
if doPlayerRemoveMoney (cid, config.price) then
setPlayerStorageValue (cid, config.storage, .time () + (config.(Cid, MESSAGE_EVENT_DEFAULT, "You have successfully sent a broadcast, now
.")
"Do. You'll have to wait "..config.tempo .." minute (s) until you broadcast again. ")
Else
doPlayerSendCancel (cid," You do not have "..config.price .." gp's for broadcasting. ")
return true
end
else
doPlayerSendCancel (cid," You have to wait ".. (getPlayerStorageValue (cid, config.storage) - os.time ()) ..". seconds Until you can broadcast again ")
return true
end
else
DoPlayerSendCancel (cid, "You have to be level" ..config.Level .. "or more in order to use broadcast.")
End
end