Derma question

I know its not really related to derma, but I want to have a label say a different thing for staff and players.

I have tried a few things, but I don’t know how to check in one if statement if they are in a usergroup.

Any help appreciated.


(User was banned for this post ("Undescriptive thread title" - Gran PC))


if not ply:IsAdmin() then
    -- Code for the player's goes here
    DLabel:SetText( "You're an player on this server." )
else
    -- Code for the admin's goes here
    DLabel:SetText( "You're an admin on this server." )
end