AZ
dúvida

Statos De Dia De Vip No Serv Log Ajuda

Por AZANIK, 30 de jun. de 2012 em Scripts

ajuda ai
6
936
AZANIKA
30 de junho de 2012 às 15:54

Ola e como eu ponho o statos dos dias de vip para aprecer no serv log?

obrgado

vinny160600V
30 de junho de 2012 às 16:31

Qual seu sistema vip?

AZANIKA
30 de junho de 2012 às 17:08

-- [( 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

1 mês depois...
151515121
26 de julho de 2012 às 16:10

tb presiso de um sistema mostra dias vip se pude ajuda eu tb

SkyLighS
26 de julho de 2012 às 16:21

como assim se quer q verifique quanto dias de vip tem ?

TchubakaT
26 de julho de 2012 às 17:01

-- [( 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+