Alright a friend of mine have mapped some new gates at LSPD but when i try to open them nothing happends..
i need some other eyes to look at this cause im lost i don't know what i did wrong here.
Код:
pdgate2 = CreateObject(971,1539.3564453125, -1628.0269775391, 15.273017883301, 0, 0, 270);
Код:
public GateClose5()
{
MoveObject(pdgate2,1539.3564453125, -1628.0269775391, 15.273017883301, 1.5);
return 1;
}
Код:
else if (PlayerToPoint(15, playerid,1544.700317,-1630.735717,13.096980))
{
MoveObject(pdgate2,1539.3564453125, -1628.0269775391, 15.273017883301, 1.5);
SetTimer("GateClose5", 12000, 0);
SendClientMessage(playerid, COLOR_BLUE,"The gate is opened and will close in 6 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}