Code:
if(getPlayerPremiumDays(cid) >= 1 and getPlayerStorageValue(cid, 759759) <= 0) then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Activate premium privileges.")
setPlayerStorageValue(cid, 759759, 1)
end
-- Lose Premium Time your items with hose send to depot --
local pid = getPlayerGUID(cid)
local pos = {x = 998, y = 1000, z = 7} -- Config teleport pos --
local town = 1 -- Config town --
if(getHouseByPlayerGUID(pid) and getPlayerPremiumDays(cid) == 0 and getPlayerStorageValue(cid, 759759) >= 1) then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You lose a premium privileges, items were of your home sent for your depot.")
setPlayerStorageValue(cid, 759759, -1)
doTeleportThing(cid, pos)
doPlayerSetTown(cid, town)
cleanHouse(getHouseByPlayerGUID(pid))
setHouseOwner(getHouseByPlayerGUID(pid), NO_OWNER_PHRASE,true)
end
-- Lose Premium Time --
if(getPlayerPremiumDays(cid) == 0 and getPlayerStorageValue(cid, 759759) >= 1) then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You lose a premium privileges.")
setPlayerStorageValue(cid, 759759, -1)
doTeleportThing(cid, pos)
doPlayerSetTown(cid, town)
end
Potrzebuje pomocy moze ktos mi dodac do tego kodu zmiane outfitu ? Chcialbym zeby po stracie pacc facetowi zmienil sie na citizen outfit wyglad a babce na druid outfit ;p mozliwe?