The online racing simulator
Searching in All forums
(217 results)
Private Message
sarxes
S3 licensed
Hey all,

I know that is possible to make a private message by the command !pm and the username and your message but I thought about that it would be easier to have something like that what I mention now with windows. You know its very boring to always put the !pm then find the player's username (sometimes is so vired) then your message. It's all takes time. So I made a small scheme what I'm talking about. So its possible to make ? Somebody could make this ?


Your faithfully [MD]SarXes
sarxes
S3 licensed
Sounds good and made my attention for it ! Hope it will be something good or excellent !
sarxes
S3 licensed
Thank You for the quick reply ! Problem Solved !

1 more question !

It's possible to appear a message if the 2 players are on the zone set and to show this message for the 2nd player who is in zone 2. I made a quick idea what I'm talking about !

I thought about something like that:

IF 1st zone is somebody

THEN

IF 2nd zone is somebody

THEN message for the 2nd player
Last edited by sarxes, .
sarxes
S3 licensed
THX for the help DanTec.

My other question is that is possible to put some delay between the command %at% because its changes the text in every second. It would be better for me with a delay of 3-4 seconds.

How could I use the zone code . Example if someone is on the zone what I set it shows the message or the button like: turn right or Yield or whatever ...
sarxes
S3 licensed
Quote from Bass-Driver :Here's something i made few min ago.
i havent tested yet.

#Create a textfile with the name IsInTeam and place this in your includes folder
#Enter the usernames of your team

#Here's an example how the insim checks the tag:
#I enter the server with the following nickname [MD]driver

UserGroupFromFile( "IsInTeam", "includes/IsInTeam.txt" );
$tag = substr( GetCurrentPlayerVar("NickName"),0,4 ); #Start at the beginning ( 0) and cut everything after the 4th character $tag = "[MD]";
IF(($tag == "[MD]")THEN
IF( UserInGroup( "IsInTeam",GetCurrentPlayerVar("UserName")) != 1 )) THEN #this line will check if the username exist in the file you created. IF NOT: goto next line , else abort script.
privmsg("^1You're not allowed to wear this tag!!");
privmsg("^1Pls change your name!!");
ENDIF
ENDIF


It gives an error to me !


<?php 
3
/20/2013 1:17:45 PM -> Unexpected function in event :OnConnect on file ".\default\.\includes\.\MD.lpr" at line #34
3/20/2013 1:27:54 PM -> Syntax error in cfg file ".\default\.\includes\.\racecontrol.lpr" at line #85
?>

Team restriction
sarxes
S3 licensed
There is any way to make a restriction for players not to use our name in server without our permission. EX. if somebody use the [MD] tag before his name on our server he will be spectated immediatly and he were not able to join on race until he changes his name. And he gets the message that " You are not in team , please change your name. For the easier way for the lapper the team members username were stored in a file so if somebody is not in the file cant use the [MD] in any way. It's possible ?

THX !
sarxes
S3 licensed
Quote from hamzeh_s :thanks for answers guys
there is another problem here. autocross have only one start position and we want to race in autocross layout for 4 laps. how can i make start position for two cars with start lights?

view of ROC layout:


At the moment you cant set ... You can set only one start position. With lapper is possible to make zones where a start light is gets counting . . . Search the LFSLapper Development for help ! Cheers
sarxes
S3 licensed
Just a question:

I wanted to make a windows with the same cordinate database.

I made this for ex:


<?php 
GlobalVar $WLCCOrigT
$WLCOrigT 70;            
GlobalVar $WLCOrigL$WLCOrigL 68;
?>

After I set it into a window I had this error:


<?php 
Syntax error in cfg file 
".\default\LFSLapper.lpr" at line #475
    
'openPrivButton' parameter #1() is wrong type at line #
    
Function 'onconnect' script aborted
?>


I can use this globalVariables just by CIF ?
sarxes
S3 licensed
Thank You, now I understand why and how can I do next time !
sarxes
S3 licensed
THX for your reply, already resolved the problem, but maybe I'll change for this method !!!
sarxes
S3 licensed
Still not working .... :/
sarxes
S3 licensed
Quote from Bass-Driver :try this

$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
IF($AngleVelocity < 0)THEN
$Angle = ($AngleVelocity)*(-1);
ELSE
$Angle = ($AngleVelocity)*(1);
ENDIF

openPrivButton( "driftangledegree",83,23,30,5,4,-1,0,langEngine( "%{driftmeter_driftangledegree}%" ));
openPrivButton( "driftanglerev",85,25,20,10,4,-1,0,langEngine( "%{driftmeter_driftanglerevbox}%" , $Angle));


nope, still not working !
sarxes
S3 licensed
Quote from Bass-Driver :i have solved this by using the OnDriftScore Event
it also solves your negative angle issue.

$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
IF($AngleVelocity < 0)THEN
$Angle = ($AngleVelocity)*(-1);
ELSE
$Angle = ($AngleVelocity)*(1);
ENDIF

IF($Angle >= 110)THEN
BLAHBLAH your code
ENDIF


Hey thx for the fast reply , but now it 's doesnt working on the left side :

My code:


<?php 
    
IF($AngleVelocity 0)THEN
    
    THEN

        $Angle 
