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!

Renaming Civil Protection on the Scoreboard

Discussion in 'Plugins' started by Tommy, Sep 19, 2013.

  1. Tommy

    Tommy Guest

    Plugin Name: Renaming Civil Protection

    Basic Details: This plugin will rename the Metropolice faction on the scoreboard. Instead of units being seen as "Civil Protection" as their class, they will be known as "Combine Civil Authority".

    Download here: http://www.mediafire.com/download/z9l83y451878ip5/renamedcivilprotection.zip

    Sidenotes: If you wish to change it from Combine Civil Authority, there is only one line of code that needs changed:
    Code:
    	if (faction == FACTION_MPF) then
    		return "Combine Civil Authority";
     
  2. You're overriding the schema function.
     
  3. Tommy

    Tommy Guest

    I have little to no idea what you mean by that. I've never put coding into plugin form, so I don't know what to do besides make a plugin folder and a plugin.ini

    EDIT: Thread updated to a correct download link that works.
     
  4. Read the stickied thread in this section on how to make one properly.
     
  5. Tommy

    Tommy Guest

    So all it was missing was the local PLUGIN = PLUGIN;?

    EDIT: Thread updated to a correct download link that works.
     
  6. Code:
    function Schema:GetPlayerScoreboardClass(player)
    Hint, hint.
     
  7. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

    Just change "Schema" to "PLUGIN" mate. So:

    Code:
    Schema:GetPlayerScoreboardClass(player)
    would become:

    Code:
    PLUGIN:GetPlayerScoreboardClass(player)
     
  8. Tommy

    Tommy Guest

    Download link is edited - hopefully I got it correct this time. Can anybody confirm?

    EDIT: Thread updated to a correct download link that works.
     

Previous Readers (Total: 0)