Code:
local name = getItemNameById(10824)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 9009 and (doPlayerRemoveMoney(cid, 5000) == TRUE) and getPlayerFreeCap(cid) >= 50 then
doPlayerAddItem(cid, 10824, 20)
doSendMagicEffect(getCreaturePosition(cid), 14)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have 20 ".. name .."s .")
else
doPlayerSendCancel(cid,"You don't have enought Money!")
end
return TRUE
end
need edite in this script to count to 60 on player 1.2..3.4.5.6.to 60 on player