Пример #1
0
 public static bool IsValidName(Player player, string name)
 {
     if (!YSF.IsValidNickName(name))
     {
         player.SendClientMessage(Color.Red, "Error: El nombre que ingresaste no es válido.");
         player.SendClientMessage(Color.Red, "* Caracteres válidos: 0-9, a-z, A-Z, [], (), $ @ . _");
         return(false);
     }
     return(true);
 }
Пример #2
0
 public void EnableInvisibility()
 {
     foreach (Player player in GetAll <Player>())
     {
         if (!player.IsConnected)
         {
             continue;
         }
         YSF.HidePlayerForPlayer(player, this);
     }
 }
Пример #3
0
 public void DisableInvisibility()
 {
     foreach (Player player in GetAll <Player>())
     {
         if (!player.IsConnected)
         {
             continue;
         }
         YSF.ShowPlayerForPlayer(player, this);
         Skin = (Data.SkinId != -1) ? Data.SkinId : PlayerTeam.Skin;
         Team = (int)PlayerTeam.Id;
         if (IsCapturedFlag())
         {
             RemoveAttachedObject(0);
             PlayerTeam.TeamRival.Flag.AttachedObject(this);
         }
     }
 }