Nope, i've never heard of that...
##################################
#Options for idle player on track#
##################################
$IdleExclude = "emit-nl, Seafalcon"; # Usernames excluded for idle check
$OnIdleTimeout1 = 60; # Idle timeout for OnIdleAction1 in seconds
Event OnIdle1( $userName ) # Player event
privMsg( langEngine( "%{main_idle1}%" ) );
EndEvent
$OnIdleTimeout2 = 70; # Idle timeout for OnIdleAction2 in seconds
Event OnIdle2( $userName ) # Player event
cmdLFS( "/spec " . GetCurrentPlayerVar("NickName") );
privMsg( langEngine( "%{main_idle2}%" ) );
EndEvent
$currUserName = $ListOfPlayersDoWho[$i];
unset( $currPly );
$currPly = getplayerinfo($ListOfPlayersDoWho[$i] );
<?php
# Membership status
const MEMBERTYPE_UNKNOWN -1; # Player has not been here before
const MEMBERTYPE_VISITOR 0; # Player is a visitor
const MEMBERTYPE_GUEST 1; # Player is a vouched for guest
const MEMBERTYPE_JUNIOR 2; # Player is Junior Member and subject to review
const MEMBERTYPE_FULL 3; # Player is a full member
const MEMBERTYPE_MAX 4; # Used as a upper limit for iterators
?>
<?php
CatchEvent OnLapperStart()
### Global vars for Membership names ####
GlobalVar $MemberTypes;
$MemberTypes[MEMBERTYPE_VISITOR] = "Visitor";
$MemberTypes[MEMBERTYPE_GUEST] = "Guest";
$MemberTypes[MEMBERTYPE_JUNIOR] = "Junior";
$MemberTypes[MEMBERTYPE_FULL] = "Full";
$MemberTypes[MEMBERTYPE_MAX] = "MAX";
EndCatchEvent
?>
<?php
$mName = $MemberTypes[2];
?>
<?php
CatchEvent OnLapperStart()
### Global vars for Membership names ####
GlobalVar $MemberTypes;
$MemberTypes[ToNum(MEMBERTYPE_VISITOR)] = "Visitor";
$MemberTypes[ToNum(MEMBERTYPE_GUEST)] = "Guest";
$MemberTypes[ToNum(MEMBERTYPE_JUNIOR)] = "Junior";
$MemberTypes[ToNum(MEMBERTYPE_FULL)] = "Full";
$MemberTypes[ToNum(MEMBERTYPE_MAX)] = "MAX";
EndCatchEvent
?>
<?php
SWITCH( $mType )
CASE ToNum(MEMBERTYPE_VISITOR):
...
etc
?>
privMsg( langEngine( "%{main_pitwork}%", GetCurrentPlayerVar("pitWork") ) );
must be:
privMsg( langEngine( "%{main_pitwork}%", GetCurrentPlayerVar("PitWork") ) );
Sub DisplaySpeed( $userName )
$topSpeed = GetCurrentPlayerVar("topSpeed");
$speed = GetCurrentPlayerVar("InstantSpeed");
IF ($topSpeed == 0)
THEN
setCurrentPlayerVar( "topSpeed",$speed );
$topSpeed = GetCurrentPlayerVar("topSpeed");
privMsg( langEngine( "^7Première passe: ^3{0} ^7{1} " , $speed,GetCurrentPlayerVar("UnitSpeed") ) );
ENDIF
IF ($topSpeed != 0 && $speed > $topSpeed)
THEN
$difference = $speed - $topSpeed;
setCurrentPlayerVar( "topSpeed",$speed );
$topSpeed = GetCurrentPlayerVar("topSpeed");
privMsg( langEngine( "^7N o u v e a u t o p s p e e d: ^3{0} ^7{1} ^2+{2}",$topSpeed,GetCurrentPlayerVar("UnitSpeed"),$difference));
ENDIF
IF ($topSpeed != 0 && $speed < $topSpeed)
THEN
$difference = $topSpeed - $speed;
privMsg( langEngine("^7Vitesse: ^3{0} ^7{1} ^1-{2}",$speed,GetCurrentPlayerVar("UnitSpeed"),$difference));
ENDIF
EndSub
Sub ExitDisplaySpeed( $userName )
PrivMsg( "Sorti du Speedtrap" );
/* 302 to 1019
$listOfPlayers = GetListOfPlayers();
$currTopSpeed = GetStoredValue( "GlobaltopSpeed" );
$newTopSpeed = 0;
FOREACH( $currUname IN $listOfPlayers )
{
$currTopSpeed = getPlayerVar( $currUname,"topSpeed" );
IF($currTopSpeed > $newTopSpeed)
{
$newTopSpeed = $currTopSpeed;
$unit = GetPlayerVar( "$currUname","UnitSpeed" );
$nom = getPlayerVar( "$currUname","NickName" );
}
ENDIF
}
ENDFOREACH
IF($newTopSpeed > GetStoredValue( "GlobaltopSpeed" ))
{
SetStoredValue( "GlobaltopSpeed", $newTopSpeed );
globalMsg( langEngine( "F a s t e s s s p e e d t r a p: {0} {1}{2}", $nom,$newTopSpeed,$unit ) );
}
*/
ENDIF
EndSub
Event OnLapperStart()
RegisterNodeAction( "BL1" , 300 , DisplaySpeed,ExitDisplaySpeed );
RegisterNodeAction( "BL1R" , 300 , DisplaySpeed,ExitDisplaySpeed );
RegisterNodeAction( "BL2" , 300 , DisplaySpeed,ExitDisplaySpeed );
RegisterNodeAction( "BL2R" , 300 , DisplaySpeed,ExitDisplaySpeed );
RegisterNodeAction( "FE1" , 300 , DisplaySpeed,ExitDisplaySpeed );
RegisterNodeAction( "FE1R" , 300 , DisplaySpeed,ExitDisplaySpeed );
RegisterNodeAction( "FE2" , 300 , DisplaySpeed,ExitDisplaySpeed );
RegisterNodeAction( "FE2R" , 300 , DisplaySpeed,ExitDisplaySpeed );
...