I give u a exaple how i made it
if (Players[GetPlyIdx(MCI.Info[o].PLID)].PlayerName.Contains("Officer"))
{
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[1].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 173, 5, 33, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[2].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 178, 5, 34, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[3].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 183, 5, 35, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[4].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 188, 5, 36, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[5].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 193, 5, 37, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
}
So i made it.
I think at there is something wrong then it shows all buttons and only my name and then all other buttons it shows the hostname or other Playername.
PS. Its made in MCI
Thanks Heiko