if (newCfg.varsLapper.RotateCars != "")
{
SendMsg("/cars=" + tmpCars[currRace.currRotateCar]);
newCfg.executeFunction("OnRotateCar", null, null);
RestartTimer();
}
if (newCfg.varsLapper.RotateTracks != "")
{
SendMsg("/track=" + tmpTracks[currRace.currRotateTrack]);
newCfg.executeFunction("OnRotateTrack", null, null);
}
Sub restartAutoMain()
privMsg( "Test" );
DelayedCommand($restart_A-15, restartAutoDisplay);
DelayedCommand($restart_A, restartAuto);
EndSub
Sub restartAuto()
cmdLFS ( "/restart" );
EndSub
Sub restartAutoDisplay()
openGlobalButton ("test",70,100,60,20,4,15,16,"^7Restart in (%cpt%) second(s)");
EndSub
DEFAULT:
BREAK;
ENDSWITCH
SetCurrentPlayerVar( "ps_points_total",ToNum(GetCurrentPlayerVar( "ps_points_total" ))+ GetCurrentPlayerVar( "ps_race_points" ) );
setUserStoredValue( "ps_points_total", GetCurrentPlayerVar( "ps_points_total" ) );
#Loco
DelayedCommand( 15, test1 );
EndEvent
Sub test1()
privMsg( "Test" );
EndSub
Event OnResult( $flagConfirm )
DelayedCommand( 15, privMsg( "Test" ) );
EndEvent