samuel157
/root
- Joined
- Mar 19, 2010
- Messages
- 465
- Solutions
- 3
- Reaction score
- 62
- Location
- São Paulo, Brazil
- GitHub
- Samuel10M
*Fixed bug [VIP]. Search bug this script: endvip.lua
LUA:
--[[ By Samuel [email protected] ]]--
function onLogin(cid)
if getPlayerStorageValue(cid, 13545) - os.time() > 0 then
setPlayerStorageValue(cid, 13545, 1)
end
local pos = {x = 154, y = 51, 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, 13545) == 1 and getPlayerStorageValue(cid, 13545) - os.time() < 1 or getPlayerStorageValue(cid, 13545) - os.time() == 0 then
doTeleportThing(cid, pos)
doPlayerPopupFYI(cid, "Sua vip Account acabou.")
setPlayerStorageValue(cid, 13545, -1)
if string.find(tostring(getCreatureName(cid)),"[[VIP]]") then
addEvent(EddyHavoc, 3*1000, cid)
end
end
return TRUE
end
Last edited: