Ejemplo n.º 1
0
 public static void SendLangMessageForAll(string slug, string param)
 {
     foreach (Fougerite.Player player in Fougerite.Server.GetServer().Players)
     {
         if (player.IsOnline)
         {
             string lang = LanguageComponent.GetPlayerLangOrDefault(player);
             player.SendClientMessage(string.Format(LanguageComponent.getMessage(slug, lang), param));
         }
     }
 }
Ejemplo n.º 2
0
        public static void SendSyntaxError(Fougerite.Player pl, string langES, string langPT)
        {
            string lang = LanguageComponent.GetPlayerLangOrDefault(pl);

            if (lang == "ES")
            {
                pl.SendClientMessage(string.Format(LanguageComponent.getMessage("error_syntax", lang), langES));
            }
            else if (lang == "PT")
            {
                pl.SendClientMessage(string.Format(LanguageComponent.getMessage("error_syntax", lang), langPT));
            }
        }