Okay, as i said, the Trackchange thing is done, i think i am close to the Admin-Only-Help but the Private-Chat i cant make it :-S
<?php
IF( $argv != "" ) THEN
$temp = GetListOfPlayers( );
FOREACH( $maVar IN $temp )
$NickName = GetPlayerVar($maVar["value"], "nickName");
$NickStrip = StripLFSColor( ToLower($NickName) );
$IdxOfTag = indexOf( $NickStrip , "[TEAM]");
IF( ToNum(indexOf( $NickStrip , "[TEAM]")) >= 0 )
THEN
PrivMsg($maVar["value"],"Team: ".$argv)
ENDIF
ENDFOREACH
ENDIF
?>
<?php
CASE "!red":
IF( $argv != "" )
THEN
$temp = GetListOfPlayers( );
FOREACH( $maVar IN $temp )
$NickName = GetPlayerVar($maVar["value"], "nickName");
$NickStrip = StripLFSColor( ToLower($NickName) );
$IdxOfTag = indexOf( $NickStrip , "[TEAM]");
IF( ToNum(indexOf( $NickStrip , "[TEAM]")) >= 0 )
THEN
PrivMsg($maVar["value"],"Red: ".$argv)
ENDIF
ENDFOREACH
ENDIF
BREAK;
?>
<?php
CASE "!red":
IF( $argv != "" )
THEN
$temp = GetListOfPlayers( );
FOREACH( $maVar IN $temp )
$NickName = GetPlayerVar($maVar["value"], "NickName");
$NickStrip = StripLFSColor( ToLower($NickName) );
$IdxOfTag = indexOf( $NickStrip , "[team]");
IF( $idxSpace != -1 )
THEN
PrivMsg($maVar["value"],"Red: ".$argv)
ENDIF
ENDFOREACH
ENDIF
BREAK;
?>
<?php
CASE "!red":
IF( $argv != "" )
THEN
$temp = GetListOfPlayers( );
FOREACH( $maVar IN $temp )
$NickName = GetPlayerVar($maVar["value"], "NickName");
$NickStrip = StripLFSColor( ToLower($NickName) );
$IdxOfTag = indexOf( $NickStrip , "[r]");
IF( $idxSpace != -1 )
THEN
PrivMsg($maVar["value"],"^1Red: ^7".$argv)
ENDIF
ENDFOREACH
ENDIF
BREAK;
?>
<?php
CASE "!red":
IF( $argv != "" )
THEN
$temp = GetListOfPlayers( );
FOREACH( $maVar IN $temp )
$NickName = GetPlayerVar($maVar["value"], "NickName");
$NickStrip = StripLFSColor( ToLower($NickName) );
$IdxOfTag = indexOf( $NickStrip , "[r]");
IF( $IdxOfTag != -1 )
THEN
privMsg ($maVar["value"],"^1Red: ^7".$argv);
ENDIF
ENDFOREACH
ENDIF
BREAK;
?>
<?php
CASE "!axlist":
IF ( UserIsAdmin( $userName ) == 1 || UserInGroup( "admin1",$userName ) == 1 || UserInGroup( "admin2",$userName ) == 1 || UserInGroup( "admin3",$userName ) == 1)
THEN
cmdLFS( "/axlist" );
ENDIF
BREAK;
?>
<?php
CASE "!red":
IF( $argv != "" )
THEN
$temp = GetListOfPlayers( );
FOREACH( $maVar IN $temp )
$NickName = GetPlayerVar($maVar["value"], "NickName");
$NickStrip = StripLFSColor( ToLower($NickName) );
$IdxOfTag = indexOf( $NickStrip , "[r]");
IF( $IdxOfTag != -1 )
THEN
privMsg ($maVar["value"],"^1Red: ^7".$argv);
ENDIF
ENDFOREACH
ENDIF
BREAK;
?>
<?php
CASE "!red":
$NickName = GetCurrentPlayerVar("NickName");
$NickStrip = StripLFSColor( ToLower($NickName))
$IdxOfTag = indexOf( $NickStrip , "[r]");
IF( $IdxOfTag!= -1 )
THEN
IF( $argv != "" )
THEN
$temp = GetListOfPlayers( );
FOREACH( $maVar IN $temp )
$NickName = GetPlayerVar($maVar["value"], "NickName");
$NickStrip = StripLFSColor( ToLower($NickName) );
$IdxOfTag = indexOf( $NickStrip , "[r]");
IF( $IdxOfTag != -1 )
THEN
privMsg ($maVar["value"],"^1Red:");
privMsg ($maVar["value"],$argv);
ENDIF
ENDFOREACH
ENDIF
ENDIF
BREAK;
?>
##################################
#Options for idle player on track#
##################################
#$IdleExclude = "ViKTOOR-LFS"; # Usernames excluded for idle check
$OnIdleTimeout1 = 20; # Idle timeout for OnIdleAction1 in seconds
Event OnIdle1( $userName ) # Player event
privMsg( langEngine( "%{main_idle1}%" ) );
EndEvent
$OnIdleTimeout2 = 30; # Idle timeout for OnIdleAction2 in seconds
Event OnIdle2( $userName ) # Player event
cmdLFS( "/spec " . GetCurrentPlayerVar("UserName") );
privMsg( langEngine( "%{main_idle2}%" ) );
EndEvent
main_idle1 = "^3You are idle and will be spectated in 10 seconds" ;
main_idle2 = "^3You are spectated for non-activity";