public void OnContain106(PlayerContain106Event ev) { if (SHPlugin.shPlayers.Contains(ev.Player.SteamId)) { ev.ActivateContainment = false; } }
public void OnContain106(PlayerContain106Event ev) { if (cm.GetBoolValue("rank_enabled", true)) { DBConnection db = new DBConnection(main); var scps = PluginManager.Manager.Server.GetPlayers(Smod2.API.Role.SCP_106); foreach (Player scp in scps) { db.AddPoint(scp.SteamId, main.GetConfigInt("rank_contain106_106")); } switch (ev.Player.TeamRole.Team) { case Smod2.API.Team.CLASSD: db.AddPoint(ev.Player.SteamId, main.GetConfigInt("rank_contain106_classd")); break; case Smod2.API.Team.CHAOS_INSURGENCY: db.AddPoint(ev.Player.SteamId, main.GetConfigInt("rank_contain106_ci")); break; case Smod2.API.Team.NINETAILFOX: db.AddPoint(ev.Player.SteamId, main.GetConfigInt("rank_contain106_ntf")); break; case Smod2.API.Team.SCIENTIST: db.AddPoint(ev.Player.SteamId, main.GetConfigInt("rank_contain106_scient")); break; } } }
void IEventHandlerContain106.OnContain106(PlayerContain106Event ev) { send(ev, new IdMapping() .appendId(Lib.PLAYER_ID, ev.Player) .appendId(Lib.PLAYER_EVENT_SCPDATA_ID, ev.Player.Scp079Data) .appendId(Lib.PLAYER_EVENT_TEAM_ROLE_ID, ev.Player.TeamRole) ); }
public void OnContain106(PlayerContain106Event e) { if (!SCP457.HasSCP457()) { return; } e.ActivateContainment = false; }
public void OnContain106(PlayerContain106Event e) { if (!plugin.hasScp457) { return; } e.ActivateContainment = false; }
public void OnContain106(PlayerContain106Event ev) { foreach (Player pl in ev.SCP106s) { if (AdminToolbox.playerdict.ContainsKey(pl.SteamId) && (AdminToolbox.playerdict[pl.SteamId].godMode || AdminToolbox.playerdict[ev.Player.SteamId].dmgOff)) { ev.ActivateContainment = false; } } }
public void OnContain106(PlayerContain106Event ev) { if (!isEnabled) { return; } if (ev.Player.PlayerId == scpPlayer?.PlayerId && !is035FriendlyFire) { ev.ActivateContainment = false; } }
public JsonSetting[] handle(object api, Dictionary <string, string> mapper) { PlayerContain106Event e = api as PlayerContain106Event; Player[] players = e.SCP106s; JsonSetting[] settings = new JsonSetting[players.Length]; for (int i = 0; i < settings.Length; i++) { settings[i] = new JsonSetting(Lib.getInt(mapper["id"]), null, new IdMapping().appendId(Lib.ID, Guid.NewGuid().ToString(), players[i]).appendId(Lib.PLAYER_SCPDATA_ID, Guid.NewGuid().ToString(), players[i].Scp079Data).appendId(Lib.PLAYER_TEAM_ROLE_ID, Guid.NewGuid().ToString(), players[i].TeamRole) ); } return(settings); }
public void OnContain106(PlayerContain106Event ev) { /// <summary> /// Called when a player presses the button to contain SCP-106 /// <summary> Dictionary <string, string> variables = new Dictionary <string, string> { { "activatecontainment", ev.ActivateContainment.ToString() }, { "ipaddress", ev.Player.IpAddress }, { "name", ev.Player.Name }, { "playerid", ev.Player.PlayerId.ToString() }, { "steamid", ev.Player.SteamId }, { "class", ev.Player.TeamRole.Role.ToString() }, { "team", ev.Player.TeamRole.Team.ToString() } }; plugin.SendMessage(Config.GetArray("channels.oncontain106"), "player.oncontain106", variables); }
public void OnContain106(PlayerContain106Event ev) { plugin.luaHookCall.Function.Call("OnContain106", ev.Player, ev.SCP106s, ev.ActivateContainment); }