public void OnPlayerRadioSwitch(PlayerRadioSwitchEvent 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 OnPlayerRadioSwitch(PlayerRadioSwitchEvent ev) { Dictionary <string, string> variables = new Dictionary <string, string> { { "setting", ev.ChangeTo.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.onplayerradioswitch"), "player.onplayerradioswitch", variables); }
public void OnPlayerRadioSwitch(PlayerRadioSwitchEvent ev) { plugin.luaHookCall.Function.Call("OnPlayerRadioSwitch", ev.Player, ev.ChangeTo); }