Witam,
Zauwazajac iz niema w 8.1 globalevent. Nie potrafie sam zrbic scryptu na Vip acces na 30 dni :/ Wiec prosze was o pomoc
Vip.lua
Dziekuje , Za pomoc oczywiscie reput + , i piwko dl apelnoletnich ,
Pozdrawiam , Tropico!
Zauwazajac iz niema w 8.1 globalevent. Nie potrafie sam zrbic scryptu na Vip acces na 30 dni :/ Wiec prosze was o pomoc
Vip.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,11551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Witaj na Wyspie VIP", TEXTCOLOR_RED)
doCreatureSay(cid, "Gratulacje Teraz jestes posiadaczem VIP'a, zostalo ci jeszcze 30 dni podruzowania .!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 30))
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"")
doRemoveItem(item.uid, 1)
end
else
doPlayerSendCancel(cid,"Hay Hay.")
end
return TRUE
end
Dziekuje , Za pomoc oczywiscie reput + , i piwko dl apelnoletnich ,
Pozdrawiam , Tropico!