Ejemplo n.º 1
0
 public void DestroyCarAndForceExitPassengers()
 {
     for (int i = 0; i < 4; i++)
     {
         if (this.m_data.passengerIds[i] != -1)
         {
             if (null != this.m_server)
             {
                 ServerPlayer playerByOnlineid = this.m_server.GetPlayerByOnlineid(this.m_data.passengerIds[i]);
                 if (playerByOnlineid != null)
                 {
                     playerByOnlineid.ExitVehicle(true);
                 }
             }
             this.m_data.passengerIds[i] = -1;
         }
     }
     this.ChangeHealthBy(-100000f);
 }