<?php
###################################
#Event triggered when lapper start#
###################################
Event OnLapperStart()
GlobalVar $point_L;
GlobalVar $point_T;
GlobalVar $ps_max_points;
$point_L = 75;
$point_T = 5;
$ps_max_points=10;
?>
<?php
CASE "!update":
IF( UserInGroup( "tempadmin",$userName ) == 1 )
THEN
openGlobalButton( "lone_counter",50,63,100,40,100,$argv,0,"^3> %cpt% <", upda );
cmdLFS("/msg ^1INSIM UPDATE IN " . $argv . " SECOND(S) " );
cmdLFS("/msg ^2INSIM UPDATE IN " . $argv . " SECOND(S) " );
cmdLFS("/msg ^3INSIM UPDATE IN " . $argv . " SECOND(S) " );
cmdLFS("/msg ^4INSIM UPDATE IN " . $argv . " SECOND(S) " );
cmdLFS("/msg ^5INSIM UPDATE IN " . $argv . " SECOND(S) " );
cmdLFS("/msg ^6INSIM UPDATE IN " . $argv . " SECOND(S) " );
cmdLFS("/msg ^7INSIM UPDATE IN " . $argv . " SECOND(S) " );
ELSE
privMsg( "^1Access Denied");
ENDIF
BREAK;
?>
<?php
Sub upda($KeyFlags,$id)
SaveGroupToFile( "tempadmin", "./tempadmin.txt" );
update();
EndSub
?>
<?php
Event OnDisConnect() # Player event
RemoveUserFromGroup( "tempadmin" , GetCurrentPlayerVar("UserName"));
SaveGroupToFile( "tempadmin", "./tempadmin.txt" );
EndEvent
?>
<?php
Event OnConnect()
$userName = GetCurrentPlayerVar("UserName");
UserGroupFromFile( "loged", "tempadmin.txt" );
IF( UserInGroup( "loged",$userName ) == 1)
THEN
privMsg( "^2Thank you for logging in");
MoveUserToGroup( "tempadmin",$userName );
ENDIF
EndEvent
?>
case "update":
TermProg = true;
RestartProg = true;
val.typVal = GLScript.typVal.str;
val.sval = quote("");
return;
Event OnDriftScore()
<SNIP>
EndEvent
<?php
Event OnDriftScore()
IF( $GUI_drift == "yes" )
THEN
openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore" ) );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "AngleVelocity" ) );
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore") );
ENDIF
EndEvent
?>
<?php
CASE "!login":
IF( UserInGroup( "admin",$userName ) == 1 )
THEN
IF( UserInGroup( "tempadmin",$userName ) == 1 )
THEN
privMsg( "^2You are already logged in");
ELSE
IF( $argv== "1234" || $argv == "1234567890" )
THEN
privMsg( "^2Thank you for logging in");
MoveUserToGroup( "tempadmin",$userName );
ELSE
privMsg( "^1Incorrect Password");
ENDIF
ENDIF
ELSE
IF( UserInGroup( "beta",$userName ) == 1)
THEN
IF( UserInGroup( "tempadmin",$userName ) == 1 )
THEN
privMsg( "^2You are already logged in");
ELSE
IF( $argv== "1234567890" )
THEN
privMsg( "^2Thank you for logging in");
MoveUserToGroup( "tempadmin",$userName );
ELSE
privMsg( "^1Incorrect Password");
ENDIF
ENDIF
ENDIF
BREAK;
CASE "!logout":
IF( UserInGroup( "tempadmin",$userName ) == 1 )
THEN
RemoveUserFromGroup( "tempadmin",$userName );
privMsg( "^2You are logged out now.");
ELSE
privMsg( "^2You where not logged in.");
ENDIF
BREAK;
?>
<?php
CASE "!ban":
IF( UserInGroup( "tempadmin",$userName ) == 1 )
THEN
IF( UserInGroup( "admin",$argv ) == 1 )
THEN
cmdLFS("/msg " . GetCurrentPlayerVar( "Nickname" ) . " Attempted to ban " . GetPlayerVar( $argv, "Nickname" ) );
cmdLFS( "/msg " . GetPlayerVar( $argv, "Nickname" ) . "^7 Is An Admin ban Voided" );
ELSE
IF( UserInGroup( "beta",$argv ) == 1 )
THEN
cmdLFS("/msg " . GetCurrentPlayerVar( "Nickname" ) . " Attempted to ban " . GetPlayerVar( $argv, "Nickname" ) );
cmdLFS( "/msg " . GetPlayerVar( $argv, "Nickname" ) . "^7 Is A beta Tester ban Voided" );
ELSE
cmdLFS("/msg " . GetCurrentPlayerVar( "Nickname" ) . " banned " . GetPlayerVar( $argv, "Nickname" ) );
cmdLFS( "/ban " . $argv . " 7" );
ENDIF
ENDIF
ENDIF
BREAK;
?>