Hey guys have any question i got pay exp for gold ingots
but i need to add time kick like
addEvent(kickOut, 1000 * 60 * 60, cid) for 1 hour
my script is
but i need to add time kick like
addEvent(kickOut, 1000 * 60 * 60, cid) for 1 hour
my script is
Lua:
function onUse(cid, item, frompos, item2, topos)
tppos = {x=1039, y=108, z=14, stackpos=255}
if doPlayerRemoveItem(cid, 9971, 15) then
doTeleportThing(cid, tppos)
doSendMagicEffect(getPlayerPosition(cid), 30)
else
doPlayerSendCancel(cid, "Nie masz przy sobie 15 gold ingots.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return true
end