<?php
IF( $Nickname == "^0[^4S^0C]" )
THEN
cmdLFS( "/kick " . $userNtame );
ENDIF
?>
<?php
IF( $Nickname == "^0[^4S^0C]" )
THEN
cmdLFS( "/kick " . $userNtame );
ENDIF
?>
IF
($Username == "&C:\Program Files\LFS Z15\lfs lapper\bin\notallowed.txt")
THEN
cmdLFS( "/ban " . $Username . " 1" );
privMsg("^1You are not allowed to join this server!!");
ENDIF
<?php
if( $Username == "[PL] Simpson" ) //kick the bastard
?>
<?php
$username = '[PL] Simpson';
if( preg_match('#^(\[PL\])#si', $username) )
echo 'kick the bastard!';
?>
<?php
$username = '[PL] Simpson';
$file = file('usr.txt', FILE_IGNORE_NEW_LINES);
$file = array_map("trim", $file);
if( in_array( $username, $file ) )
echo 'kick the bastard!';
?>
GlobalVar $TeamTag;
$TeamTag = "^0[^4S^0C]"; # Put here a team Tag that you want to check
GlobalVar $TeamTagLenght;
GlobalVar $TeamTagStrip;
$TeamTagLenght = StrLen( $TeamTag );
$NickName = GetCurrentPlayerVar("NickName");
$TeamTagStrip = substr( $NickName,0,$TeamTagLenght );
IF( $TeamTagStrip == $TeamTag )
THEN
do something ( kick or allow )
ENDIF
UserKickFile( "UserKick", "C:\Program Files\LFS Z15\Lapper 5.716\bin\UserKick.txt" );
UserBanFile( "UserBan", "C:\Program Files\LFS Z15\Lapper 5.716\bin\UserBan.txt" );
UserAdminFile( "UserAdmin", "C:\Program Files\LFS Z15\Lapper 5.716\bin\UserAdmin.txt" );
IF( UserInAdmin( "UserAdmin",$userName ) == 1 )
THEN
privMsg( "^7Welcome Back Admin!!!" );
ENDIF
IF( UserKick( "UserKick",$userName ) == 1 )
THEN
privMsg( "^1You Have A Current Ban From This Server");
cmdLFS("/kick " ."UserName");
ENDIF
IF( UserBan( "UserBan",$userName ) == 1 )
THEN
privMsg( "^1You Are Not allowed to join this server!!");
cmdLFS("/ban " . "UserName" . "1");
ENDIF