System.Timers.Timer ExampleTimer = new System.Timers.Timer(1000); // 1 second timer
ExampleTimer.Elapsed += new System.Timers.ElapsedEventHandler(ExampleTimer_Elapsed);
ExampleTimer.Enabled = true;
private void ExampleTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
int Timer = 60;
bool TimerEnabled = false;
if([COLOR="Lime"]TimerEnabled == true[/COLOR] && Timer >= 1)
{
Timer -= 1;
}
}
[COLOR="Black"]Officer[/COLOR][COLOR="Red"]•[/COLOR][COLOR="White"]example[/COLOR]
MsgAll("^2Collision: " + Connections[GetConnIdx2(CON.A.PLID)] + " ^2hit " + Connections[GetConnIdx2(CON.B.PLID)] + " ^2 And killed him and raped him");
MsgAll("^2Collision: " + CrashID1.PlayerName + " ^2hit " + CrashID2.PlayerName + " ^2 And killed him and raped him");