• Need Help - Friend System
    13 replies, posted
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."
Opinion? [URL=http://img153.imageshack.us/i/hl22011031720422591.jpg/][IMG]http://img153.imageshack.us/img153/1231/hl22011031720422591.th.jpg[/IMG][/URL] [URL=http://img695.imageshack.us/i/hl22011031720415075.jpg/][IMG]http://img695.imageshack.us/img695/8779/hl22011031720415075.th.jpg[/IMG][/URL] [URL=http://img863.imageshack.us/i/hl22011031720162788.jpg/][IMG]http://img863.imageshack.us/img863/6149/hl22011031720162788.th.jpg[/IMG][/URL]
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
Sorry, you need to Log In to post a reply to this thread.