Frozen_Cloud
New Member
- Joined
- Oct 10, 2010
- Messages
- 57
- Reaction score
- 1
Greetings, i have made a simple script so if you click on a tree then you get a "cock" under your feets...
I would like to add exhaust time between this action so for example a player can click on the three only once per 10 minutes, anyone can help me? ;(
I would like to add exhaust time between this action so for example a player can click on the three only once per 10 minutes, anyone can help me? ;(
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local PlayerPosition = getCreaturePosition(cid)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a cock")
doCreateItem(8582,1,PlayerPosition)
end