[help] Problem with gate command
#2

Add a timer under MoveObject.

pawn Код:
forward closegates();
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/opengate", cmdtext, true, 10) == 0)
    {
    MoveObject(gate,-293.828,1507.450,76.070,1.5000); // 1.5000 means how fast it has to open
    return 1;
}
  SetTimer("closegates",1000,false); //Change 1000 to how many ms you want after the gates is opened to close.
}
 
public message()
{
  MoveObject(Close, 302.154, 1507.450, 76.070, 4.0);
}
Reply


Messages In This Thread
[help] Problem with gate command - by dclaw - 16.01.2010, 11:44
Re: [help] Problem with gate command - by Retardedwolf - 16.01.2010, 11:49
Re: [help] Problem with gate command - by pagie1111 - 16.01.2010, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)