Also die überschrift sagt alles ich möchte halt das der befehl /tor das tor aufmacht und automatisch wieder zu.
ocmd:lspdauf(playerid,params[])
{
if(isPlayerInFrakt(playerid,1))
{
if(IsPlayerInRangeOfPoint(playerid,10,1589.04089355,-1637.95239258,14.38388824))
{
MoveDynamicObject(lspdgate,1589.04089355,-1637.95239258,7.38388824,5);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,10,1589.04089355,-1637.95239258,14.38388824))
{
MoveDynamicObject(lspdgate,1589.04089355,-1637.95239258,7.38388824,5);
return 1;
}
}
return 1;
}
ocmd:lspdzu(playerid,params[])
{
if(isPlayerInFrakt(playerid,1))
{
if(IsPlayerInRangeOfPoint(playerid,10,1589.04089355,-1637.95239258,14.38388824))
{
MoveDynamicObject(lspdgate,1589.04089355,-1637.95239258,14.38388824,5);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,10,1589.04089355,-1637.95239258,14.38388824))
{
MoveDynamicObject(lspdgate,1589.04089355,-1637.95239258,14.38388824,5);
return 1;
}
}
return 1;
}