Author Topic: Getting the BL_ID from someone in a server (with client)  (Read 2442 times)

Well the addon I'm making is for personal use, so I'm not releasing it to the public. I always have show BL_IDs enabled.
If I were you, I'd still add it in. Just in case if something happens or something

function getBL_IDFromPlayerList(%name)
{
   %a=$Pref::Gui::ShowPlayerListBLIDs;
   $Pref::Gui::ShowPlayerListBLIDs = true;
   canvas.pushdialog(NewPlayerListGui);
   canvas.popdialog(NewPlayerListGui);
   for(%a=0; %a<npl_list.rowcount(); %a++)
   {
      %ListName=getfield(npl_list.getrowtext(%a), 1);
      %bl_id=getfield(npl_list.getrowtext(%a), 3);
      if(%ListName$=%name)
         return %bl_id;
   }
   $Pref::Gui::ShowPlayerListBLIDs = %a;
}

unsure if it requires reloading the gui
« Last Edit: July 12, 2013, 04:19:04 AM by MARBLE MAN »