Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sto = 12129
- local destiny = {x=000, y=000, z=0}
- function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
- if isPlayer(cid) then
- local checkday = tonumber(os.date("%d"))
- if getPlayerStorageValue(cid, sto) ~= checkday then
- setPlayerStorageValue(cid, sto, checkday)
- doTeleportThing(cid, destiny, true)
- doPlayerSendTextMessage(cid, 24, "Bem-vindo a Quest Mwuhaha.")
- else
- doTeleportThing(cid, fromPosition, true)
- doPlayerSendCancel(cid, "Você não pode entrar mais de uma vez no mesmo dia.")
- end
- end
- return true
- end
Add Comment
Please, Sign In to add comment