Beispiel #1
0
 /// <summary>
 /// Retrieves a player class instance from a specified player name
 /// </summary>
 public static Player GetFromName(string name)
 {
     try
     {
         return(ElementManager.Instance.GetElement <Player>(MtaShared.GetPlayerFromName(name)));
     }
     catch (MtaException)
     {
         throw new NullElementException("No player with the name " + name + " could be found.");
     }
 }