hello, this makes the char scrip crosses the door to see if anyone can fix the door to open and close the door (not through the door).'m looking for but can not find. thank you very much
use tfs 0.3.6
use tfs 0.3.6
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 10044 then
if(isInArray(getPlayerStorageValue(cid, 10005), -1 == TRUE then
doPlayerSendTextMessage(cid, 22, "The door seems to be sealed against unwanted intruders.")
else
doPlayerSendTextMessage(cid, 22, "You've absorbed enough energy! You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, TRUE)
end
return TRUE
end
return FALSE
end