Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
- if isPlayer(cid) then
- local specs = getSpectators(position, 1, 1)
- if(specs and #specs >= 5) then
- if(getCreatureLookDirection(cid) == NORTH) then
- doMoveCreature(cid, SOUTH)
- elseif(getCreatureLookDirection(cid) == EAST) then
- doMoveCreature(cid, WEST)
- elseif(getCreatureLookDirection(cid) == SOUTH) then
- doMoveCreature(cid, NORTH)
- elseif(getCreatureLookDirection(cid) == WEST) then
- doMoveCreature(cid, EAST)
- end
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement