witam uzywam nizej wymienionego skryptu i mam pytanie: jak wciskam na drzwi bez vip to nie wyskakuje mi zaden napis Nie posiadasz Vip Access!. Moze ktos wie dlaczego. Wczesniej uzywalem innego skryptu ale jak kliknelem 2x na drzwi to one znikaly i kazdy mogl przejsc .Uzywam TFS
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,21444) == 1 then
local pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendCancel(cid, "Nie posiadasz Vip Access!")
end
doTeleportThing(cid,pos)
end
end
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,21444) == 1 then
local pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendCancel(cid, "Nie posiadasz Vip Access!")
end
doTeleportThing(cid,pos)
end
end