Postado Junho 22, 2019 5 anos local tempo = 30 -- Dias para pegar local premio = 5 -- Número de premium points que irá ganhar -- Não mexa daqui pra baixo -- local storage = 18534 local acc = getPlayerAccountId(cid) local tempo = tempo * 24 * 60 * 60 function onSay(cid, words, param) if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then if getPlayerStorageValue(cid, storage) > os.time() then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".") else setPlayerStorageValue(cid, storage, (tempo) + os.time()) db.executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ") end end return true end Esqueci de colocar um sinal... Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 22, 2019 5 anos Tenta assim: local tempo = 30 -- Dias para pegar local premio = 5 -- Número de premium points que irá ganhar -- Não mexa daqui pra baixo -- local storage = 18534 local tempo = tempo * 24 * 60 * 60 function onSay(cid, words, param) local acc = getPlayerAccountId(cid) if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then if getPlayerStorageValue(cid, storage) > os.time() then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".") else setPlayerStorageValue(cid, storage, (tempo) + os.time()) db.executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ") end end return true end Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 22, 2019 5 anos Autor 13 minutos atrás, movie disse: Tenta assim: local tempo = 30 -- Dias para pegar local premio = 5 -- Número de premium points que irá ganhar -- Não mexa daqui pra baixo -- local storage = 18534 local tempo = tempo * 24 * 60 * 60 function onSay(cid, words, param) local acc = getPlayerAccountId(cid) if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then if getPlayerStorageValue(cid, storage) > os.time() then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".") else setPlayerStorageValue(cid, storage, (tempo) + os.time()) db.executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ") end end return true end Quando coloco on, tudo bem, mas quando usa da isso ai... e também não chega no site! https://github.com/italoxxx1
Postado Junho 22, 2019 5 anos local tempo = 30 -- Dias para pegar local premio = 5 -- Número de premium points que irá ganhar -- Não mexa daqui pra baixo -- local storage = 18534 local tempo = tempo * 24 * 60 * 60 function onSay(cid, words, param) local acc = getPlayerAccountId(cid) if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then if getPlayerStorageValue(cid, storage) > os.time() then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".") else setPlayerStorageValue(cid, storage, (tempo) + os.time()) executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ") end end return true end Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.