tony adamantium
Tony!
- Joined
- May 5, 2010
- Messages
- 62
- Reaction score
- 1
I currently have this script:
But I want it to have a countdown added, for example, if someone clicks on it, it will say "You have 5 seconds of life, You have 4 seconds, 3, 2, 1" in orange letters, then he will die..
I hope its not too hard but I'm not good at doing scripts
Thanks.
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5952 then
doCreatureAddHealth(cid, -90000)
doCreatureAddHealth(cid, -90000)
doRemoveItem(item.uid,1)
end
end
But I want it to have a countdown added, for example, if someone clicks on it, it will say "You have 5 seconds of life, You have 4 seconds, 3, 2, 1" in orange letters, then he will die..
I hope its not too hard but I'm not good at doing scripts
Thanks.