1. Post #1
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    I was bored and decided to fulfil someones request. So I give you "Player Title". With this you can set your title(description or what ever) and it will display above your head for other players. It also displays your name.

    Your title is saved to a file on the server, so you don't have to set your title every time you join. Administrators have the ability to set other players title.

    You can set your own title with "!settitle text" in chat and "!settitleadmin playername text" to set it for others, if you are an admin in the server.






    Enjoy!

  2. Post #2
    Get your own DarkRP Server!
    FPtje's Avatar
    January 2006
    5,615 Posts
    simple :)

  3. Post #3
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    It is simple, actually. :)

  4. Post #4
    Get your own DarkRP Server!
    FPtje's Avatar
    January 2006
    5,615 Posts
    Can you set your own title?

    This idea was from SAT right?

  5. Post #5
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    Yeah SAT/Citrus has something like this, too. It's from a request.

    You can set your own title with "!settitle" in chat. And "!settitleadmin playername" for other players.

  6. Post #6
    Gold Member
    gmaster's Avatar
    July 2005
    3,123 Posts
    Looks good. I'll ask about adding it to a couple of servers I like.

  7. Post #7
    phrostwave's Avatar
    February 2008
    23 Posts
    Nice job, I tried doing this myself but failed :4chan:

  8. Post #8
    Gold Member
    TyPhOn!'s Avatar
    November 2006
    228 Posts
    Could you add this ?

    "The title of a player is displayed in front of it's name in chat, <title>Playername"

  9. Post #9
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    I would have to remake the chat box. And it would look shitty if the player had a long title.

  10. Post #10
    bbbbbbb
    Aska49's Avatar
    October 2006
    947 Posts
    Simple, but pretty nice. Might I suggest added a "shadow" to the text so it's easier to read against certain backgrounds?

  11. Post #11
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    Aska49 posted:
    Simple, but pretty nice. Might I suggest added a "shadow" to the text so it's easier to read against certain backgrounds?
    You'll be surprised when you see my somewhat overcomplicated code.

    Hm yes, the shadow is a good idea.

  12. Post #12
    Dennab
    March 2006
    67 Posts
    Yeah this is so complicated.

    self = LocalPlayer()
    surface.CreateFont( "Arial", 14, 400, true, false, "ESPSmall" )
    
    function DoESP( )
    	for _, pl in pairs(player.GetAll()) do
    		local pos = pl:GetPos()
    		local mypos = self:GetPos()
    		local size = ScrW() * 0.02
    				pos.z = pos.z + 80
    		pos = pos:ToScreen()
    		if pl:Team() == self:Team() then
    			if pl:Alive() then
    				if (math.floor(pl:GetPos():Distance(mypos)) <= 1500) then
    					draw.SimpleText(pl:Name(), "ESPSmall", pos.x, pos.y + size + 10, Color(50,255,50,150), TEXT_ALIGN_CENTER)
    					draw.SimpleText("Health: "..pl:Health(), "ESPSmall", pos.x, pos.y-10 + size + 30, Color(50,255,255,150), TEXT_ALIGN_CENTER)
    				end
    			end
    		end
    		if pl:Team() != self:Team() then
    			if pl:Alive() then
    				if (math.floor(pl:GetPos():Distance(mypos)) <= 1500) then
    					draw.SimpleText(pl:Name(), "ESPSmall", pos.x, pos.y + size + 10, Color(255,50,50,150), TEXT_ALIGN_CENTER)
    					draw.SimpleText("Health: "..pl:Health(), "ESPSmall", pos.x, pos.y-10 + size + 30, Color(50,255,255,150), TEXT_ALIGN_CENTER)
    				end
    			end
    		end
    	end
    end
    hook.Add("HUDPaint","ESP",DoESP)
    

    Also it looks nicer...

    Oh, and here's how you find them druglabs in RP Mods
    self = LocalPlayer()
    surface.CreateFont( "Arial Bold", 35, 400, true, false, "PropESP" )
    
    function PropESP()
    	for _, ent in pairs(ents.GetAll()) do
    		local pos = ent:GetPos()
    		local model = ent:GetModel()
    		local mypos = self:GetPos()
    		if (ent:GetModel()=="models/props_combine/combine_mine01.mdl") then
    			pos = pos:ToScreen()
    			draw.SimpleText("+" , "PropESP", pos.x, pos.y, Color(255,255,255,200), TEXT_ALIGN_CENTER)
    			draw.SimpleText(""..math.floor(ent:GetPos():Distance(mypos)), "ESPSmall", pos.x, pos.y-5, Color(255,255,255,200), TEXT_ALIGN_CENTER)
    		end
    	end
    end
    hook.Add("HUDPaint","PropESP",PropESP)
    
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 1 (list)

  13. Post #13
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    And I said this is complicated when...? Seriously... Atleast give a working example before braging..

  14. Post #14
    jockmo42's Avatar
    June 2006
    69 Posts
    Nevec posted:
    Yeah SAT/Citrus has something like this, too. It's from a request.

    You can set your own title with "!settitle" in chat. And "!settitleadmin playername" for other players.
    Is this admin only or can players set their own title? I want to be a dick with this.

    Edit:

    haloshadow posted:
    Yeah this is so complicated.
    Calm down, dude, he said it was simple. All he meant was that he could have simplified it even more if he tried. He said over-complicated. Not complicated.
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 1 (list)

  15. Post #15
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    jockmo42 posted:
    Is this admin only or can players set their own title? I want to be a dick with this.
    Players can change their own title. But admins can change other players title. I'm going to make the first bit optional when I feel like working on it.

  16. Post #16
    TheLinxV3's Avatar
    July 2008
    149 Posts
    If an admin sets an players title, can the player just change it again?
    The title the admin set should override, imo.

  17. Post #17
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    Good idea. I'll add that.

  18. Post #18
    OlivierHamel's Avatar
    April 2008
    220 Posts
    FPtje posted:
    simple :)
    But fun, hopefully he didn't implement this atrociously.

  19. Post #19
    DavidsServer's Avatar
    August 2008
    18 Posts
    I use the 'Name Tag' addon on my build server. It displays name, player status, avatar and team color. Very useful.

    However, you cannot display your own message. So this thing is pretty cool.

  20. Post #20
    StarGateSG1's Avatar
    March 2008
    16 Posts
    where did you get the bots from?

  21. Post #21
    Combiner8761's Avatar
    October 2008
    249 Posts
    StarGateSG1 posted:
    where did you get the bots from?
    type in sv_cheats 1 in console, then type in bot. This require that you're on multiplayer.
    Edit:
    shit, bump...

  22. Post #22
    Viking Member
    Hellsten's Avatar
    November 2008
    5,433 Posts
    A short question: If the player choose not to enter a personal message/description, will the name still be displayed above their heads?

  23. Post #23
    open.gl
    Overv's Avatar
    February 2007
    7,431 Posts
    Ofcourse :)

  24. Post #24
    Gold Member
    cold020's Avatar
    January 2006
    125 Posts
    Anyway I can make there name and there title disappear after a certain distance? Interesting seeing people across the map on flatgrass.

  25. Post #25
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    I'm no longer supporting this. An updated player title script will be in my upcoming management system. I believe nametags has the fading feature.

  26. Post #26
    FLUTTERSHY <3 (also hats suck)
    Unib5's Avatar
    May 2008
    1,705 Posts
    Looks good!

  27. Post #27
    JamesFoil's Avatar
    April 2008
    170 Posts
    Download link gone =[ Please Reupload

  28. Post #28
    Everyone has a $1 title
    Skipcast's Avatar
    November 2008
    7,049 Posts
    Reupload?

  29. Post #29
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    I'll try to release a revamped version tomorrow.

  30. Post #30
    Everyone has a $1 title
    Skipcast's Avatar
    November 2008
    7,049 Posts
    Awesome, thanks :3:

  31. Post #31
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    Alright, it's done. I finished most of it in the morning, but couldn't be bothered to test it properly. Now I did, so here it is.



    Works almost the same as the other one. Type !title <title> in chat to change your title message and type just !title to remove it. There are also several options you may wish to change. All of the options are convars, so you can change them in-game without reloading the script. They all start with label_ and are pretty descriptive in their names.

  32. Post #32
    Everyone has a $1 title
    Skipcast's Avatar
    November 2008
    7,049 Posts
    Thanks :buddy: