######################################################################### # Connect messages # ######################################################################### # Message that is shown to players when they connect to the server. #----------------------------------------------------------------- openPrivButton( "config_title_2",51,56,98,5,5,-1,0,"^3V1.32^8" ); openPrivButton( "new",51,83,98,5,5,-1,64,"^3V1.32: Bug corrected in great/good split" ); ################################################################# # Actions to do on splits relative to trackinfo.cfg. You can override this in the track/car section # If more actions, separate them with ':'. If different action by split time, separate them with ':' ################################################################# # Local variable # {SplitTime} - Split time ################################################################# Sub TRI_split1_0() $origT=$pitboard_high_lr; $origL=$pitboard_high_tb; IF ($pitboard_pos == "0" ) THEN privMsg( "Great 1st split (" . $SplitTime . ") by " . $Nickname . "^8!" ); ELSE closePrivButton("great_1st_split&good_1st_split&great_2nd_split&good_2nd_split&great_3rd_split&good_3rd_split&great_lap&good_lap"); IF ($pitboard_splits == "4" ) THEN openPrivButton( "great_1st_split",$origT+1,$origL+53,30,4,4,10,16,"^2Great ^71st split " . $Nickname ); ELSE IF ($pitboard_splits == "2" ) THEN openPrivButton( "great_1st_split",$origT+1,$origL+37,30,4,4,10,16,"^2Great ^71st split " . $Nickname ); ELSE openPrivButton( "great_1st_split",$origT+1,$origL+45,30,4,4,10,16,"^2Great ^71st split " . $Nickname ); ENDIF ENDIF ENDIF EndSub Sub TRI_split1_1() $origT=$pitboard_high_lr; $origL=$pitboard_high_tb; IF ($pitboard_pos == "0" ) THEN privMsg( "Good 1st split (" . $SplitTime . ") by " . $Nickname . "^8!" ); ELSE closePrivButton("great_1st_split&good_1st_split&great_2nd_split&good_2nd_split&great_3rd_split&good_3rd_split&great_lap&good_lap"); IF ($pitboard_splits == "4" ) THEN openPrivButton( "good_1st_split",$origT+1,$origL+53,30,4,4,10,16,"^3Good ^71st split " . $Nickname ); ELSE IF ($pitboard_splits == "2" ) THEN openPrivButton( "good_1st_split",$origT+1,$origL+37,30,4,4,10,16,"^3Good ^71st split " . $Nickname ); ELSE openPrivButton( "good_1st_split",$origT+1,$origL+45,30,4,4,10,16,"^3Good ^71st split " . $Nickname ); ENDIF ENDIF ENDIF EndSub Sub TRI_split2_0() $origT=$pitboard_high_lr; $origL=$pitboard_high_tb; IF ($pitboard_pos == "0" ) THEN privMsg( "Great 2nd split (" . $SplitTime . ") by " . $Nickname . "^8!" ); ELSE closePrivButton("great_1st_split&good_1st_split&great_2nd_split&good_2nd_split&great_3rd_split&good_3rd_split&great_lap&good_lap"); IF ($pitboard_splits == "4" ) THEN openPrivButton( "great_2nd_split",$origT+1,$origL+53,30,4,4,10,16,"^2Great ^72nd split " . $Nickname ); ELSE IF ($pitboard_splits == "2" ) THEN openPrivButton( "great_2nd_split",$origT+1,$origL+37,30,4,4,10,16,"^2Great ^72nd split " . $Nickname ); ELSE openPrivButton( "great_2nd_split",$origT+1,$origL+45,30,4,4,10,16,"^2Great ^72nd split " . $Nickname ); ENDIF ENDIF ENDIF EndSub Sub TRI_split2_1() $origT=$pitboard_high_lr; $origL=$pitboard_high_tb; IF ($pitboard_pos == "0" ) THEN privMsg( "Good 2nd split (" . $SplitTime . ") by " . $Nickname . "^8!" ); ELSE closePrivButton("great_1st_split&good_1st_split&great_2nd_split&good_2nd_split&great_3rd_split&good_3rd_split&great_lap&good_lap"); IF ($pitboard_splits == "4" ) THEN openPrivButton( "good_2nd_split",$origT+1,$origL+53,30,4,4,10,16,"^3Good ^72nd split " . $Nickname ); ELSE IF ($pitboard_splits == "2" ) THEN openPrivButton( "good_2nd_split",$origT+1,$origL+37,30,4,4,10,16,"^3Good ^72nd split " . $Nickname ); ELSE openPrivButton( "good_2nd_split",$origT+1,$origL+45,30,4,4,10,16,"^3Good ^72nd split " . $Nickname ); ENDIF ENDIF ENDIF EndSub Sub TRI_split3_0() $origT=$pitboard_high_lr; $origL=$pitboard_high_tb; IF ($pitboard_pos == "0" ) THEN privMsg( "Great 3rd split (" . $SplitTime . ") by " . $Nickname . "^8!" ); ELSE closePrivButton("great_1st_split&good_1st_split&great_2nd_split&good_2nd_split&great_3rd_split&good_3rd_split&great_lap&good_lap"); IF ($pitboard_splits == "4" ) THEN openPrivButton( "great_3rd_split",$origT+1,$origL+53,30,4,4,10,16,"^2Great ^73rd split " . $Nickname ); ELSE IF ($pitboard_splits == "2" ) THEN openPrivButton( "great_3rd_split",$origT+1,$origL+37,30,4,4,10,16,"^2Great ^73rd split " . $Nickname ); ELSE openPrivButton( "great_3rd_split",$origT+1,$origL+45,30,4,4,10,16,"^2Great ^73rd split " . $Nickname ); ENDIF ENDIF ENDIF EndSub Sub TRI_split3_1() $origT=$pitboard_high_lr; $origL=$pitboard_high_tb; IF ($pitboard_pos == "0" ) THEN privMsg( "Good 3rd split (" . $SplitTime . ") by " . $Nickname . "^8!" ); ELSE closePrivButton("great_1st_split&good_1st_split&great_2nd_split&good_2nd_split&great_3rd_split&good_3rd_split&great_lap&good_lap"); IF ($pitboard_splits == "4" ) THEN openPrivButton( "good_3rd_split",$origT+1,$origL+53,30,4,4,10,16,"^3Good ^73rd split " . $Nickname ); ELSE IF ($pitboard_splits == "2" ) THEN openPrivButton( "good_3rd_split",$origT+1,$origL+37,30,4,4,10,16,"^3Good ^73rd split " . $Nickname ); ELSE openPrivButton( "good_3rd_split",$origT+1,$origL+45,30,4,4,10,16,"^3Good ^73rd split " . $Nickname ); ENDIF ENDIF ENDIF EndSub Sub TRI_lap_0() $origT=$pitboard_high_lr; $origL=$pitboard_high_tb; IF ($pitboard_pos == "0" ) THEN privMsg( "Great lap (" . $LapTime . ") by " . $Nickname . "^8!" ); ELSE closePrivButton("great_1st_split&good_1st_split&great_2nd_split&good_2nd_split&great_3rd_split&good_3rd_split&great_lap&good_lap"); IF ($pitboard_splits == "4" ) THEN openPrivButton( "great_lap",$origT+1,$origL+53,30,4,4,10,16,"^2Great ^7lap " . $Nickname ); ELSE IF ($pitboard_splits == "2" ) THEN openPrivButton( "great_lap",$origT+1,$origL+37,30,4,4,10,16,"^2Great ^7lap " . $Nickname ); ELSE openPrivButton( "great_lap",$origT+1,$origL+45,30,4,4,10,16,"^2Great ^7lap " . $Nickname ); ENDIF ENDIF ENDIF EndSub Sub TRI_lap_1() $origT=$pitboard_high_lr; $origL=$pitboard_high_tb; IF ($pitboard_pos == "0" ) THEN privMsg( "Good lap (" . $LapTime . ") by " . $Nickname . "^8!" ); ELSE closePrivButton("great_1st_split&good_1st_split&great_2nd_split&good_2nd_split&great_3rd_split&good_3rd_split&great_lap&good_lap"); IF ($pitboard_splits == "4" ) THEN openPrivButton( "good_lap",$origT+1,$origL+53,30,4,4,10,16,"^3Good ^7lap " . $Nickname ); ELSE IF ($pitboard_splits == "2" ) THEN openPrivButton( "good_lap",$origT+1,$origL+37,30,4,4,10,16,"^3Good ^7lap " . $Nickname ); ELSE openPrivButton( "good_lap",$origT+1,$origL+45,30,4,4,10,16,"^3Good ^7lap " . $Nickname ); ENDIF ENDIF ENDIF EndSub ######################################################################### # Action # ######################################################################### # Action to do on a special command typed in message line # $allow is optional if you wish to specify users, that are allowed to execute action # You can specify more users if you separated them by ',' # You can use a file to specify users, one user per line (example : $allow = "&./your_file.flt";) # If ! before a name, force nickName authentification if UseUsernameForAuthentication=true # If ! before a name, force userName authentification if UseUsernameForAuthentication=false # You can use regexp expression in userName pattern, type regex=your regular expression # Example : if UseUsernameForAuthentication=true # !regex=^\[COP\].* # Find all user with a nickname that begins with [COP] # regex=^Gai.* # Find all user with a username that begins with Gai # See regular expression on web for more info how it work # Use & sign at end of patterns #------------------------------------------------------------------- openPrivButton( "config_title_2",51,56,98,5,5,-1,0,"^3V1.32^8" );