Author Topic: Find The Server Host [Solved]  (Read 543 times)

How do you find the server host's name(client sided)?
« Last Edit: December 09, 2011, 03:40:08 PM by jes00 »

nevermind, I can't figure it out.
« Last Edit: December 08, 2011, 09:56:20 PM by Amade »

Use string manipulation to get it from the playerlist title.

Code: [Select]
%host = getSubStr($ServerInfo::Name, 0, strStr($ServerInfo::Name, "\'"));

Code: [Select]
%host = getSubStr($ServerInfo::Name, 0, strStr($ServerInfo::Name, "\'"));
How to get the player who is using the add ons name?
« Last Edit: December 09, 2011, 07:13:03 AM by jes00 »

Do you mean the name of the local client? $Pref::Player::NetName.
Some things you might also find useful:
  • $Pref::Player::ClanPrefix - Local client's clan prefix.
  • $Pref::Player::ClanSuffix - Local client's clan suffix.
  • $Pref::Player::LANName - Local client's LAN name (specified in avatar menu).
  • getNumKeyID() - Local client's BL_ID.
« Last Edit: December 09, 2011, 08:24:06 AM by Port »

Do you mean the name of the local client? $Pref::Player::NetName.
Some things you might also find useful:
  • $Pref::Player::ClanPrefix - Local client's clan prefix.
  • $Pref::Player::ClanSuffix - Local client's clan suffix.
  • $Pref::Player::LANName - Local client's LAN name (specified in avatar menu).
  • getNumKeyID() - Local client's BL_ID.
Thanks!