• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Premium account check... and outfit :P

Erazma

Banned User
Joined
Sep 3, 2012
Messages
265
Reaction score
4
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?:P jesli za trudne do wykonania to chociaz zmiane outfitu w Wolfa :P
 
Back
Top