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:
Thanks for all help, and have a good day.
                
            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.

