02.02.2010, 16:58
pawn Код:
forward Traders();
public OnGameModeInit( )
{
print("Starting timer...");
SetTimer("Traders",180000,true);
}
public Traders()
{
print("Traders doors are now open");
MoveObject(Trader1,1644.6403,-1717.2532,32.8169,1.5000);
SetTimer("close",10000,false);
}
forward close();
public close()
{
print("Traders doors are now closed");
MoveObject(Trader1,/*the position of the object closed here */);
}
that's every 3 minutes's it will open after it open in 10 seconds it will close again then the timer when hits 3 mins again will open it then auto 10 seconds later close it and it will do so till you stop your mode.