Acubens
Old Penguin
I are making a little script using talkactions but this crash my client.
Example:
What is the better method?
Example:
LUA:
local storage = 5000
local time = 60
local seconds = getPlayerStorageValue(cid,storage) - os.time()
function onSay(cid, words, param)
setPlayerStorgageValue(storage,os.time()+time)
if seconds > 1 then
repeat
addEvent(doPlayerSendCancel,1000,cid, "Seconds left: "..time.."") -- each 1 second show the value of time
until seconds < 1
end
return true
end
Last edited: