The online racing simulator
Searching in All forums
(8 results)
sc1996
Demo licensed
Hello and thanks for all help.
the code is mine and not of the impresora so do not worry,
I wish that when people do! call911 a message appear on the cadet's or officer's, and if there were no police appear a warning message.

Sorry for my bad english.
sc1996
Demo licensed
Quote from impresora :You did not created. I sended it to you.

1 - You strealing my code.

No one, will help you.

Is your? where?
sc1996
Demo licensed
Problem solved, can close this topic.
Thanks for all help's.
command call911
sc1996
Demo licensed
Hello,
Yesterday, i created a command for people in lfs can request help in my insim, doing !call911
but when i tested my command he don´t found cadet´s online. What is the problem?
And i want that the request go to cadet´s and officer´s. Can you help me?
The command is the next:

[Command("call911", "call911")]
public void callpolice(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
clsConnection Conn = Connections[GetConnIdx(MSO.UCID)];
if (StrMsg.Length > 0)
{
int FoundCadet = 0;
foreach (clsConnection C in Connections)
{
if (Conn.IsCadet == 1)
{
FoundCadet = 1;
InSim.Send_MTC_MessageToConnection("^1-^7 Please wait for awhile your Call is Accepted!", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^1-^7 Calling for Police Request: ", C.UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1-^7 Name: " + Conn.PlayerName, C.UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1-^7 Located: " + Conn.Location, C.UniqueID, 0);
C.PoliceUsername = Conn.Username;
Conn.PoliceUsername = 1;
}
}
if (Conn.IsCadet == 0)
{
InSim.Send_MTC_MessageToConnection("^1»^7 There are no Polices Online :(", MSO.UCID, 0);
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1»^7 Invalid command. See ^2!help^7 for a command list", MSO.UCID, 0);
}
}

Thanks for all help, and have a good day.
sc1996
Demo licensed
Quote from broken :Meh, you need to Compile.

Yes i know. But makes no changes at the same.
ChatCommands.cs
sc1996
Demo licensed
Hi everyone,
I have been developing a insim, but when I went to edit my file ChatCommands.cs. When I change the file but in LFS I did not notice any change what can I do? I can edit the file and in LFS will make the changes.
Thanks to all racers: D.
Sorry for my bad english.
sc1996
Demo licensed
i don´t understand very much about codes and insim´s.. can you add me on msn for i show you with printscreen´s the codes ? Thanks
code with error
sc1996
Demo licensed
Hi racers,


if (Conn.BustedTimer == 4)
{
InSim.Send_MST_Message("/msg ^6>^7 " + Conn.PlayerName + "^7 busts " + Conn.ChaseePlayerName + "^7!");
InSim.Send_MTC_MessageToConnection("^1DO NOT MOVE UNTIL CLEARED BY OFFICER!", Connections[ChaseeIndex].UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1!!!!^3WAIT FOR FINE/WARNING^1!!!!", Connections[ChaseeIndex].UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1!!!!^3€500 BUST BONUS^1!!!!", Conn.UniqueID, 0);
Conn.Cash += 500;
InSim.Send_BFN_DeleteButton(0, 13, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 14, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 15, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 16, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 17, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 18, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 19, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 20, Conn.UniqueID);
foreach (clsConnection C in Connections)
{

My problem is the Conn.BustedTime, Conn.PlayerName, (so it's all with conn.). What do I do?
FGED GREDG RDFGDR GSFDG