// Token: 0x06001E2B RID: 7723 RVA: 0x000A4A1C File Offset: 0x000A2E1C protected override void execute(CSteamID executorID, string parameter) { if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } string[] componentsFromSerial = Parser.getComponentsFromSerial(parameter, '/'); if (componentsFromSerial.Length != 1) { CommandWindow.LogError(this.localization.format("InvalidParameterErrorText")); return; } SteamPlayer steamPlayer; if (!PlayerTool.tryGetSteamPlayer(componentsFromSerial[0], out steamPlayer) || steamPlayer.player == null) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { componentsFromSerial[0] })); return; } steamPlayer.player.sendScreenshot(executorID, null); CommandWindow.Log(this.localization.format("SpyText", new object[] { steamPlayer.playerID.playerName })); }
protected override void execute(CSteamID executorID, string parameter) { if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } SteamPlayer steamPlayer; if (!PlayerTool.tryGetSteamPlayer(parameter, out steamPlayer)) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { parameter })); return; } if (steamPlayer.player != null) { EPlayerKill eplayerKill; steamPlayer.player.life.askDamage(101, Vector3.up * 101f, EDeathCause.KILL, ELimb.SKULL, executorID, out eplayerKill); } CommandWindow.Log(this.localization.format("KillText", new object[] { steamPlayer.playerID.playerName })); }
// Token: 0x06001DCB RID: 7627 RVA: 0x000A0CA8 File Offset: 0x0009F0A8 protected override void execute(CSteamID executorID, string parameter) { if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } if (!Provider.hasCheats) { CommandWindow.LogError(this.localization.format("CheatsErrorText")); return; } string[] componentsFromSerial = Parser.getComponentsFromSerial(parameter, '/'); if (componentsFromSerial.Length < 1 || componentsFromSerial.Length > 3) { CommandWindow.LogError(this.localization.format("InvalidParameterErrorText")); return; } bool flag = false; SteamPlayer steamPlayer; if (!PlayerTool.tryGetSteamPlayer(componentsFromSerial[0], out steamPlayer)) { steamPlayer = PlayerTool.getSteamPlayer(executorID); if (steamPlayer == null) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { componentsFromSerial[0] })); return; } flag = true; } ushort num; if (!ushort.TryParse(componentsFromSerial[(!flag) ? 1 : 0], out num)) { CommandWindow.LogError(this.localization.format("InvalidAnimalIDErrorText", new object[] { componentsFromSerial[(!flag) ? 1 : 0] })); return; } if (!AnimalManager.giveAnimal(steamPlayer.player, num)) { CommandWindow.LogError(this.localization.format("NoAnimalIDErrorText", new object[] { num })); return; } CommandWindow.Log(this.localization.format("AnimalText", new object[] { steamPlayer.playerID.playerName, num })); }
// Token: 0x06001E1F RID: 7711 RVA: 0x000A42E0 File Offset: 0x000A26E0 protected override void execute(CSteamID executorID, string parameter) { if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } if (!Provider.hasCheats) { CommandWindow.LogError(this.localization.format("CheatsErrorText")); return; } string[] componentsFromSerial = Parser.getComponentsFromSerial(parameter, '/'); if (componentsFromSerial.Length < 1 || componentsFromSerial.Length > 2) { CommandWindow.LogError(this.localization.format("InvalidParameterErrorText")); return; } bool flag = false; SteamPlayer steamPlayer; if (!PlayerTool.tryGetSteamPlayer(componentsFromSerial[0], out steamPlayer)) { steamPlayer = PlayerTool.getSteamPlayer(executorID); if (steamPlayer == null) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { componentsFromSerial[0] })); return; } flag = true; } int num; if (!int.TryParse(componentsFromSerial[(!flag) ? 1 : 0], out num)) { CommandWindow.LogError(this.localization.format("InvalidNumberErrorText", new object[] { componentsFromSerial[(!flag) ? 1 : 0] })); return; } steamPlayer.player.skills.askRep(num); string text = num.ToString(); if (num > 0) { text = '+' + text; } CommandWindow.Log(this.localization.format("ReputationText", new object[] { steamPlayer.playerID.playerName, text })); }
protected override void execute(CSteamID executorID, string parameter) { if (!Dedicator.isDedicated) { return; } if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } string[] componentsFromSerial = Parser.getComponentsFromSerial(parameter, '/'); if (componentsFromSerial.Length != 1 && componentsFromSerial.Length != 2) { CommandWindow.LogError(this.localization.format("InvalidParameterErrorText")); return; } SteamPlayer steamPlayer; if (!PlayerTool.tryGetSteamPlayer(componentsFromSerial[0], out steamPlayer)) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { componentsFromSerial[0] })); return; } P2PSessionState_t p2PSessionState_t; uint ip; if (SteamGameServerNetworking.GetP2PSessionState(steamPlayer.playerID.steamID, ref p2PSessionState_t)) { ip = p2PSessionState_t.m_nRemoteIP; } else { ip = 0u; } if (componentsFromSerial.Length == 1) { SteamBlacklist.ban(steamPlayer.playerID.steamID, ip, executorID, this.localization.format("SlayTextReason"), SteamBlacklist.PERMANENT); } else if (componentsFromSerial.Length == 2) { SteamBlacklist.ban(steamPlayer.playerID.steamID, ip, executorID, componentsFromSerial[1], SteamBlacklist.PERMANENT); } if (steamPlayer.player != null) { EPlayerKill eplayerKill; steamPlayer.player.life.askDamage(101, Vector3.up * 101f, EDeathCause.KILL, ELimb.SKULL, executorID, out eplayerKill); } CommandWindow.Log(this.localization.format("SlayText", new object[] { steamPlayer.playerID.playerName })); }
// Token: 0x06001DF4 RID: 7668 RVA: 0x000A28B4 File Offset: 0x000A0CB4 protected override void execute(CSteamID executorID, string parameter) { if (!Dedicator.isDedicated) { return; } if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } string[] componentsFromSerial = Parser.getComponentsFromSerial(parameter, '/'); if (componentsFromSerial.Length != 1 && componentsFromSerial.Length != 2) { CommandWindow.LogError(this.localization.format("InvalidParameterErrorText")); return; } SteamPlayer steamPlayer; if (!PlayerTool.tryGetSteamPlayer(componentsFromSerial[0], out steamPlayer)) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { componentsFromSerial[0] })); return; } if (componentsFromSerial.Length == 1) { Provider.kick(steamPlayer.playerID.steamID, this.localization.format("KickTextReason")); } else if (componentsFromSerial.Length == 2) { Provider.kick(steamPlayer.playerID.steamID, componentsFromSerial[1]); } CommandWindow.Log(this.localization.format("KickText", new object[] { steamPlayer.playerID.playerName })); }
protected override void execute(CSteamID executorID, string parameter) { if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } string[] componentsFromSerial = Parser.getComponentsFromSerial(parameter, '/'); if (componentsFromSerial.Length < 1 || componentsFromSerial.Length > 2) { CommandWindow.LogError(this.localization.format("InvalidParameterErrorText")); return; } bool flag = componentsFromSerial.Length == 1; SteamPlayer steamPlayer; if (flag) { steamPlayer = PlayerTool.getSteamPlayer(executorID); } else { PlayerTool.tryGetSteamPlayer(componentsFromSerial[0], out steamPlayer); } if (steamPlayer == null) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { componentsFromSerial[0] })); return; } if (steamPlayer.player.movement.getVehicle() != null) { CommandWindow.LogError(this.localization.format("NoVehicleErrorText")); return; } SteamPlayer steamPlayer2; if (PlayerTool.tryGetSteamPlayer(componentsFromSerial[(!flag) ? 1 : 0], out steamPlayer2)) { steamPlayer.player.sendTeleport(steamPlayer2.player.transform.position, MeasurementTool.angleToByte(steamPlayer2.player.transform.rotation.eulerAngles.y)); CommandWindow.Log(this.localization.format("TeleportText", new object[] { steamPlayer.playerID.playerName, steamPlayer2.playerID.playerName })); } else { Node node = null; for (int i = 0; i < LevelNodes.nodes.Count; i++) { if (LevelNodes.nodes[i].type == ENodeType.LOCATION && NameTool.checkNames(componentsFromSerial[(!flag) ? 1 : 0], ((LocationNode)LevelNodes.nodes[i]).name)) { node = LevelNodes.nodes[i]; break; } } if (node != null) { steamPlayer.player.sendTeleport(node.point, MeasurementTool.angleToByte(steamPlayer.player.transform.rotation.eulerAngles.y)); CommandWindow.Log(this.localization.format("TeleportText", new object[] { steamPlayer.playerID.playerName, ((LocationNode)node).name })); } else { CommandWindow.LogError(this.localization.format("NoLocationErrorText", new object[] { componentsFromSerial[(!flag) ? 1 : 0] })); } } }
protected override void execute(CSteamID executorID, string parameter) { if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } if (!Provider.hasCheats) { CommandWindow.LogError(this.localization.format("CheatsErrorText")); return; } string[] componentsFromSerial = Parser.getComponentsFromSerial(parameter, '/'); if (componentsFromSerial.Length < 1 || componentsFromSerial.Length > 3) { CommandWindow.LogError(this.localization.format("InvalidParameterErrorText")); return; } bool flag = false; SteamPlayer steamPlayer; if (!PlayerTool.tryGetSteamPlayer(componentsFromSerial[0], out steamPlayer)) { steamPlayer = PlayerTool.getSteamPlayer(executorID); if (steamPlayer == null) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { componentsFromSerial[0] })); return; } flag = true; } ushort num; if (!ushort.TryParse(componentsFromSerial[(!flag) ? 1 : 0], out num)) { CommandWindow.LogError(this.localization.format("InvalidItemIDErrorText", new object[] { componentsFromSerial[(!flag) ? 1 : 0] })); return; } byte b = 1; if (flag) { if (componentsFromSerial.Length > 1 && !byte.TryParse(componentsFromSerial[1], out b)) { CommandWindow.LogError(this.localization.format("InvalidNumberErrorText", new object[] { componentsFromSerial[1] })); return; } } else if (componentsFromSerial.Length > 2 && !byte.TryParse(componentsFromSerial[2], out b)) { CommandWindow.LogError(this.localization.format("InvalidNumberErrorText", new object[] { componentsFromSerial[2] })); return; } if (!ItemTool.tryForceGiveItem(steamPlayer.player, num, b)) { CommandWindow.LogError(this.localization.format("NoItemIDErrorText", new object[] { num })); return; } CommandWindow.Log(this.localization.format("GiveText", new object[] { steamPlayer.playerID.playerName, num, b })); }
// Token: 0x06001E2F RID: 7727 RVA: 0x000A4BF8 File Offset: 0x000A2FF8 protected override void execute(CSteamID executorID, string parameter) { if (!Provider.isServer) { CommandWindow.LogError(this.localization.format("NotRunningErrorText")); return; } string[] componentsFromSerial = Parser.getComponentsFromSerial(parameter, '/'); if (componentsFromSerial.Length < 1 || componentsFromSerial.Length > 2) { CommandWindow.LogError(this.localization.format("InvalidParameterErrorText")); return; } bool flag = componentsFromSerial.Length == 1; SteamPlayer steamPlayer; if (flag) { steamPlayer = PlayerTool.getSteamPlayer(executorID); } else { PlayerTool.tryGetSteamPlayer(componentsFromSerial[0], out steamPlayer); } if (steamPlayer == null) { CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[] { componentsFromSerial[0] })); return; } if (steamPlayer.player.movement.getVehicle() != null) { CommandWindow.LogError(this.localization.format("NoVehicleErrorText")); return; } SteamPlayer steamPlayer2; if (PlayerTool.tryGetSteamPlayer(componentsFromSerial[(!flag) ? 1 : 0], out steamPlayer2)) { steamPlayer.player.sendTeleport(steamPlayer2.player.transform.position, MeasurementTool.angleToByte(steamPlayer2.player.transform.rotation.eulerAngles.y)); CommandWindow.Log(this.localization.format("TeleportText", new object[] { steamPlayer.playerID.playerName, steamPlayer2.playerID.playerName })); } else if (componentsFromSerial[(!flag) ? 1 : 0].Equals(this.localization.format("WaypointCommand"), StringComparison.InvariantCultureIgnoreCase) && steamPlayer.player.quests.isMarkerPlaced) { Vector3 markerPosition = steamPlayer.player.quests.markerPosition; markerPosition.y = 1024f; RaycastHit raycastHit; if (Physics.Raycast(markerPosition, Vector3.down, out raycastHit, 2048f, RayMasks.WAYPOINT)) { steamPlayer.player.sendTeleport(raycastHit.point + Vector3.up, MeasurementTool.angleToByte(steamPlayer.player.transform.rotation.eulerAngles.y)); CommandWindow.Log(this.localization.format("TeleportText", new object[] { steamPlayer.playerID.playerName, this.localization.format("WaypointText") })); } } else { Node node = null; for (int i = 0; i < LevelNodes.nodes.Count; i++) { if (LevelNodes.nodes[i].type == ENodeType.LOCATION && NameTool.checkNames(componentsFromSerial[(!flag) ? 1 : 0], ((LocationNode)LevelNodes.nodes[i]).name)) { node = LevelNodes.nodes[i]; break; } } if (node != null) { steamPlayer.player.sendTeleport(node.point, MeasurementTool.angleToByte(steamPlayer.player.transform.rotation.eulerAngles.y)); CommandWindow.Log(this.localization.format("TeleportText", new object[] { steamPlayer.playerID.playerName, ((LocationNode)node).name })); } else { CommandWindow.LogError(this.localization.format("NoLocationErrorText", new object[] { componentsFromSerial[(!flag) ? 1 : 0] })); } } }