[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] ((MCI.Info[0].X >= 46176313) && (MCI.Info[0].Y >= 15915129)) ///this code verified the coordinates, good=send message : bad=no send
{
InSim.Send_MST_Message([/SIZE][SIZE=2][COLOR=#a31515]"/msg test^3X "[/COLOR][/SIZE][SIZE=2] + MCI.Info[0].X); ///this code send "test^3 -4228125845" ///the number is the coordinate X.
InSim.Send_MST_Message([/SIZE][SIZE=2][COLOR=#a31515]"/msg test2^4Y "[/COLOR][/SIZE][SIZE=2] + MCI.Info[0].Y);[/SIZE][SIZE=2] ///"test^4 -4228125845" ///the number is the coordinate Y.[/SIZE]
[SIZE=2] }
[/SIZE]
InSim.Send_MST_Message("/msg ^3X " + MCI.Info[0].X);
InSim.Send_MST_Message("/msg ^4Y " + MCI.Info[0].Y);
if ((MCI.Info[0].X >= 442) && (MCI.Info[0].Y >= 442))
{
InSim.Send_MST_Message("/msg ^7You have found your daily lottery ticket!");
}
{
InSim.Send_MST_Message("/msg ^3X " + MCI.Info[0].X);
InSim.Send_MST_Message("/msg ^4Y " + MCI.Info[0].Y);
}
case "!pay":
if (StrMsg.Length > 0)
{
if (StrMsg[1].Contains("-"))
InSim.Send_MTC_MessageToConnection("^7Invalid command", MSO.UCID, 0);
else
{
int Pay = int.Parse(StrMsg[1]);
Connections[GetConnIdx(MSO.UCID)].Cash -= Pay;
InSim.Send_MST_Message("/msg " + Connections[GetConnIdx(MSO.UCID)].PlayerName + "^7 paid $" + Pay + " fine");
}
}
break;
0.44704=
44704
-------
100000
= (44704 / 100000)
cfg = new ConnectionSettings("127.0.0.1", 29999, 0, Flags.InSimFlags.ISF_MCI, '!', 1000, "passwordforconnect", "^3Cruise Test");