Automatic Moving Gates
#1

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?
Reply
#2

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
Reply
#3

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

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;
}
Reply
#5

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...
Reply
#6

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.
Reply
#7

He was very specific.

What you want HERE
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)