Need Help - Friend System

Hello
I need some help in a friend system.
So, when you type a name to a chat then it use findPlayerByName - I get an entity but it isn’t good cause on every map restart and join and whatever it is changing, nick is bad too cause it is changeable.So I guess Steam ID would be the solution but I have problems. Can I get an entity by steam id? I found this: Player.GetByUniqueID on wiki but I’m not sure, so give me ideas please.

Thx
[for Dark Ages Gamemode]

[lua]
local friends = { “steam_id_here”, “another_here” }

for _, ply in pairs(player.GetAll()) do
if table.HasValue(friends, ply:SteamID()) then
– MsgN(ply:Nick() … " is a friend!")
end
end
[/lua]

ye, that is right.
I forgot that I can use the ply from player.GetAll

So… You want it Client or Serverside? You need some info here…

Well, I’m almost ready with it cause of _Undefined :wink:

Cool ;).

hey
ur a fag


(User was banned for this post ("Flaming" - Overv))

and u?

Hey, you’re a fag.

I Think the term should be replaced with: “missunderstood drug abuser.”

Opinion?
http://img153.imageshack.us/img153/1231/hl22011031720422591.th.jpg
http://img695.imageshack.us/img695/8779/hl22011031720415075.th.jpg
http://img863.imageshack.us/img863/6149/hl22011031720162788.th.jpg

Looks good, otherwise the friend system is too gray.

Ugly vgui imo.

Yeah, I know everybody hate basic derma gray but it is just the base,design is for later