public void OnRecallZombie(PlayerRecallZombieEvent ev) { if (plugin.Active) { ev.AllowRecall = false; } }
public void OnRecallZombie(PlayerRecallZombieEvent ev) { if (ev.Target.TeamRole.Team == Team.TUTORIAL) { ev.AllowRecall = true; ev.Target.SetGhostMode(false); } }
public void OnRecallZombie(PlayerRecallZombieEvent ev) { if (SCP049XP.ZombieCreated > 0 && ev.Player.SteamId != ev.Target.SteamId) { ev.Player.SendConsoleMessage("You have gained " + SCP049XP.ZombieCreated.ToString() + "xp for turning " + ev.Target.Name + " into a zombie!", "yellow"); AddXP(ev.Player.SteamId, SCP049XP.ZombieCreated); } }
public void OnRecallZombie(PlayerRecallZombieEvent 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) .appendId(Lib.TARGET_ID, ev.Target) .appendId(Lib.EVENT_TARGET_SCPDATA_ID, ev.Target.Scp079Data) .appendId(Lib.EVENT_TARGET_TEAMROLE_ID, ev.Target.TeamRole) ); }
public void OnRecallZombie(PlayerRecallZombieEvent ev) { if (cm.GetBoolValue("rank_enabled", true)) { if (ev.AllowRecall) { DBConnection db = new DBConnection(main); db.AddPoint(ev.Player.SteamId, main.GetConfigInt("rank_point_recallzombie_049")); } } }
public void OnRecallZombie(PlayerRecallZombieEvent ev) { for (var i = InfectedPlayers.Count - 1; i >= 0; i--) { var infected = infectedPlayers[i]; if (infected.Player.PlayerId == ev.Target.PlayerId) { InfectedPlayers.RemoveAt(i); if (InfectedPlayers.Count == 0) { isAPlayerDead = false; } return; } } }
public void OnRecallZombie(PlayerRecallZombieEvent ev) { Dictionary <string, string> variables = new Dictionary <string, string> { { "allowrecall", ev.AllowRecall.ToString() }, { "playeripaddress", ev.Player.IpAddress }, { "playername", ev.Player.Name }, { "playerplayerid", ev.Player.PlayerId.ToString() }, { "playersteamid", ev.Player.SteamId }, { "playerclass", ev.Player.TeamRole.Role.ToString() }, { "playerteam", ev.Player.TeamRole.Team.ToString() }, { "targetipaddress", ev.Target.IpAddress }, { "targetname", ev.Target.Name }, { "targetplayerid", ev.Target.PlayerId.ToString() }, { "targetsteamid", ev.Target.SteamId }, { "targetclass", ev.Target.TeamRole.Role.ToString() }, { "targetteam", ev.Target.TeamRole.Team.ToString() }, }; plugin.SendMessage(Config.GetArray("channels.onrecallzombie"), "player.onrecallzombie", variables); }