Esempio n. 1
0
        void aq2_OnPlayerChangeName(Action sender, PlayerChangeNameEventArgs e)
        {
            string filePath = Quake.Directory + "Action/Binds/nickChanges.txt";

            using (StreamWriter nickChanges = File.Exists(filePath) ? File.AppendText(filePath) : new StreamWriter(filePath))
                nickChanges.WriteLine("{0} -> {1}", e.OldName, e.Player.Name);
        }
Esempio n. 2
0
 void UpdateSkins(Action sender, System.EventArgs e)
 {
     foreach (var v in _skins)
     {
         Player player = GetPlugin<PAction>().GetPlayerByName(v.Key);
         if(player != null)
             Quake.SendToClient(new PlayerInfo(player.Id, player.Name, "male", v.Value));
     }
 }
Esempio n. 3
0
 void ShowPlayer_OnPlayerChangeName(Action sender, PlayerChangeNameEventArgs e)
 {
     if (_skins.ContainsKey(e.OldName))
     {
         string oldSkin = _skins[e.OldName];
         _skins.Remove(e.OldName);
         _skins.Add(e.Player.Name, oldSkin);
         Quake.SendToClient(new PlayerInfo(e.Player.Id, e.Player.Name, "male", oldSkin));
     }
 }