<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Great job, I'll test it tonight.<br>
<br>
<div class="moz-signature"><big><font face="Verdana" size="-2"><big><!-- SGT -->Mortis<br>
European Tactical Battlefield Forces<!--<a href="http://www.theartofwarfare.net">The Art Of Warfare</a> - BF<br>
The Gryphons--></big></font></big></div>
<br>
<br>
Forrest Thiessen schreef:
<blockquote cite="mid42D06499.3070002@alum.mit.edu" type="cite">
  <pre wrap="">Paul Bowsher wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Call rcon_invoke('admin.listPlayers') then parse that. Only way at the
    </pre>
  </blockquote>
  <pre wrap=""><!---->moment
  </pre>
  <blockquote type="cite">
    <pre wrap="">On 6/27/05, Panic <a class="moz-txt-link-rfc2396E" href="mailto:panic@battlefield.no">&lt;panic@battlefield.no&gt;</a> wrote:

    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">Does anyone here know how I can access a players keyhash in python? I
find the .getProfileId, and there is of course the .index, but I can't
find anything that has to do with the keyhash. Anyone in the know on
this one?
    </pre>
  </blockquote>
  <pre wrap=""><!---->

Ok, ok. . . I had a need to get at key hashes, so I broke down and wrote
a Python function that uses a regular expression to parse the results of
admin.listPlayers, and posted it on the wiki:
    <a class="moz-txt-link-freetext" href="http://bf2.fun-o-matic.org/index.php/Scripts:playerData">http://bf2.fun-o-matic.org/index.php/Scripts:playerData</a>

It puts the results (including key hashes, IP addresses, etc.) into a
Python dictionary, so it should be easy to cut and paste for use it lots
of applications.

--Forrest (aka "Woody")



  </pre>
</blockquote>
</body>
</html>