ACR_ServerCommunicator.ACR_ServerCommunicator.GetLocalPlayerByFirstName C# (CSharp) Method

GetLocalPlayerByFirstName() public method

Get a local player by (ambiguous) first name lookup.
public GetLocalPlayerByFirstName ( string FirstName ) : uint
FirstName string Supplies the first name to search for. ///
return uint
        public uint GetLocalPlayerByFirstName(string FirstName)
        {
            foreach (uint PlayerObject in GetPlayers(true))
            {
                if (GetFirstName(PlayerObject) == FirstName)
                    return PlayerObject;
            }

            return OBJECT_INVALID;
        }
ACR_ServerCommunicator