12.03.2009, 19:36
i have created this :
but the gates dont moving somebody knows?
Edit: public GatesClose called on other place in script
pawn Код:
Side = CreateObject(975, -1734.655151, 28.273335, 4.204377, 0.0000, 0.0000, 90.0000);
Front1 = CreateObject(980, -1675.952881, 9.499218, 5.328079, 0.0000, 0.0000, 135.0000);
Front2 = CreateObject(980, -1667.801880, 1.350600, 5.328079, 0.0000, 0.0000, 135.0000);
Front3 = CreateObject(980, -1659.689209, -6.770653, 5.322875, 0.0000, 0.0000, 135.0000);
SetTimer("...", 60000, 0); // called "public ...(playerid)"
public ...(playerid)
{
SetPlayerCheckpoint(playerid, -1539.262817, 133.987518, 2.613937, 8);
SendClientMessageToAll(YELLOW, "...");
SetTimer("GatesOpen", 8000, 0);
return 1;
}
public GatesOpen()
{
MoveObject(Side,-1734.655518,37.611305,4.204377,3);
MoveObject(Front1,-1675.952881,9.499218,5.328070,3);
MoveObject(Front2,-1667.801880,1.350600,5.328070,3);
MoveObject(Front3,-1659.689209,-6.770653,5.322866,3);
return 1;
}
public GatesClose()
{
MoveObject(Side,-1734.655518,28.273335,4.204377,3);
MoveObject(Front1,-1675.952881,9.499218,5.328079,3);
MoveObject(Front2,-1667.801880,1.350600,5.328079,3);
MoveObject(Front3,-1659.689209,-6.770653,5.322875,3);
return 1;
}
Edit: public GatesClose called on other place in script