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 ;)
Cool ;).
hey
ur a fag
[highlight](User was banned for this post ("Flaming" - Overv))[/highlight]
and u?
[QUOTE=skillzthatkillz;28653830]hey
ur a fag[/QUOTE]
Hey, you're a fag.
[QUOTE=Drew P. Richard;28654053]Hey, you're a fag.[/QUOTE]
I Think the term should be replaced with: "missunderstood drug abuser."