Quote:
Originally Posted by -NewDawn-
Well no, I don't want to change the name because what if they log out? then their name is "blah blah(away)" lol =s
EDIT: What about making a StatEffect?
|
do something like...
if (LastActionTime > 15)
Entity.Name = Entity.Name + "[AFK]";
LastAction = AFK;
// don't do time for a reason because they are still afk...
then find out where they log out and do something like this
if (LastAction = LastAction.AFK)
{
Name = Name.Remove(Name.Length - 5);
}
or if u dont want to do the lastaction thing do something like this
if (Name.Contains("[AFK]")
{
Name = Name.Remove(Name.Length - 5);
}