23.01.2011, 12:12
pawn Код:
if (PlayerToPoint(15, playerid,1141.29589844,-1210.58032227,19.53727722))
{
MoveObject(Utgate1,1141.29589844,-1210.58032227,19.53727722, 1.5);
SetTimer("GateClose14", 7000, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens Gangs gate.", sendername);
ProxDetector(30.0, playerid, string,
COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
if (PlayerToPoint(15, playerid,1141.45190430,-1202.71337891,19.56865692))
{
MoveObject(Utgate2,1141.45190430,-1202.71337891,19.56865692, 1.5);
SetTimer("GateClose15", 7000, 0);
Trying to make it move like this :
1) Closed
2) Opend
You know like it opens each way
can't make it work im changing this:
pawn Код:
MoveObject(Utgate1,1141.29589844,-1210.58032227,19.53727722, 1.5);
pawn Код:
MoveObject(Utgate2,1141.45190430,-1202.71337891,19.56865692, 1.5);
Tho i tried so much now i need some help to give me the right coord number for it so it will move perfectly each way hope someone can understand me Thanks.
SOLVED!!!!