= ($AngleVelocity)*(-1);

        
closePrivButton("drifangledegree&driftangle");
        
openPrivButton"driftangledegree",83,23,30,5,4,-1,0,langEngine"%{driftmeter_driftangledegree}%" ));
        
openPrivButton"driftanglerev",85,25,20,10,4,-1,0,langEngine"%{driftmeter_driftanglerevbox}%" GetCurrentPlayerVar"Angle_Reverse")));

    ELSE
        
        
$Angle = ($AngleVelocity)*(1);
        
closePrivButton("drifangledegree&driftanglerev");
        
openPrivButton"driftangledegree",83,23,30,5,4,-1,0,langEngine"%{driftmeter_driftangledegree}%" ));
        
openPrivButton"driftangle",79,25,30,10,4,-1,0,langEngine"%{driftmeter_driftanglebox}%" $AngleVelocity ));

    ENDIF
EndCatchEvent
?>


sarxes
S3 licensed
Hey,

Somebody could help me to fix it and describe me how to set these :

I have made some modification in WHO CIF:


<?php 
Sub DoWhoMemberInfo 
$KeyFlags$id )
    
$rowHeight 5;
    
$origT $CifOrigT 1;
    
$DialogPrefix split$id,"_",) . "_";
    
$Ucid ToNum(split$id,"_",));
    
$thisPlayer GetPlayerInfo();
    
$thatPlayer GetPlayerInfoGetPlayerVarByUcid($Ucid"UserName") );

    
closeButtonRegex ($thisPlayer["UserName"], $DialogPrefix ".*");

    
openPrivButton $DialogPrefix "statsdetails"73489065, -116langEngine "%{main_statsdetails}%"$thatPlayer["UserName"], $thatPlayer["NickName"], $thatPlayer["Car"], $thatPlayer["PBDrift"], getLapperVar("LongTrackName"), $thatPlayer["Dist"], $thatPlayer["UnitDist"] ) );
    
?>


<?php 
Lang 
"EN" # Race Events messages
    
info_header_1 "^7Detailed Player Information";
    
info_name "^7Racer Name:";
    
info_membertype "^7Member Type:";
    
info_header_2 "^7Player Statistics";
    
info_distance "^7Total Distance:";
    
main_statsdetails "^7Username: ^3{0}^7 - Nickname: {1}"
        
"%nl%"
        
"%nl%^7Your current best Drift Score (with ^3{3}^7): ^3{4}"
        
"%nl%"
        
"%nl%^7Current Track: ^3{5}^0 [ {0} ]"
        
"%nl%^7You've done: ^3{6} ^7laps, which is approx ^3{7} ^7{6}KM"
        
"%nl%";
EndLang
?>


But it wont gives the right order ... I tried to change the numbers in brackets but I cant get the normal order.


How to set to be okay ? I attached my screen about this "bug" in my lapper
sarxes
S3 licensed
Hi,

I just need a little help. I saw this bug or just at me that when I hit the car from the right and the car gets spinning to right the lapper wont recognize that the degree set in is bigger, but in case the car gets spinning to the left immediatly recognize that ! What the problem should be ?


<?php 
$MinAngleVelocity 
120;
?>

My other question is what I cant figure out is that how could I set "free" zones on the layout where the Idle System is wont work. Ex:

The Current Zone is : 31:-574

Who in this zone wont be kicked after the idle times is over. Any Idea ?
sarxes
S3 licensed
I think you see that there is no close button. Sorry for reply but I really dont understand for "coding"
sarxes
S3 licensed
It gives this error:


<?php 
2
/1/2013 5:22:14 PM -> Syntax error in cfg file ".\default\.\includes\.\adminpanel.lpr" at line #17
    
Function not defined...AdminPanel
    
Function 'onmso.\default\.\includes\.\adminpanel.lpr-2' script aborted
?>


Last edited by sarxes, .
sarxes
S3 licensed
Awesome, it's possible to change the ban to pit (teleport driver back to pitlane) ? I think that would be all what I need ? If its okay, pls send me the file or the whole code.

Cheers !
sarxes
S3 licensed
Quote from Kyle-Caz :you can download race control manager (can be downloaded here) and put it in in your bin\default\includes then go to addonsused.lpr and open it with notepad and put at the top of saftycar.lpr and put: include( "./racecontrol.lpr"); and done!

can be downloaded here: http://www.mediafire.com/view/?zwv6rd7d1afk06h
picture here: http://www.mediafire.com/?hswrxa01w2x7hv7
look at the picture BEFORE you download

Thank you , I know this add -on and I have it, but I want a quicker way for these function... Thanx anyway ! I hope Bass-Driver will help me !
sarxes
S3 licensed
Thank you sinanju I 'll give a chance for it
sarxes
S3 licensed
Can somebody help me ?
sarxes
S3 licensed
I agree... a 2-3 KM long drag lane or a track with 2-3 km long straight would be very useful. +1 for the idea
sarxes
S3 licensed
Nice work sinanju, I think I will implement in my server Happy New Year !
sarxes
S3 licensed
Okay, thank you very much ... Im not hurry, you have time !!!
sarxes
S3 licensed
So It's hard to make this table ?
FGED GREDG RDFGDR GSFDG