Mam pytanie. Czy da?o by si? przerobi? ten skrypt tak aby mo?na by?o u?y? raz przedmiotu, a potem on znika z naszego ekwipunku:
PHP:
local accessCan = 0
function onUse (cid, item, frompos, item2, topos)
if (getPlayerAccess(cid) >= accessCan) then
if item.itemid == 2174 then
doTeleportThing(cid, {x=435, y=386, z=7})
doPlayerSay(cid,"Teleport to Temple",16)
else
doPlayerSendCancel(cid,"You are not Player")
end
end
end