<?php
IF ( GetCurrentPlayerVar( "IsHost" ) != "")
THEN
PrivDelayedCommand( "savedist_" . GetCurrentPlayerVar( "UserName" ),30, Save_total_distance_driven );
ENDIF
?>
<?php
Sub Save_total_distance_driven( $userName )
$total_distance_driven = GetCurrentPlayerVar( "total_distance_driven" ) + GetCurrentPlayerVar( "TotDistMeter" );
SetCurrentPlayerVar( "total_distance_driven",$total_distance_driven );
SetCurrentPlayerVar( "TotDistMeter",0 );
SetUserStoredValue( "total_distance_driven", $total_distance_driven );
Total_distance_driven( $KeyFlags );
EndSub
?>
<?php
Event OnNewPlayerJoin( $userName )
UserInGroup( "IPAdress", "./Blacklist.txt" );
IF (UserInGroup( GetCurrentPlayerVar($userName,"IPAdress") == 1)
THEN
cmdLFS("/kick " . GetCurrentPlayerVar("userName") );
ENDIF
EndEvent
?>