Marko97
M97 Project based Plus EMU
- Aug 7, 2013
- 99
- 45
Hello anyone!
I've installed name prefix release by Spyro in another forum but I've found a potential problem:
How to resolve this?
The problematic code are:
I've installed name prefix release by Spyro in another forum but I've found a potential problem:
How to resolve this?
The problematic code are:
RoomUser.cs
Code:
public void SendNameVoidPacket()
{
if (GetClient() == null || GetClient().GetHabbo() == null)
return;
string Username = GetClient().GetHabbo().Username;
string Prefix, NameColor = null;
if (!String.IsNullOrEmpty(GetClient().GetHabbo().PrefixName) && !String.IsNullOrEmpty(GetClient().GetHabbo().PrefixColor))
Prefix = "<font color='#" + GetClient().GetHabbo().PrefixColor + "'>[" + GetClient().GetHabbo().PrefixName + "]</font> ";
else if (!String.IsNullOrEmpty(GetClient().GetHabbo().PrefixName) && String.IsNullOrEmpty(GetClient().GetHabbo().PrefixColor))
Prefix = "[" + GetClient().GetHabbo().PrefixName + "] ";
else
Prefix = "";
if (!String.IsNullOrEmpty(GetClient().GetHabbo().NameColor))
NameColor = "<font color='#" + GetClient().GetHabbo().NameColor + "'>" + GetClient().GetHabbo().Username + "</font>";
else
NameColor = GetClient().GetHabbo().Username;
if (!String.IsNullOrEmpty(Prefix) || !String.IsNullOrEmpty(NameColor))
Username = Prefix + NameColor;
GetRoom().SendPacket(new UserNameChangeComposer(RoomId, VirtualId, Username));
}