Find a players object id by their bl_id

Author Topic: Find a players object id by their bl_id  (Read 2077 times)

Any ideas on how to find a persons OBJECT ID by their blockland id?

Code: [Select]
function findobjectbyblid(%blid) {
  %cl = -1;
  for( %i = 0; %i < ClientGroup.getCount(); %i++) {
    %cl = ClientGroup.getObject(%i);
    if (%cl.bl_id == %blid)
%pobject = %cl.player;
    }
  return %pobject;
}
« Last Edit: March 19, 2007, 07:48:53 PM by -=>RR<=-MasterCE »

Thank you, much more helpful then Badspot. :D