Eu ja proucurei por toda parte um script para colocar o nome [vip] antes do nome mais todos que eu achei deu erro ajudem ai >.< eu uso comando tileforvip.function onStepIn(cid, item, position, fromPosition)
Data/movements/scripts:
local config = {
msgDenied = "Vc não é vip Noob, Compre Pelo comando !buyvip.",
msgWelcome = "Seja Bem Vindo a Area vip."
}
local s = 29000
if getPlayerStorageValue(cid, s) - os.time() <= 0 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return TRUE
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)
return TRUE
end
Data/Talkactions/scripts:
function onSay(cid, words, param)
local price = 5000000
if doPlayerRemoveMoney(cid, price) == TRUE then
local days = 30
local s = 29000
local daysvalue = days * 24 * 60 * 60
local storageplayer = getPlayerStorageValue(cid, s)
local timenow = os.time()
if getPlayerStorageValue(cid, s) - os.time() <= 0 then
time = timenow + daysvalue
else
time = storageplayer + daysvalue
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.")
setPlayerStorageValue(cid, s, time)
local quantity = math.floor((getPlayerStorageValue(cid, s) - timenow)/(24 * 60 * 60))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de 5kk para colocar vip.")
end
return TRUE
end
Ajudem ai