• Help me with this Tag's Code?
    5 replies, posted
Here is my current code: if ply:IsSuperAdmin() then chat.AddText(Color(0, 255, 0), "(Superadmin) ", col1, name, col2, ": "..text) elseif ply:IsAdmin() then chat.AddText(Color(255, 0, 30), "(Admin) ", col1, name, col2, ": "..text) elseif ply:IsUserGroup("donater") then chat.AddText(Color(230, 180, 30), "(Donater) ", col1, name, col2, ": "..text) else chat.AddText(col1, name, col2, ": "..text) end Now im trying to get some name tags for my groups this is all i have so far but i tried putting it in my cl_init.lua and i think i placed it in a bad spot and made some errors.. can somone help me add two groups to this code. I need super donator, And mod added to this code. And if you could give me a good line to place this code so it works that would be awesome... if you can help me thanks ahead of time..
DarkRP?
yea DarkRP [editline]1st February 2013[/editline] mib999 - the man of a single comment then no return.....
[QUOTE=SoY;39439441]yea DarkRP [editline]1st February 2013[/editline] mib999 - the man of a single comment then no return.....[/QUOTE] DarkRP already has a function/hook like that, and you need to add it to that hook/function
[QUOTE=Kuro Light;39439657]DarkRP already has a function/hook like that, and you need to add it to that hook/function[/QUOTE] Was going to say the exact same thing.
You need to run the code inside this hook, as shown here: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index2b09.html[/url]
Sorry, you need to Log In to post a reply to this thread.