Eu tentei montar um script onde quando o player logar e as storages estiverem menores que os.time enviar uma mensagem e se tiver maior que os.time mandar outra... alguém poderia arruma-lá pra mim?
local storage = 77000 local storage2 = 77001 local storage3 = 77002 local storage4 = 77003 local tempo = os.time() function onLogin(cid) local a = getPlayerStorageValue(cid, Storage) local b = getPlayerStorageValue(cid, Storage2) local c = getPlayerStorageValue(cid, Storage3) local d = getPlayerStorageValue(cid, Storage4) if a and b and c and d < tempo then SendEffect(cid) end if a and b and c and d > tempo then doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, "Você está sob o Efeito de Gemas.") end return true end function SendEffect(cid) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, "Você está sem o Efeito de Gemas.") return TRUE end