Esempio n. 1
0
 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)
          );
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void OnPlayerRadioSwitch(PlayerRadioSwitchEvent ev)
 {
     plugin.luaHookCall.Function.Call("OnPlayerRadioSwitch", ev.Player, ev.ChangeTo);
 }