local uid = xxxx
function onStepIn(cid, item, position, fromPosition)
if item.uniqueid == uid and (getPlayerStorageValue(cid, 15200) == -1) then
pushBack(cid, position, fromPosition, true)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can't enter")
end
item.uid instead of "item.uniqueid" ;s i think it does matterCode:local uid = xxxx function onStepIn(cid, item, position, fromPosition) if item.uniqueid == uid and (getPlayerStorageValue(cid, 15200) == -1) then pushBack(cid, position, fromPosition, true) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can't enter") end
field uniqueid is nil, so yea he has to use uiditem.uid instead of "item.uniqueid" ;s i think it does matter
it supports -.- but why would you ever check if item.uid == uid if the script is not shared with anything else?oh well onStepIn doesnt support uniqueids i think just actionids i have tried couple of times in a mod and in lua