Postado Dezembro 9, 2016 8 anos Ola pessoal, bom to usando um systema vip em meu ot serve do jeito que eu quero! unico problema que quando ele tem checar os dias de vip do player ele nao checa. continua com o [VIP] ADMIN o vip nao sai me ajudem ai! --[[ by EddyHavoc Tibiaking.com ]]-- function onLogin(cid) if getPlayerStorageValue(cid, 13500) - os.time() > 0 then setPlayerStorageValue(cid, 9898, 1) end local pos = {x = 155, y = 50, z = 7} -- posiçao do templo. function EddyHavoc(cid) if isPlayer(cid) then db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";") doRemoveCreature(cid) end end if getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13500) - os.time() < 1 or getPlayerStorageValue(cid, 13500) - os.time() == 0 then doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then addEvent(EddyHavoc, 1*1000, cid) end end return TRUE end up
Postado Dezembro 12, 2016 8 anos if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then \/ if string.find(tostring(getCreatureName(cid)),"[Vip]") then Te ajudei? Clique em Gostei ! ²²²d¬¬b²²² "She's got a smile that it seems to me...." ♪♪
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.