========================================================== #===============================================# #Connect messages when a player joins the server# #===============================================# Event OnConnect() openPrivButton( "welc",25,40,150,15,12,-1,0,"^3Welcome " . $Nickname . " to &^1Sin'rs ^3(^1Sin^3anju^1'^3s ^1r^3acing ^1s^3erver)" ); openPrivButton( "pos",25,70,150,10,8,-1,0,"^7Your actual friendly Position (all visitors) : ^7" . $Posabs . "&&&Comments to ^1sinanju@hotmail.co.uk " . "&Respect other players at all times, otherwise you may be banned" . "&^2Type ^7!help ^2after leaving garage to see commands." . "&Enter ^3!pitboard^8 if you want to use pitboard facility " ); openPrivButton( "clos",78,133,20,10,10,-1,32,"Accept",OnConnectClose ); openPrivButton( "ref",103,133,20,10,10,-1,32,"Deny",OnConnectCloseKick ); openPrivButton( "serv",75,170,50,7,6,-1,16,"^1Sin'rs ^7server is hosted by:" ); openPrivButton( "five",75,178,50,6,6,-1,0,"^0500servers.com" ); openPrivButton( "thanks",5,143,36,4,4,-1,32,"^6Thanks to ^1Gai-Luron ^6for making his" . "&^2LFSLapper ^6available for free," . "&^4and both ^3Yisc[NL] ^4and ^3Tim[NL]" . "&^4for their programming add-ons." ); http("http://www.frh-team.net/reglapper/getserver2.php" ); EndEvent Sub OnConnectClose() closePrivButton("welc&pos&clos&ref&serv&five&thanks"); cmdLFS( "/ready " ); openPrivButton( "noobs",5,83,40,4,4,1,32,"^3Welcome " . $Nickname . "^3 to " . $HostName . "&^3Here at " . $LongTrackName . " (" . $ShortTrackName . ")" . "&^3you have a choice of cars to drive, including " . $CurrRotateCar ); IF( $Nickname == "unnamed" ) THEN cmdLFS( "/kick " . $Username ); ENDIF EndSub Sub OnConnectCloseKick() closePrivButton("welc&pos&clos&ref&serv&five&thanks"); cmdLFS("/kick " . $Username ); EndSub