Hi, I have a problem with my loop for check the negative cash, I need break the loop when the action/ban finished.
This is my code, i am using in MSO packets, I tried with return 0; , return false; and break; , but doesn't working.
                
            This is my code, i am using in MSO packets, I tried with return 0; , return false; and break; , but doesn't working.
            foreach (clsConnection c in Connections)
            {       
                if (c.Cash < -1000)
                {
                    InSim.Send_MST_Message("/msg " + (Connections[GetConnIdx(MSO.UCID)].Username) + " 100");
                   //using /msg for test, I know I need replace for /ban
                }
            }
 , i am going to trying it
, i am going to trying it 