russogracie
New Member
- Joined
- Sep 9, 2010
- Messages
- 205
- Reaction score
- 2
I have this script to remove wall on stepin:
But, Now, if a player is on the same wall sqm, he sits atop the wall would be possible to make the player was moved to where there is a wall or have sqm down?
Code:
function onStepIn(cid, item, pos, fromPos)
if isPlayer(cid) then
doRemoveItem(getTileItemById({x=988, y=805, z=14}, 1049).uid)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have removed the wall.')
doTransformItem(item.uid, 425)
end
end
function onStepOut(cid, item, pos, fromPos)
if isPlayer(cid) then
doCreateItem(1049, 1, {x=988, y=805, z=14})
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Wall is back.')
doTransformItem(item.uid, 426)
end
end
But, Now, if a player is on the same wall sqm, he sits atop the wall would be possible to make the player was moved to where there is a wall or have sqm down?