16.06.2012, 19:46
Why isn't the gate closing properly ?
vamapd = CreateObject(980, 1542.350098, -1627.757568, 15.156204, 0.0000, 0.0000, 90.0000);//vama lspd
if(PlayerToPoint(10, playerid,1538.7560,-1628.0847,13.3828) || PlayerToPoint(10, playerid,1545.9342,-1627.7917,13.3828))
{
MoveObject(vamapd, 1542.350098, -1627.757568, 19.731131, 4.0);
SendClientMessage(playerid, COLOR_LIGHTRED, "*The gate of LSPD has been opened and close in 5 second(s).");
SetTimer("vamapdclose",3500, false);
return 1;
}
forward vamapdclose();
public vamapdclose()
{
MoveObject(vamapd, 1542.350098, -1627.757568, 15.156204, 3.0);
return 1;
}