Hi guys, Im trying to make door open for lspd but... it say you are too far from the distanation when I do /dooropen and I /save infront of the door and I add it at else if(PlayerToPoint..............))
Код:
if (strcmp("/dooropen", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(3.0,playerid,239.52055359, 119.10895538, 1002.21875000))
{
MoveObject(door1,239.52055359, 119.10895538, 1002.21875000,1.50);
MoveObject(door2,239.56867981, 116.10665131, 1002.21875000,1.50);
}
else if(PlayerToPoint(3.0,playerid,253.21325684, 110.56111908, 1002.21875000))
{
MoveObject(door3,253.21325684, 110.56111908, 1002.21875000,1.50);
MoveObject(door4,253.23213196, 107.58644104, 1002.21875000,1.50);
}
else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
{
MoveObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50);
}
return 1;
}
If someone know why It doesn't work please... tell me.
Really help some help please... door are in a basement the big one of lvpd....