示例#1
0
        public void LoadClefs()
        {
            DataTable result = API.shared.exported.database.executeQueryWithResult("SELECT * FROM Clefs");

            foreach (DataRow row in result.Rows)
            {
                ClefInfo clef = new ClefInfo(Convert.ToInt32(row["PlayerID"]), Convert.ToString(row["Type"]), Convert.ToInt32(row["ObjetID"]));
            }
        }
示例#2
0
        public static bool PlayerHaveVehicleKeys(Client player, int IDBDDVehicule)
        {
            PlayerInfo   objplayer   = PlayerInfo.GetPlayerInfoObject(player);
            VehiculeInfo objvehicule = VehiculeInfo.GetVehicleInfoByIdBDD(IDBDDVehicule);

            if (ClefInfo.GetPlayerKeysByObjetID(objplayer.dbid, IDBDDVehicule).Count < 1)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }