The online racing simulator
Searching in All forums
(76 results)
impresora
Demo licensed
Quote from Dygear :Oh here we go again. This is why Open Sourcing your code makes sure you get the kudos.

Ye... But he just copy codes don't worry.
impresora
Demo licensed
Yep, it is mine. Do you see anyone helping you ??? No ??? That's because u ' re a lier and a robber.
impresora
Demo licensed
You did not created. I sended it to you.

1 - You strealing my code.

No one, will help you.
impresora
Demo licensed
Ex: I used 18 points, now it gaveme:


202;364
210;390
222;429
238;446
259;439
276;418
288;382
282;355
300;349
303;381
294;422
269;446
242;466
231;460
209;441
193;400
187;363


Now how i work with this ?
impresora
Demo licensed
But he wants to CRUISE SERVER , not for lfs lapper :s
impresora
Demo licensed
Just make a button with times ... :s
impresora
Demo licensed
Code:

InSim.Send_BTN_CreateButton("", Flags.ButtonStyles.ISB_DARK, 80, 100, 50, 50, 180, Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID, 2, true);
InSim.Send_BTN_CreateButton("^0[^4DDR^0]^7BANK", Flags.ButtonStyles.ISB_LIGHT, 10, 100, 50, 50, 181, Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID, 2, true);

impresora
Demo licensed
Spam :s
impresora
Demo licensed
No i'm not, and sorry for bad english.

Please, helpme.
[HELP]Insim spams message
impresora
Demo licensed
Hello i've got a problem with my InSim application.

I'm making an Place that show's something like bank, but i have the button: WITHDRAWN and i programmed it to delete all buttons and appaer intructions saying what should make etc...

But that another buttons delete for 1 sec and appaer again and the instructions appaer too :S

Please can someone solve? I tried to add a message, so i go to place i stop and this message SPAM'S a lot. When i get out of this place this message stop.


Please help.
impresora
Demo licensed
Im not using crack -.- My brother have S2 and im scripting to he okey? -.-
impresora
Demo licensed
Im using a X track, and friend of mine sayd that i can't use nodes in X and Y, how do i make roadnames now? :S
Last edited by impresora, .
impresora
Demo licensed
yes i know that was explained, but how do i get nodes? :S
Nodes????
impresora
Demo licensed
I wanna know what means a "Node", like in this code:

