[AJUDA] Com SetTimer
#9

Em OnGameModeInit() ou OnFilterScriptInit():
pawn Код:
SetTimer("Port1",35000,true);
Entre as publics:
pawn Код:
forward Port1();
public Port1() {
    MoveObject(...);
    SetTimer("Port2",25000,false);
    return 1;
}
forward Port2();
public Port2() {
    MoveObject(...);
    return 1;
}
Altere os MoveObject(...);

Explicaзгo:
MoveObject(ObjectID,FloatX,FloatY,FloatZ,Velocidade);
Coloque uma velocidade bem lenta pra ficar 20 segundos subindo(faзa o mesmo com o de 10 segundos) e o timer sу vai atirar 25 segundos pra fechar ou seja 20 pra subir e 5 pra esperar. E os outros 10 segundos pra fechar? Jб estгo incluidos no primeiro timer.

Obs: o Primeiro MoveObject abre o portгo, o segundo fecha.

Deve funcionar...
Reply


Messages In This Thread
[AJUDA] Com SetTimer - by Gabriel6 - 26.04.2010, 01:16
Re: [AJUDA] Com SetTimer - by GuikBretas - 26.04.2010, 01:21
Re: [AJUDA] Com SetTimer - by SuB_ZeRo0_ - 26.04.2010, 01:23
Re: [AJUDA] Com SetTimer - by Gabriel6 - 26.04.2010, 01:31
Re: [AJUDA] Com SetTimer - by SuB_ZeRo0_ - 26.04.2010, 01:34
Re: [AJUDA] Com SetTimer - by Gabriel6 - 26.04.2010, 01:37
Re: [AJUDA] Com SetTimer - by andmeida10 - 26.04.2010, 07:07
Re: [AJUDA] Com SetTimer - by Gabriel6 - 27.04.2010, 18:09
Re: [AJUDA] Com SetTimer - by SuB_ZeRo0_ - 27.04.2010, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)