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!

Vortix's Plugins

Discussion in 'Plugins' started by Vortix, Jul 22, 2014.

  1. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    Thank you :)
    I was very bored so I thought and came up with this. Hopefully it will prove useful to people.
     
  2. Polis

    Polis Guest

    Add this to your plugin in a clientside file to make it really cool.

    If this doesn't work, you're probably capable of fixing it yourself. If not, post the error here.
    Apologies for the lack of spacing, I made it in this window.

    Code:
    surface.CreateFont( "AdminFont", {
    	font = "BudgetLabel",
    	size = 16,
    	weight = 500,
    	blursize = 0,
    	scanlines = 0,
    	antialias = true,
    	underline = false,
    	italic = false,
    	strikeout = false,
    	symbol = false,
    	rotary = false,
    	shadow = false,
    	additive = false,
    	outline = false,
    } )
    
    hook.Add("HUDPaint", "Assistance on the HUD", function()
    for k,v in pairs (player.GetAll()) do
    local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
    
    if (v:GetCharacterData("RequestDealtWith") != true) then
    if ( LocalPlayer():GetUserGroup() == "operator" or LocalPlayer():IsAdmin() or LocalPlayer():GetUserGroup() == "superadmin" ) then
    draw.DrawText( "Player is in need of assistance.", "AdminFont", Position.x, Position.y, Color(255,255,165,255), 1 )
    end
    end
    
    end
    end)
     
  3. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    Thanks Polis, I tried but didn't work, no errors or anything. It's all good though, I'll stick with how it is. Thanks anyways.
     
  4. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    Made a small update to the Staff Request plugin.
    Previously if the target for /staffdata <player> was invalid it would give an error to console.
    Not a problem that would majorly affect, but it now displays a notification instead of creating an error.
     
  5. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    Pains me to have three posts in a row, however they are updates/replies rather than spam
    Added a new plugin "MPF Rank Management" which allows unit promotion and demotion through a command. Details in thread.
     
  6. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    New plugin and updates!
    Offer Hand (New plugin):

    Allows you to offer a hand to another player. Untested, would appreciate someone to comment if it works or not.
    Staff Request plugin:
    I fixed an issue where if you typed /accept (ID) and the ID was wrong it would create an error in console. It now notifies you if you enter an invalid ID.
    Next I added a notification if you request for help and there is no staff member online.
    Soon to come, hopefully: Optional community help, a system that, if enabled in the sh_plugin.lua, will allow the community to help deal with an issue if there is no online staff member. A type of chat "Community Chat" will be opened until one of the community members attempts to issue a /verdict, which will be either a votekick or votemute. If the user has many votekicks then a voteban will be available. This will be next on the to-do list for that plugin.
    MPF Rank Management
    Added two new commands: One allows you to train a recruit into a valid division (valid divisions are definable by sh_plugin.lua), the other allows you to recruit a citizen (useful for IC apps) to become a recruit. (Currently this only sets the name, and so is disabled by default, if you are willing to manually transfer the player's faction to MPF then you can enable the command via the sh_plugin.lua option.
    New options: Choose what commands you want to enable. If you like the /MPFPromote and /MPFDemote commands, however don't want people to be able to use the /MPFTrained and /MPFRecruit commands then you may disable them!
    Fixed a bug: Fixed a small bug which may have affected who can promote who, however I have not seen this effect happen yet as it did not come up in testing (It should have, strangely).
    No matter, it is fixed in this update.
     
  7. TacticalSheep

    TacticalSheep Clockwork Customer

  8. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    Thanks for testing my plugin, I'll fix it as soon as I can. For now, however:
    New plugin! MPF Models + Uniforms
    Automatically sets the models for ranks and divisions in the MPF (The models being set by you in the sh_plugin.lua) and then turns all divisions and their appropriate rank models into equipable uniforms. More details in the main post.
    Updated PHANTOM MPF
    Previously a small issue where if you haven't created an identity an error would appear if you tried to use /unphantom. Fixed in this small update.
     
  9. Love your plugins, keep it up!
     
  10. For me the PHANTOM mod doesn't work, when I use the /newphantom command, nothing happens. I got this error in console.

    Code:
    [Clockwork] The 'NewPhantom' command has failed to run.
    gamemodes/cwhl2rp/plugins/phantommpf/plugin/commands/sh_newphantom.lua:8: bad argument #1 to 'find' (string expected, got nil)
     
  11. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    By the look of the error you're not putting in a physdesc in the command, and I just forgot to add an error check for that. I'll take a look later and fix it if this appears to be the case, BUT:
    The usage of the command is /newphantom <Physical Description>, you must set your own physical description as the first argument of the command.
     
  12. Ok, I'll try that now.
     
  13. Just tried what you said, this is what I typed "/newphantom "5'5 | Scar On Left Cheek | Blue Union Jumpsuit | 24 Y.o", and this is the error I got:
    Code:
    [Clockwork] The 'NewPhantom' command has failed to run.
    gamemodes/cwhl2rp/plugins/phantommpf/plugin/commands/sh_newphantom.lua:8: bad argument #1 to 'find' (string expected, got nil)
    ServerLog: MPF-PHANTOM.91305 has used '/GoPhantom'.
     
  14. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    Sorry, I realised just after I posted that I made a mistake, I'm publishing a fix as I type.
     
  15. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    Updates:
    Fixed the issue stated above - New Phantom should work again.
    Release a new plugin, player flags (Be sure to read the warning)
     
  16. Thank you very much Vortix!
     
  17. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    No problem, thanks for using my plugin :)
     
  18. Uhm... I got another error
    Code:
    [Clockwork] The 'NewPhantom' command has failed to run.
    gamemodes/cwhl2rp/plugins/phantommpf/plugin/commands/sh_newphantom.lua:9: bad argument #1 to 'find' (string expected, got nil)
    ServerLog: MPF-PHANTOM.91305 has used '/GoPhantom'.
     
  19. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    -Facepalm- Sorry for my stupidity. When I tried to fix the issue for you I changed one thing but didn't change the other part. I just released the fix again, should be fixed now.
    Sorry.
     
  20. Works perfectly now man, and no need to apologize dude, its all good.
     

Previous Readers (Total: 0)