1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Where is this located?

Discussion in 'Discussion' started by Grestin, Mar 15, 2014.

  1. Grestin

    Grestin Schema Coder.

    I'm looking for the file where admin, operator and superadmin are. And by this I mean, the file where the icon infront of each their names are. I'd like to change the icons and add custom prefixes, if anyone knows where it is.
     
  2. TheDogFather

    TheDogFather Guest

    If you're using Daemon servers (Like me), go into the configuration files and one of the files should be called something like 'garrysmod\settings\users.txt'. Open that up, put your Admins/SuperAdmins Steam ID's in there and you're all set. Also, there is no operator one in there. You can set it all in-game. Hope this helped. ;)
     
  3. Grestin

    Grestin Schema Coder.

    I meant I wanted to be able to change the icons for admins or add other prefixes, not add new admins.
     
  4. This would involve modifying the framework, which is not supported by Cloud Sixteen. If you are willing to do this through a plugin then I'll be able to help.
     
  5. Grestin

    Grestin Schema Coder.

    Yeah, I'd like to do it in a plugin, SomeSortOfDuck. Are there any steps or anything I should DL?
     
  6. Not really anything to DL other than your preferred code editor.

    http://forums.cloudsixteen.com/index.php?topic=2865.0

    1. Create cl_hooks
    2. Add this code

    Code:
    -- Called when the chat box info should be adjusted.
    function PLUGIN:ChatBoxAdjustInfo(info) 
    	local speaker = info.speaker;
    
    	if (info.class != "ooc" or !IsValid(info.speaker)) then return; end;
    
    	if (speaker:IsSuperAdmin()) then
    		info.icon = "icon16/bell.png";
    	elseif (speaker:IsAdmin()) then
    		info.icon = "icon16/bomb.png";
    	elseif (speaker:IsUserGroup("operator")) then
    		info.icon = "icon16/box.png";
    	end;
    end;
    3. Move the plugin to your server.

    Clockwork uses these icons.

    http://www.famfamfam.com/lab/icons/silk/

    Remember to read the entirety of the thread I linked you.
     
  7. Grestin

    Grestin Schema Coder.

    Am I able to add prefixes (with colors) to it or will it not load? (prefixes meaning ex.
    (Super)
    (Admin)
    (Mod)
     
  8. You could, but the way I'm thinking of doing it would be really hacky. I don't think it's necessary to have tags, though. The icons alone should be just fine.
     
  9. Grestin

    Grestin Schema Coder.

    Well what are you thinking of doing?
     

Previous Readers (Total: 0)