The online racing simulator
Searching in All forums
(184 results)
XmaX
S2 licensed
2 more questions.

How i can count Points for the Winners ?

And how i can set the time for the command? Example i type: !reset (for reinit) and 10 secs after the server reset come...

Greets
XmaX
S2 licensed
Quote from burnsy1882 :try this:
http://www.lfsforum.net/showthread.php?t=40857

I know that insim but i wanted make a new only for my Team

Quote from Heiko1 :its writen "Safety Car"

Just a tipp

Thanks for the tipp ^^
XmaX
S2 licensed
i have this code but doesnt work

if (Players[GetPlyIdx(MCI.Info[o].PLID)].PlayerName.Contains("SaftyCar"))

Race InSim
XmaX
S2 licensed
I wanted to do for my Team a Race insim but i need a command.

If the Yellow flag is on i wanted that show " Yellow Flag, please Drive slower and dont overtake"

2. When The racecontrol comens out with the Name Safty Car i wanted that shows: "Safty car.... my text".

How is that possible? Sorry for bad english

Greets
XmaX
S2 licensed
ahh ok.... Thats a Problem for me and have only kart :P
I dont read good -.-
Last edited by XmaX, .
XmaX
S2 licensed
http://www.kartinfos-forum.de/ ... c3bcrburgring-t-2012.html
Here you can read about the nürburgring. Sorry thats not only for Hirth and Superkarts....

Read it self when you can Speak german ^^
XmaX
S2 licensed
Ehm. I heared that on Nürburgring only Super Karts and Hirth can Racing and you need a Member of HSC or an special invition to this Track

Greets
XmaX
S2 licensed
Im interested too. Whats about Liedolsheim in Karlsruhe, Germany ? And with what Karts we will Racing ?
XmaX
S2 licensed
Hmm i dont understand. Must i do a new .cs?
XmaX
S2 licensed
Quote from dougie-lampkin :Erm...send a button with it as the text? It's no different to sending a normal text button...

Yes thats not the problem but how make in the button the distance ?
XmaX
S2 licensed
hmm good question. I wait for the answer too :P
XmaX
S2 licensed
private void MCI(Packets.IS_MCI MCI)
{

float mph = mps * 2.2369362920544f;
float kph = mps * 3.6f;

// Convert X, Y and Z into meters.
float currentX = x / 65536f;
float currentY = y / 65536f;
float currentZ = z / 65536f;

// Figure out how many meters we have moved since the previous MCI packet was received.
float distanceX = currentX - previousX;
float distanceY = currentY - previousY;
float distanceZ = currentZ - previousZ;
double metersTravelled = Math.Sqrt((distanceX * distanceX) + (distanceY * distanceY) + (distanceZ * distanceZ));


// Convert the total into MPH/KPH...
double kilometersTravelled = totalMetersTravelled / 1000;
double milesTravelled = totalMetersTravelled / 1609.344;

// Convert speed into meters per second.
float mps = (speed / 32768f) * 100f;
// Add this to our total.
totalMetersTravelled += metersTravelled.;
}
}
}

What i do wrong? Get always one error <.<
XmaX
S2 licensed
Quote from alexcand :Just a lil edit
I hope you like it

Thanks
XmaX
S2 licensed
XmaX
S2 licensed
Hi. I created a button and it works. :
InSim.Send_BTN_CreateButton("Test", Flags.ButtonStyles.ISB_DARK, 25, 50, 5, 90, 1, MSO.UCID, 8, false);

But how i can do a button for close the buttons?

Sorry for bad english.
XmaX
S2 licensed
Yes clock. I thinked when a new come on the server he can chose him/his timezone by a button and the clock is displayed when you type !clock and you can close it with a close button.
XmaX
S2 licensed
thats already posted
System.Timers.Timer BackUp = new System.Timers.Timer(300000);

void BackUp_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsConnection C in Connections)
FileInfo.UpdateUserLeave(C.Username, C.Cash, C.Cars);
}

and
BackUp.Enabled = true;
BackUp.Elapsed += new System.Timers.ElapsedEventHandler(BackUp_Elapsed);

But dont remove the other Systimer and Payuser
XmaX
S2 licensed
Can i paste a clocke for each user who is on the server ?

Greetz
XmaX
S2 licensed
Wow, little bug an all its wrong. Than you
XmaX
S2 licensed
sorry but dont work. I got a message too:
No overcharging for the Send_MST_Message - method takes 3 arguments. (Translatet with Google tranlator :P)
XmaX
S2 licensed
hi i need a pitlane command... i tried already but it was wrong
case "!pitlane":
InSim.Send_MST_Message("/pitlane" + Connections[GetConnIdx(MSO.UCID)].PlayerName + "was serviced", MSO.UCID, 0);
break;

Last edited by XmaX, .
XmaX
S2 licensed
Thats the correct answer :P Thank you very much. Nice Community

-XmaX
XmaX
S2 licensed
ahh yes thx, dont know that, and it work. Than you all. Can you tell me were there userfile is saved or how i can create userfiles ?

Greetz
XmaX
S2 licensed
see already, have it in my script already. But i want send not from me. Example. An Admin is the Bank, with a command he can give money without losing his own.

Thank you
Cruise Insim: User File and Givemoney Command or Button
XmaX
S2 licensed
Hi guys. Im an newbie at Programming. I tryed do to an userfile for my Cruise insim. But it dont work. I also need a Givemoney button oder command only for admin. Please help, Greetz
FGED GREDG RDFGDR GSFDG