GO

Add Vip

Por gorz, 27 de fev. de 2011 em Archived

script
3
788
gorzG
27 de fevereiro de 2011 às 12:28

Gente,oq eu coloco nesse script pra APENAS gods poderem usar?

function onSay(cid, words, param)

 

-- configs

access = 1

days = 30

-- end configs

 

player = getPlayerByName(param)

daysvalue = days*3600*24

storageplayer = getPlayerStorageValue(player,29000)

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, "Foram adcionados ".. days .." dias de VIP no seu character.")

setPlayerStorageValue(player,29000,time)

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

doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Somente jogadores com acesso maior que "..access.." podem adcionar vips.")

end

 

end

 

end

pintopintoP
27 de fevereiro de 2011 às 13:25

access = 6

gorzG
27 de fevereiro de 2011 às 13:39

lol,q facil kkkk

vlw