yours works great Gambet, but it wasn't really what I was looking for.
I eventually just worked out the problem myself. I have 2 actiongrabs, one on clientside, one on serverside. the one on clientside lets you go through personally. the one on serverside allows you to open the barrier for other people.
PHP Code:
function onCreated()
{
setshape(1, 2*16, 6*16);
}
function onActionGrab()
{
if (player.account in {"Sum41Freeeeek", "The411"})
{
if (player.chat == "open")
{
dontblock();
sleep(2);
blockagain();
}
}
else {
blockagain();
}
}
//#CLIENTSIDE
function onCreated()
{
setshape(1, 2*16, 6*16);
}
function onActionGrab()
{
if (player.account in {"Sum41Freeeeek", "The411"})
{
dontblock();
sleep(2);
blockagain();
}
else {
blockagain();
}
}