if ((MCI.Info[i].Node >= 380) && (MCI.Info[i].Node < 520))
{

Is Node, a X coordinate? Or Y ? so what is? And how can i know the coordinates? :S


I tried to search in google, and in INSIM.txt and i didn't find anithing, please helpme.
impresora
Demo licensed
Im sorry, i readed already and i don't understand or don't find... Please Helpme, can you put here only the code to buy XFG please?
Code in Button
impresora
Demo licensed
Hello, i have 2 questions to make.

First Question:


I've created a car shop, and i have (BUY) / (SELL) buttons, and i wan't to put Buy code for XFG in BUY button.

The code of !buy command is this:

case "!buy":
if (StrMsg.Length == 2)
{
if (Connections[GetConnIdx(MSO.UCID)].Cars.Contains(StrMsg[1].ToUpper()))
InSim.Send_MTC_MessageToConnection("^1Car already owned", MSO.UCID, 0);
else if (Dealer.GetCarPrice(StrMsg[1]) == 0)
InSim.Send_MTC_MessageToConnection("^1Invalid car selection", MSO.UCID, 0);
else if (Connections[GetConnIdx(MSO.UCID)].Cash >= Dealer.GetCarPrice(StrMsg[1]))
{
string Cars = Connections[GetConnIdx(MSO.UCID)].Cars;

switch (StrMsg[1].ToUpper())
{
case "UF1":
Cars = Cars + " " + "UF1";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("UF1");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a UF1");
break;

case "XFG":
Cars = Cars + " " + "XFG";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("XFG");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a XFG");
break;

case "XRG":
Cars = Cars + " " + "XRG";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("XRG");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a XRG");
break;

case "LX4":
Cars = Cars + " " + "LX4";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("LX4");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a LX4");
break;

case "LX6":
Cars = Cars + " " + "LX6";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("LX6");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a LX6");
break;

case "RB4":
Cars = Cars + " " + "RB4";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("RB4");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a RB4");
break;

case "FXO":
Cars = Cars + " " + "FXO";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("FXO");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a FXO");
break;

case "XRT":
Cars = Cars + " " + "XRT";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("XRT");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a XRT");
break;

case "RAC":
Cars = Cars + " " + "RAC";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("RAC");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a RAC");
break;

case "FZ5":
Cars = Cars + " " + "FZ5";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("FZ5");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a FZ5");
break;

case "UFR":
Cars = Cars + " " + "UFR";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("UFR");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a UFR");
break;

case "XFR":
Cars = Cars + " " + "XFR";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("XFR");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a XFR");
break;

case "FXR":
Cars = Cars + " " + "FXR";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("FXR");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a FXR");
break;

case "XRR":
Cars = Cars + " " + "XRR";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("XRR");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a XRR");
break;

case "FZR":
Cars = Cars + " " + "FZR";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("FZR");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a FZR");
break;

case "MRT":
Cars = Cars + " " + "MRT";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("MRT");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a MRT");
break;

case "FOX":
Cars = Cars + " " + "FOX";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("FOX");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a FOX");
break;

case "FBM":
Cars = Cars + " " + "FBM";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("FBM");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a FBM");
break;

case "FO8":
Cars = Cars + " " + "FO8";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("FO8");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a FO8");
break;

case "BF1":
Cars = Cars + " " + "BF1";
Connections[GetConnIdx(MSO.UCID)].Cars = Cars;
Connections[GetConnIdx(MSO.UCID)].Cash -= Dealer.GetCarPrice("BF1");
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7bought a BF1");
break;

}
}
else InSim.Send_MTC_MessageToConnection("^1Not enough cash. Need €" + (Dealer.GetCarPrice(StrMsg[1]) - Connections[GetConnIdx(MSO.UCID)].Cash), MSO.UCID, 0);
}
else
{
InSim.Send_MTC_MessageToConnection("^6|^7 Invalid command. Please see ^2!help^7 for a command list", MSO.UCID, 0);
}
break;

How do i put this in BUY button?



Second Question:



When i press a button, i wan't to show a TEXT space, like when we press T and we can write, how can i make that and then show like a /rcm message?


Please Helpme, thank you.
impresora
Demo licensed
I only need that to finish my insim :'(
impresora
Demo licensed
Im not spamming.
impresora
Demo licensed
repply? ***
impresora
Demo licensed
okey it is working man now i could put all of commands in buttons eheh

Now i have more one question, is about locations when i stop somewhere and a button appear. How do i make that? (LAST QUESTION :P)
impresora
Demo licensed
Okey its working Now how i add !engage command to the BUTTON?

Copy all the command?

(COMMAND

case "!chase":
if (StrMsg.Length == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].IsOfficerORCadet != 0)
{
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 0)
{
ChaseInitiated = 1;
ChaserUCID = MSO.UCID;
}


if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 4)
{
Connections[GetConnIdx(MSO.UCID)].ChaseCondition = 5;
BumpCondition = 1;
BumpUCID = MSO.UCID;

}
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 3)
{
Connections[GetConnIdx(MSO.UCID)].ChaseCondition = 4;
BumpCondition = 1;
BumpUCID = MSO.UCID;

}
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 2)
{
Connections[GetConnIdx(MSO.UCID)].ChaseCondition = 3;
BumpCondition = 1;
BumpUCID = MSO.UCID;

}
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 1)
{
Connections[GetConnIdx(MSO.UCID)].ChaseCondition = 2;
BumpCondition = 1;
BumpUCID = MSO.UCID;

}


}
else
{
InSim.Send_MTC_MessageToConnection("^1Not Authorised", MSO.UCID, 0);
}
}
else
{
InSim.Send_MTC_MessageToConnection("^6|^7 Invalid command. Please see ^2!help^7 for a command list", MSO.UCID, 0);
}
break;

impresora
Demo licensed
I have been created a button that i added ISB_CLICK and in server we can click them, now how do i put an action in this button?
impresora
Demo licensed
Yeah im learning c++ in school and having a good progress in INSIM.

But where should i put bool and if caratcords?
impresora
Demo licensed
Okey so and if i want to stop in a place and appaer something, how should i make?
Last edited by impresora, .
impresora
Demo licensed
Okey so
if ((MCI.Info[i].Node >= 731) && ((MCI.Info[i].X / 196608) <= -203) && ((MCI.Info[i].Y / 196608) <= -63) && ((MCI.Info[i].Y / 196608) >= -147))
{

This is: (MCI.Info[i].Y / 196608) <= -63)

Y = 196608, but for what is <= -63 ?
FGED GREDG RDFGDR GSFDG