Hello
I looking for script. So when you say: "!countdown, 5" then it will be something like this (it will show every 1 second):
I have tried to make script:
And it is only showing "Count: 2".
Can someone make this script?? :thumbup:
Rep and thanks for script.
I looking for script. So when you say: "!countdown, 5" then it will be something like this (it will show every 1 second):
Code:
Count: 5
Count: 4
Count: 3
Count: 2
Count: 1
(And when 0 then) Hurra!!
Lua:
function onSay(cid, words, param)
param = param.explode(param, ',')
if (param[1] ~= nil) then
local count = param[1]
for i = 1, param[1] do
doSendAnimatedText(getPlayerPosition(cid), 'Count: '.. param[1] - 1 ..'', 11)
if (param[1] == 0) then
doSendAnimatedText(getPlayerPosition(cid), 'Hurra!!', 11)
end
end
else
doPlayerSendCancel(cid, 'You must set param!')
end
end
Can someone make this script?? :thumbup:
Rep and thanks for script.
Last edited: