01.11.2009, 14:48
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;
}