• Chat Icons
    6 replies, posted
I was wondering if anyone knew how to exactly put icons in chat for group names, such as admin, superadmin, owner, etc. I got the icons, I just need to know how to add them into chat for certain groups. I know that this is part of the code [CODE] if ply:IsSuperAdmin() then icon = "icon16/shield_add.png" elseif ply:IsAdmin() then icon = "icon16/shield.png" elseif ply:IsUserGroup("owner") then icon = "icon16/shield_rainbow.png" elseif ply:IsUserGroup("moderator") then icon = "icon16/shield_silver.png" elseif ply:IsUserGroup("vip") then icon = "icon16/rosette_blue.png" end end[/CODE] But I am not sure how to apply it to chat, someone please help, thanks Also I am using ULX for anyone that wonders, and if it applies.
Pretty sure the default chatbox can't handle images so you'd have to use a custom one or make your own Exho has a tutorial and free example for this
[QUOTE=NiandraLades;48199179]Pretty sure the default chatbox can't handle images so you'd have to use a custom one or make your own Exho has a tutorial and free example for this[/QUOTE] Cannot seem to find the tut on his channel, mind linking me or helping me out?
Here you go [url]http://wiki.garrysmod.com/page/Advanced_Chatbox[/url]
[QUOTE=NiandraLades;48199770]Here you go [url]http://wiki.garrysmod.com/page/Advanced_Chatbox[/url][/QUOTE] Do I just simply add chat icon code in there, or what?
No thats not how any coding works. You'll have to write a chatbox to implement icons
[QUOTE=Exho;48202267]No thats not how any coding works. You'll have to write a chatbox to implement icons[/QUOTE] Ohh, so I have to make the chatbox and implement the code I want in there but at the right spot, and more coding to tell it I want the icons to work in the chat. I'm not a very experienced coder so this won't be very possible for me. Might as well just wait and hope for scriptfodder to release one, thanks for everyone that replied.
Sorry, you need to Log In to post a reply to this thread.