Siga esse exemplo acho que vai conseguir , ou procura algum tutorial "CRIANDO PORTХES AUTOMATICOS"
Код:
if(strcmp(cmd, "/pb", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 283.095062, -1542.899170, 25.510294) || PlayerToPoint(15.0, playerid, 321.832672, -1488.615112, 25.527353) && PlayerToPoint(15.0, playerid, 321.832672, -1488.615112, 25.527353))
{ //GateGaragem
MoveObject( gt3gate, 283.095062, -1542.899170, 33.385311,3,0.0, 0.0, 326.2500);
MoveObject( gt3gate3, 321.832672, -1488.615112, 33.777353,3,0.0, 0.0, 323.6717);
GameTextForPlayer(playerid, "~w~Portao BOPE ~n~~b~Aberto", 5000, 3);
SetTimer("gt3gate2", 5000, false);
}
return true;
}