[HELP] Gate
#1

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);
// Here i been trying to change in the number "1210" in the coord to make it go the right way

pawn Код:
MoveObject(Utgate2,1141.45190430,-1202.71337891,19.56865692, 1.5);
// Here i been trying to change in the number "1202" in the coord to make it go the right way

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!!!!
Reply


Messages In This Thread
[HELP] Gate - by NotoriousMOB - 23.01.2011, 12:12
Re: [HELP] Gate - by Kwarde - 23.01.2011, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)