SA-MP Forums Archive
Gate Issue - 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: Gate Issue (/showthread.php?tid=236966)



Gate Issue - =WoR=Mitch - 08.03.2011

Fixed!


Re: Gate Issue - Mean - 08.03.2011

You didn't put it to go back. Make a timer to go back after few seconds.
pawn Код:
SetTimer( "GateClose", 3500, 0 ); // Closes the gates after 3.5 seconds.
Put that in your command. ^^
Later in the script
pawn Код:
forward GateClose( );
public GateClose( )
{
    // MoveObject code here, to close the gates.
    return 1;
}



Re: Gate Issue - Stigg - 08.03.2011

Quote:
Originally Posted by Mean
Посмотреть сообщение
You didn't put it to go back. Make a timer to go back after few seconds.
pawn Код:
SetTimer( "GateClose", 3500, 0 ); // Closes the gates after 3.5 seconds.
Put that in your command. ^^
Later in the script
pawn Код:
forward GateClose( );
public GateClose( )
{
    // MoveObject code here, to close the gates.
    return 1;
}
He has both of what you suggested m8'y


Re: Gate Issue - =WoR=Mitch - 08.03.2011

Quote:
Originally Posted by Mean
Посмотреть сообщение
You didn't put it to go back. Make a timer to go back after few seconds.
pawn Код:
SetTimer( "GateClose", 3500, 0 ); // Closes the gates after 3.5 seconds.
Put that in your command. ^^
Later in the script
pawn Код:
forward GateClose( );
public GateClose( )
{
    // MoveObject code here, to close the gates.
    return 1;
}
Thank you, its fixed now