/// <summary> /// Устанавливает параметры игрока перед эвентом /// </summary> protected override void SetEventData(Client player, EventTeam team, int index) { var position = team == EventTeam.Red ? CountryBreakdownData.RedTeamPositions[index] : CountryBreakdownData.BlueTeamPositions[index]; API.setEntityPosition(player, position); API.setEntityDimension(player, EVENT_DIMENSION); API.givePlayerWeapon(player, CountryBreakdownData.GetWeapon(), 300, true); var clothes = CountryBreakdownData.GetEventClothes(team, PlayerInfoManager.IsMale(player)); GtaCharacter.SetClothes(player, clothes); }
/// <summary> /// Устанавливает параметры игрока перед эвентом /// </summary> protected override void SetEventData(Client player, EventTeam team, int index) { var position = team == EventTeam.Red ? SniperBattleData.RedTeamPositions[index] : SniperBattleData.BlueTeamPositions[index]; API.setEntityPosition(player, position); API.setEntityDimension(player, EVENT_DIMENSION); API.givePlayerWeapon(player, WeaponHash.HeavySniper, 50, true); var clothes = SniperBattleData.GetEventClothes(team, PlayerInfoManager.IsMale(player)); GtaCharacter.SetClothes(player, clothes); }