The online racing simulator
Searching in All forums
(931 results)
Fire_optikz001
S2 licensed
Quote from Yisc[NL] :I'm not 100% sure I understand your question, but here's some code I made a while ago:


<?php 
Event OnMSO
$text # Player event
    
SWITCH( $command )
        CASE 
"!msg":
            IF( 
UserInGroup"admin"$userName ) == )
            
THEN
              openPrivButton
"send_msg",52,0,48,5,5,-1,32,"^3Click to resend message: &" .GetCurrentPlayerVar ("message"),rcm_msg );
              
openPrivButton"write_send_msg_bg",100,0,48,10,5,-1,32,"" );
              
openPrivTextButton"write_send_msg",100,5,48,5,5,0,"^3Write message and click OK (max. 50 characters)","^2Click to type and send a message",50,rcm_written_msg );
              
openPrivButton"close_msg",148,0,10,10,5,-1,32,"^1X",close_msg );
            ELSE
              
privMsg"^1You are not allowed to open that");
            ENDIF
            BREAK;
    ENDSWITCH
EndEvent

Sub rcm_written_msg 
$message )
    
SetCurrentPlayerVar ("message""^2".$message);

    
cmdLFS "/rcm ^2" $message );
    
cmdLFS "/rcm_all" );
    
openPrivButton"send_msg",52,0,48,5,5,-1,32,"^3Resend message: &^8" .GetCurrentPlayerVar ("message"),rcm_msg );
EndSub

Sub rcm_msg 
$KeyFlags $argv )
    
cmdLFS "/rcm ^2" GetCurrentPlayerVar "message" ) );
    
cmdLFS "/rcm_all" );
EndSub

Sub close_msg 
$KeyFlags $argv )
    
closePrivButton "send_msg&write_send_msg_bg&write_send_msg&close_msg" );
EndSub
?>



ok u know you know in the exe u type cmdlfs (msg)? and it sends it to all the server insim is connected to? well i wanna do that from inside lfs with a command u have any idea?

i was thinking of some type of lapper addon would work
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from vicbel :Do you offer any servers located in America?

there isnt any lag for me and im in usa

EDIT: what are the specs of ur webhosting like bandwidth and hd space?
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
i know this is a lil late but...
for your !pm command do


<?php 
    
CASE "!pm":
           IF( 
$argv != "" )   THEN
            $idxSpace 
indexOf$argv" ");
                                IF( 
$idxSpace != -THEN
            $toUser 
subStr$argv,0,$idxSpace );
            
$argv trimsubStr$argv,$idxSpace ) );
          
privMsg "^6Private Msg To ^8" GetPlayerVar$toUser "Nickname" )  );
            
privMsg "^7" $argv );
            
userMsg (GetCurrentPlayerVar"Nickname" ), $toUser$argv);
  ELSE
             
privMsg "^7Command needs 2 paremters" );
 ENDIF
 ELSE
             
privMsg "^7Command needs 2 paremters" );
 ENDIF
            BREAK;
?>

because it prevents lapper from crashing when a user just types "!pm"
Fire_optikz001
S2 licensed
should work 1works for me :|
Update
Fire_optikz001
S2 licensed
New site

Site link will be released when new site is finished
  • hosting by: [SC] mileycyrus
  • domain paid for by: [SC] Matty
  • web designer: [SC]RacerX
New Insim
all in one insim
yes u read that right it has...
  1. Cruise insim
  2. Race insim
  3. Drift insim
Fire_optikz001
S2 licensed
nvm i saw the awnswer a few post up
Fire_optikz001
S2 licensed
lfs crashes when ever 2 people crash :| or 1 person hits a barrier or something like that its crashed like 5 times today
Fire_optikz001
S2 licensed
i would like to welcome
[SC] RacerX
Fire_optikz001
S2 licensed
Quote from Krayy :In any InSim you can only tell if a vehicle is moving, you cannot disable their controls, force brake etc and if they join the race late, then they start in the pits. Even if they do move, you have limited options as to what you can do...apply a time/drive through penalty or spec them.

or kick

and as he was saying there is

<?php 
Event OnFalseStartL1
()
EndEvent

Event OnFalseStartL2
()
EndEvent
?>


in the lpr
Fire_optikz001
S2 licensed
i would like to welcome

[SC] Muffin (Turbonurbo)
[SC] Chuggins (Chuggins)
[SC] Ceema (Sibylla)
[SC] MikE (BMWM3GTR)
[SC] GuberX (GuberX)
Fire_optikz001
S2 licensed
Quote from Guber-X :im very interested in join your team, i mainly drift. but i also race

ive been playin LFS since 2004 and bought my S2 lisence in 2005. I drift with Kb/s and race with DFP

hit me back if you are interested

Quote from Danny LFS :I've been on my team but then I closed it as it was no deal. Can I join? I mostly race and drift with a PS2 gamepad (except FBM)

PM me if interested.

ok i pmed u both
Fire_optikz001
S2 licensed
Quote from master_lfs.5101 :... this kid has annoyyed the crap outa me. ...

+1
lol
Fire_optikz001
S2 licensed
what this mean?
-----------------------------------------------------------------------------
10/7/2009 9:19:22 PM

Lapper Instance 78.110.160.85/29000 abort!

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
mscorlib
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
at InSim.Decoder.SMALL..ctor(Byte[] packet) in C:\Users\T3ChARmy\Desktop\desktop\src\InSim4.cs:line 828
at LFSLapper.LFSClient.Loop(Connect insimConnection) in C:\Users\T3ChARmy\Desktop\desktop\src\LFSClient\loop.cs:line 878
at LFSLapper.LFSClient.doloop() in C:\Users\T3ChARmy\Desktop\desktop\src\LFSClient\lfsclient.cs:line 632
at LFSLapper.LFSListen.Listen.goWorkMode() in C:\Users\T3ChARmy\Desktop\desktop\src\LFSListen\Listen.cs:line 85
at LFSLapper.LFSListen.Listen.start() in C:\Users\T3ChARmy\Desktop\desktop\src\LFSListen\Listen.cs:line 126
Void ThrowArgumentOutOfRangeException(System.ExceptionArgument, System.ExceptionResource)
Closing Instance...
-----------------------------------------------------------------------------

Fire_optikz001
S2 licensed
Quote from Krayy :... fire_optikz,...
Winner gets a beer next time they are in New Zealand

ahg im to young to drink >.>
Fire_optikz001
S2 licensed
Quote from Krayy :thought so...this patch isnt for that problem..i'm still working on that

oh ok
Fire_optikz001
S2 licensed
Quote from Krayy :Which part? The PM'ing?

ye
Fire_optikz001
S2 licensed
still dont work :|
Fire_optikz001
S2 licensed
lol
Fire_optikz001
S2 licensed
thanks for all the help krayy i really appreciate it!!!

glad you found my bug
Fire_optikz001
S2 licensed
Quote from Krayy :Have you copied the RcaerArray code from the attached lapper file into your one in the right place? Also any vars that have the prefix $ra*

Entries need to be copied from OnLapperStart, OnConnect, OnDisconnect

i actually added all my code to ur file
Fire_optikz001
S2 licensed
Quote from Chuggins :driving force pro

i dont got one :|
Fire_optikz001
S2 licensed
EDIT: stupid me

EDIT2: who still dont work for me
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
if some one was nice could they post how this actually should be done :|

cause there would have to be some sort of prvention sys from people using other peopls usernames and pass words
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from Tim NL :Hi,
GlobalVar $driftbox; $driftbox = "no"; This is a globar var ( will counts for everybody)

For playervars use this

SetCurrentPlayerVar( "driftbox","no" );
and
GetCurrentPlayerVar( "driftbox" );

do these reset every time insim does?
Fire_optikz001
S2 licensed
kravvy i found another bug with the temp thing

when u do !pm (user) with no message it crashes i was trying to find a way to fix it but i tired this :


<?php 
CASE "!pm":
            
$idxSpace indexOf$argv" ");
            
$toUser subStr$argv,0,$idxSpace );
            
$argv trimsubStr$argv,$idxSpace ) );
            
            IF( 
$argv != "" )
            
Then
              privmsg
("^6Personal Msg To ^8" GetPlayerVar$toUser"Nickname" ) );
              
privmsg("^7" $argv );
            
userMsg (GetCurrentPlayerVar"Nickname" ), $toUser$argv);
            ELSE
                          
privmsg("^1YOU Must Have A Message To Send To The User!");
            ENDIF
            BREAK; 
?>

and it dont work
FGED GREDG RDFGDR GSFDG