Comando !buyvip
function onSay(cid, words, param)
local price = 1000000
if doPlayerRemoveMoney(cid, price) == TRUE then
local days = 15
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 "..price.." gp's para colocar vip.")
end
return TRUE
end
local days = 15 -- dias de vip que irão ganhar
local s = 29000 -- é a storage do seu vip cso for outra só mudar o valor ai






info
Grupo: Campones
Registrado: 06/10/11
Posts: 52
Reputação: 0
Gênero: Masculino
OU ALGUEM PODIA ME AJUDAR
E QUE NO MEU OT VEIU SEM O COMANDO !BUYVIP PRO PLAYER COMPRA VIP NORMAL E COLOCAR TAMBEM O SYSTEMA WAR VIP NO MEU OT
MAPA STYLLER SE TIVER COMO ME AJUDA AI