InSim.Send_MST_Message("!help");
The name 'Conn' does not exist in the current context
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].PlayerName + " ^3finish his job for €" + prize);
<?php
IF ( ToNum( GetCurrentPlayerVar( "KM" ) > 100)
THEN
openPrivButton( "XRG",45,54,110,6,5,-1,32,strFormat( "^7{0}",Format_Car_Cash_Needed( "XRG" ) ),Buy_Car );
?>
openPrivButton( "Cruise_HUD3",50,0,100,5,5,-1,32, "strFormat( ^7Health: {0:0.00%}",GetCurrentPlayerVar( "Health" )
. "%nl%" . strFormat( "^7Bonus: {0:0.00%}",ToNum( GetCurrentPlayerVar("BonusMeter") / $Refund["dist"] ) );
RegisterZoneAction( "Traffic" , "BL1", 36,402, 5 , RSA_green,"" );
RegisterZoneAction( "Traffic" , "BL1", 36,402, 5 , RSA_amber,"" );
RegisterZoneAction( "Traffic" , "BL1", 36,402, 5 , RSA_red,"" );
RegisterScheduleAction( "0 1 * * * * *", RSA_green );
RegisterScheduleAction( "20 1 * * * * *", RSA_amber );
RegisterScheduleAction( "40 0 * * * * *", RSA_red );
Sub RSA_green()
closeGlobalButton( "tlight_bg&tlight_bga&tlight_colour");
openGlobalButton( "tlight_bg",91,6,18,9,1,6,32," ");
openGlobalButton( "tlight_bga",91,6,18,9,1,6,32," ");
openGlobalButton( "tlight_colour",84,0,20,20,1,6,0,"^2•" );
EndSub
Sub RSA_amber()
closeGlobalButton( "tlight_bg&tlight_bga&tlight_colour");
openGlobalButton( "tlight_bg",91,6,18,9,1,6,32," ");
openGlobalButton( "tlight_bga",91,6,18,9,1,6,32," ");
openGlobalButton( "tlight_colour",84,0,20,20,1,6,0,"^3•" );
EndSub
Sub RSA_red()
closeGlobalButton( "tlight_bg&tlight_bga&tlight_colour");
openGlobalButton( "tlight_bg",91,6,18,9,1,6,32," ");
openGlobalButton( "tlight_bga",91,6,18,9,1,6,32," ");
openGlobalButton( "tlight_colour",84,0,20,20,1,6,0,"^1•" );
EndSub
Sub RSA_hi()
IF ( $Mode == "Cruise" )
THEN
IF ( GetCurrentPlayerVar( "IdZone" ) == "TOKO" )
THEN
privmsg( "^7Welcome to ^6" . GetCurrentPlayerVar( "IdZone") );
ENDIF
ENDIF
EndSub
$distToDo = 100;
CatchEvent OnDistDone( $userName ) # Player event
IF ( $Mode == "Cruise" )
THEN
SetCurrentPlayerVar( "Cash", ToNum( GetCurrentPlayerVar( "Cash" ) + ToNum( 0.05 * GetConfigVar( "distToDo" ) ) ) );
IF ( ToNum( GetCurrentPlayerVar( "Bank" ) ) < 250000 )
THEN
SetCurrentPlayerVar( "Bank", ToNum( GetCurrentPlayerVar( "Bank" ) + ToNum( GetCurrentPlayerVar( "Bank" ) * ToNum( 0.000001 * GetConfigVar( "distToDo" ) ) ) ) );
ENDIF
SetCurrentPlayerVar( "Health", ToNum( GetCurrentPlayerVar( "Health" ) - ToNum( 0.000008 * GetConfigVar( "distToDo" ) ) ) );
SetCurrentPlayerVar( "KM", ToNum( GetCurrentPlayerVar( "KM" ) + GetConfigVar( "distToDo" ) ) );
SetCurrentPlayerVar("BonusMeter", ToNum( GetCurrentPlayerVar("BonusMeter") + GetConfigVar( "distToDo" ) ) );
Cruise_HUD( $userName );
IF ( GetCurrentPlayerVar("Health") < "0.01" )
THEN
IF( $Cruise_HH != "Yes" ) THEN
globalMsg( langEngine( "%{cruise_fine_db}%", $userName,FormatCash($Fine["Docter"]) ) );
SetCurrentPlayerVar( "Cash", ToNum( GetCurrentPlayerVar( "Cash" ) - $Fine["Docter"] ) );
SetCurrentPlayerVar( "Health", "1" );
ENDIF
ENDIF
IF ( GetCurrentPlayerVar("TotDistMeter") >= ToNum( $Refund["dist"] * GetCurrentPlayerVar("Refund") ) )
THEN
SetCurrentPlayerVar("Refund", ToNum( GetCurrentPlayerVar("Refund") + 1 ) );
SetCurrentPlayerVar("BonusMeter", "0" );
globalMsg( strFormat( "^7{0} Recived {1:C} ^1Reason: ^7Distance bonus",$userName,$Refund["amount"] ) ) );
SetCurrentPlayerVar( "Cash", ToNum( GetCurrentPlayerVar( "Cash" ) + $Refund["amount"] ) );
ENDIF
IF ( GetCurrentPlayerVar( "Chase" ) == "1" ) THEN $argv = GetCurrentPlayerVar( "Chase" );
IF ( GetCurrentPlayerVar( "Chase_S" ) != "0" ) THEN
$Chase[$argv] = "^1-^4-^1-^4-^1-^4-^1-%nl%" . "Suspect: " . GetCurrentPlayerVar( "Chase" ) . "%nl%Cop: " . GetPlayerVar( GetCurrentPlayerVar( "Chase" ), "Chase" ) . "%nl%Distance: ".DistFromUser($userName,$argv)." Meters%nl%^4-^1-^4-^1-^4-^1-^4-" . "%at%" . "^4-^1-^4-^1-^4-^1-^4-%nl%" . "Suspect: " . GetCurrentPlayerVar( "Chase" ) . "%nl%Cop: " . GetPlayerVar( GetCurrentPlayerVar( "Chase" ), "Chase" ) . "%nl%Distance: ".DistFromUser($userName,$argv)." Meters%nl%^1-^4-^1-^4-^1-^4-^1-";
openPrivButton( "CopSys",160,15,35,5,5,-1,32, $Chase[$argv] );
ENDIF ENDIF
IF ( GetCurrentPlayerVar( "Chase_S" ) == "1" )
THEN
$argv = GetCurrentPlayerVar( "Chase" );
IF ( ToNum(DistFromUser($userName,$argv)) < ToNum("126") )
THEN
$Chase[$argv] = "^1-^4-^1-^4-^1-^4-^1-%nl%" . "Suspect: " . GetCurrentPlayerVar( "Chase" ) . "%nl%Cop: " . GetPlayerVar( GetCurrentPlayerVar( "Chase" ), "Chase" ) . "%nl%Distance: ".DistFromUser($userName,$argv)." Meters%nl%^4-^1-^4-^1-^4-^1-^4-" . "%at%" . "^4-^1-^4-^1-^4-^1-^4-%nl%" . "Suspect: " . GetCurrentPlayerVar( "Chase" ) . "%nl%Cop: " . GetPlayerVar( GetCurrentPlayerVar( "Chase" ), "Chase" ) . "%nl%Distance: ".DistFromUser($userName,$argv)." Meters%nl%^1-^4-^1-^4-^1-^4-^1-";
openButton( $argv, "CopSys",160,15,35,5,5,-1,32, $Chase[$argv] );
openPrivButton( "CopSys",160,15,35,5,5,-1,32, $Chase[$argv] );
IF ( ToNum(DistFromUser($userName,$argv)) < ToNum("6") )
THEN
globalMsg( langEngine( "%{cruise_chase_ca}%",$userName,$argv ) );
CloseButton( $argv, "CopSys" ); ClosePrivButton( "CopSys" );
SetPlayerVar( $argv, "Chase_S", "0" ); SetCurrentPlayerVar( "Chase_S", "0" );
SetPlayerVar( $argv, "Chase", "" ); SetCurrentPlayerVar( "Chase", "" );
SetPlayerVar( $argv, "Chase_Last", $userName );
IF ( GetPlayerVar( $argv,"Bank_Rob" ) != "" )
THEN
SetPlayerVar( $argv,"Bank_Rob", "" );
ENDIF
ENDIF
ELSE
globalMsg( langEngine( "%{cruise_chase_lc}%",$userName,$argv ) );
CloseButton( $argv, "CopSys" ); ClosePrivButton( "CopSys" );
SetPlayerVar( $argv, "Chase_S", "0" ); SetCurrentPlayerVar( "Chase_S", "0" );
SetPlayerVar( $argv, "Chase", "" ); SetCurrentPlayerVar( "Chase", "" );
ENDIF
ENDIF
UserGroupFromFile( "Police", $Dir["Police"] );
IF ( ToNum( GetCurrentPlayerVar( "KM" ) ) >= 1000000 )
THEN
IF ( UserInGroup( "Police",$userName ) != 1 )
THEN
MoveUserToGroup( "Police",$userName );
UserGroupToFile( "Police", $Dir["Police"] );
GlobalMsg( langEngine( "%{cruise_cop_new}%",$userName ) );
ENDIF
ENDIF
ENDIF
EndCatchEvent