Dohko
Active Member
- Joined
- Mar 7, 2017
- Messages
- 100
- Reaction score
- 29
Hello, good evening friends, I apologize for my bad English, my problem is in my movement script,
I have tfs 1.2 on my server, and I would like to adapt my code to when the player's storage change he would be teleported to the temple, script In question ->
I need the player go to the temple after the storage time is up.
I have tfs 1.2 on my server, and I would like to adapt my code to when the player's storage change he would be teleported to the temple, script In question ->
Lua:
function onUse(cid, item, frompos, item2, topos)
local player = Player(cid)
if player:getStorageValue(58344) >= os.time() then
player:say('Voce ja tem acesso.', TALKTYPE_MONSTER_SAY)
return true
end
player:setStorageValue(58344, os.time() + 600)
I need the player go to the temple after the storage time is up.