SA-MP Forums Archive
Automatic Moving Gates - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Automatic Moving Gates (/showthread.php?tid=271653)



Automatic Moving Gates - mastalol - 25.07.2011

How to i make
pawn Код:
CreateObject(980,-1545.63000488,-430.71353149,7.77339125,0.00000000,0.00000000,134.00000000);
Move to:
pawn Код:
(-1553.38537598,-422.91333008,7.77339125); // (x, y, z)
Automaticly like in the original GTA SA offline mode?
WITHOUT CHECKPOINT MARKERS!
maybe zone parameters? idk?
can someone help me please?



Re: Automatic Moving Gates - [HiC]TheKiller - 25.07.2011

https://sampwiki.blast.hk/wiki/MoveObject

Or look through some tutorials
https://sampforum.blast.hk/showthread.php?tid=228465
https://sampforum.blast.hk/showthread.php?tid=248118


Re: Automatic Moving Gates - JackT - 25.07.2011

Use this URL:
https://sampwiki.blast.hk/wiki/Automatic_Gates


Re: Automatic Moving Gates - VitalRP - 25.07.2011

Quote:
Originally Posted by mastalol
Посмотреть сообщение
How to i make
pawn Код:
CreateObject(980,-1545.63000488,-430.71353149,7.77339125,0.00000000,0.00000000,134.00000000);
Move to:
pawn Код:
(-1553.38537598,-422.91333008,7.77339125); // (x, y, z)
Automaticly like in the original GTA SA offline mode?
WITHOUT CHECKPOINT MARKERS!
maybe zone parameters? idk?
can someone help me please?
pawn Код:
new gate;

gate = CreateObject(980,-1545.63000488,-430.71353149,7.77339125,0.00000000,0.00000000,134.00000000);

CMD:gate(playerid, params[])
{
    gateopen();
    SendClientMessage(playerid, 0xFF000000, "The gate will automatically close in 10 seconds!");
    return 1;
}

forward gateopen();
public gateopen()
{
    MoveObject(gate, -1553.38537598,-422.91333008,7.77339125, 2.0);
    SetTimer("closegate", 10000, false);
    return 1;
}
forward closegate();
public closegate()
{
    MoveObject(gate, -1545.63000488,-430.71353149,7.77339125, 2.0);
    return 1;
}



Re: Automatic Moving Gates - mastalol - 25.07.2011

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
Not What i Was Looking For...

Quote:
Originally Posted by JackT
Посмотреть сообщение
~Thanks This WAS what i Was Looking For!
Quote:
Originally Posted by VitalRP
Посмотреть сообщение
pawn Код:
new gate;

gate = CreateObject(980,-1545.63000488,-430.71353149,7.77339125,0.00000000,0.00000000,134.00000000);

CMD:gate(playerid, params[])
{
    gateopen();
    SendClientMessage(playerid, 0xFF000000, "The gate will automatically close in 10 seconds!");
    return 1;
}

forward gateopen();
public gateopen()
{
    MoveObject(gate, -1553.38537598,-422.91333008,7.77339125, 2.0);
    SetTimer("closegate", 10000, false);
    return 1;
}
forward closegate();
public closegate()
{
    MoveObject(gate, -1545.63000488,-430.71353149,7.77339125, 2.0);
    return 1;
}
Not What i Was Looking For...


Re: Automatic Moving Gates - VitalRP - 25.07.2011

Quote:
Originally Posted by mastalol
Посмотреть сообщение
Not What i Was Looking For...


~Thanks This WAS what i Was Looking For!

Not What i Was Looking For...
Lol Ok.


Re: Automatic Moving Gates - eDz0r - 25.07.2011

He was very specific.

What you want HERE


Re: Automatic Moving Gates - VitalRP - 25.07.2011

Quote:
Originally Posted by eDz0r
Посмотреть сообщение
He was very specific.

What you want HERE
What was the point in posting this when he has already been given this link?