public void OnIntercomCooldownCheck(PlayerIntercomCooldownCheckEvent ev) { /// <summary> /// Called when a player attempts to use intercom. This happens before the cooldown check. /// <summary> plugin.SendMessageAsync(plugin.GetConfigString("discord_channel_onintercomcooldowncheck"), ev.Player.Name + " (" + ev.Player.SteamId + plugin.MultiLanguage(38)); }
void IEventHandlerIntercomCooldownCheck.OnIntercomCooldownCheck(PlayerIntercomCooldownCheckEvent 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 OnIntercomCooldownCheck(PlayerIntercomCooldownCheckEvent ev) { /// <summary> /// Called when a player attempts to use intercom. This happens before the cooldown check. /// <summary> Dictionary <string, string> variables = new Dictionary <string, string> { { "currentcooldown", ev.CurrentCooldown.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.onintercomcooldowncheck"), "player.onintercomcooldowncheck", variables); }