Ir para conteúdo
  • 0

Statos De Dia De Vip No Serv Log Ajuda


AZANIK

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

-- [( Script edited by: DoidinMapper )] --

function onSay(cid, words, param)

access = 4

days = 30

player = getPlayerByName(param)

daysvalue = days*3600*24

storageplayer = getPlayerStorageValue(player,13540)

timenow = os.time()

if storageplayer == -1 or storageplayer == 0 then

time = timenow+daysvalue

else

time = storageplayer+daysvalue

end

if param ~= "" then

if getPlayerGroupId(cid) >= access then

doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Were added ".. days .." VIP day on your character.")

setPlayerStorageValue(player,13540,time)

quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24))

doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "You have ".. quantity .." days of VIP time.")

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only members with greater access to ".. access .." can add VIP.")

end

end

end

 

essde e meu sitema

Link para o comentário
Compartilhar em outros sites

  • 0


-- [( Script edited by: DoidinMapper )] --
function onSay(cid, words, param)
access = 4
days = 30
player = getPlayerByName(param)
daysvalue = days*3600*24
storageplayer = getPlayerStorageValue(player,13540)
timenow = os.time()
if storageplayer == -1 or storageplayer == 0 then
time = timenow+daysvalue
else
time = storageplayer+daysvalue
end
if param ~= "" then
if getPlayerGroupId(cid) >= access then
doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Were added ".. days .." VIP day on your character.")
setPlayerStorageValue(player,13540,time)
quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24))
doPlayerSendTextMessage(cid, 18, "Você tem ".. quantity .." dias de VIP restantes.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only members with greater access to ".. access .." can add VIP.")
end
end
end

 

ajudei?rep+

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...