ACR_ServerCommunicator.ACR_ServerCommunicator.GetLocalPlayerByAccountName C# (CSharp) Method

GetLocalPlayerByAccountName() public method

Get a local player by account name.
public GetLocalPlayerByAccountName ( string AccountName ) : uint
AccountName string Supplies the account name to look for. ///
return uint
        public uint GetLocalPlayerByAccountName(string AccountName)
        {
            foreach (uint PlayerObject in GetPlayers(true))
            {
                if (GetPCPlayerName(PlayerObject) == AccountName)
                    return PlayerObject;
            }

            return OBJECT_INVALID;
        }
ACR_ServerCommunicator