hello staff
I am somewhat inconvenient K+K+K+K+K+K
get the player basePlayer By Name
can anyone help me?
Solved [C#] Get the player basePlayer by name
Discussion in 'Rust Development' started by igor1150, Mar 15, 2015.
-
Decompile Assembly-CSharp.dll and your answers will be there...
All you do is call Find on the baseplayer class...
BasePlayer.Find("STR_OR_IP_OR_ID") -
Thank you is true
Code:public static BasePlayer Find(string strNameOrIDOrIP) { <Find>c__AnonStorey33 storey = new <Find>c__AnonStorey33 { strNameOrIDOrIP = BasePlayer player = activePlayerList.Find(new Predicate<BasePlayer>(<>m__64)); if (BasePlayer player2 = activePlayerList.Find(new Predicate<BasePlayer>(<>m__65)); if (BasePlayer player3 = activePlayerList.Find(new Predicate<BasePlayer>(<>m__66)); if (player3 != null) { return player3; } return null; }