What's new

Vip Acces i Vip Door 8.62

Status
Not open for further replies.

ots24h

New User
Joined
Jun 9, 2009
Messages
9
Reaction score
0
Pomocy potrzebuje skrypt na VIP ACCES i VIP DOOR pod tibie 8.62.
 

Xanius

User
Joined
Nov 19, 2010
Messages
48
Reaction score
0
Odp: Vip Acces i Vip Door 8.62

vip door :
function onUse(cid, item, frompos, item2, topos)
local storageValue = 21444
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=xxx, y=yyy, z=zzz}

if vipstatus == 1 then

playerpos = getPlayerPosition(cid)

doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}

if item.actionid == 2075 and getPlayerStorageValue(cid,21444) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doCreatureSay(cid, "Hiho VIP-e Player!!!", TALKTYPE_ORANGE_1)
end

else
doCreatureSay(cid, "Nie posiadasz vip access.", TALKTYPE_ORANGE_1)
end

return 1

end

vip access:
function onUse(cid, item, frompos, item2, topos)

if item.itemid == 5785 then

local playerpos = getCreaturePosition(cid)

doRemoveItem(item.uid,1)
setPlayerStorageValue(cid,21444,1)

doSendMagicEffect(playerpos, 12)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Vip Access! Czuj sie jak kozak!", TALKTYPE_ORANGE_1)
end
end
 
Status
Not open for further replies.
Top