How can I open a gate every hour?
#7

Quote:
Originally Posted by Luka™
pawn Код:
forward GateOpen();
pawn Код:
public OnGameModeInit()
{
     SetWorldTime(0);
     SetTimer("GateOpen",3600000,1); // 1000 miliseconds = 1000 * 60 (seconds) = 60000 * 60 (minutes) = 3600000 miliseconds
     return 1;
}
pawn Код:
public GateOpen()
{
     MoveObject(objectid,x,y,z,speed);
     // There you can set timer for "close gate"
     return 1;
}
This will be the easiest bet .. Use it
Reply


Messages In This Thread
How can I open a gate every hour? - by dirkblok - 01.11.2009, 14:22
Re: How can I open a gate every hour? - by Virtual1ty - 01.11.2009, 14:24
Re: How can I open a gate every hour? - by dirkblok - 01.11.2009, 14:31
Re: How can I open a gate every hour? - by radhakr - 01.11.2009, 14:33
Re: How can I open a gate every hour? - by dice7 - 01.11.2009, 14:44
Re: How can I open a gate every hour? - by Luka P. - 01.11.2009, 14:48
Re: How can I open a gate every hour? - by Peter_Corneile - 01.11.2009, 15:02
Re: How can I open a gate every hour? - by introzen - 01.11.2009, 15:03
Re: How can I open a gate every hour? - by Luka P. - 01.11.2009, 15:05
Re: How can I open a gate every hour? - by introzen - 01.11.2009, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)