Here's an example on how to use attachplayer, I use it on Mythic and it works flawless. I've cut out some parts though - but should contain the information you need.
PHP Code:
function onPlayerTouchsMe()
{
if (player.x in |x, x + 3| && player.y in |y + 3, y + 7|) {
if (!player.attached && player.dir == 3) player.attachPlayerToObj(0, id);
else if (player.attached && (player.dir == 1 || player.attached && player.dir == 2) && player.x in |x, x +1|) detachPlayer();
}
else if (player.x in |x + 20, x + 21| && player.y in |y + 3, y + 7|) {
if (!player.attached && player.dir == 1) attachPlayerToObj(0, id);
else if (player.attached && player.dir == 3) detachPlayer();
}
}
//#CLIENTSIDE
function onCreated()
{
// SET SHAPE HERE
}