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!

Tru's Plugins

Discussion in 'Plugins' started by trurascalz, Oct 13, 2013.

  1. trurascalz

    trurascalz C16 Developer Legend

    Here's a thread of plugins newest first I made/collaborated on becuase kurozael seems to be busy or ignoring my pm's

    Sometimes I cannot be bothered to update this thread. See my GitHub for latest plugins :D
    Personalised Dispatch
    Allows the unit to dispatch to a individual person. Currently only a few commands. A directory page in "Clockwork" tells you more and the Dispatch Arg to use.
    [​IMG]
    Syntax: /poi "Name of person" "Dispatch Arg"
    Output:

    [​IMG]
    [​IMG]

    EMP Tool - Hl2RP
    Maybe a bit un-cannonistic, but it works on doors and locks, also gives electric shocks randomly and can reprogram roller mines(Few seconds then explode),turrets,cameras.
    The tool can shock the user, and maybe explode.

    Put the models folder in your garrysmod directory to merge.
    Then place the emp folder in your hl2rp plugins directory.
    If model doesn't download you need to resouce.addfile it in
    lua/autorun/server/afilename.lua
    Code:
    resource.AddFile("models/weapons/v_alyx_emptool.mdl")


    AFK Plugin -Clockwork
    Lets people type /afk and they dissapear and are godded, idk :s


    Combine Report Console - Updated 26/7/16
    A mobile device which combine units may use to report things and search citizen database. An ingame item is used to access a website which is hosted by the server owner. You must have web hosting and be using MySQL for Clockwork. Demo Available Here
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    Passive Dispatch -HL2RP
    Periodically plays a passive dispatch sound. eg: Citizen Reminder one



    Advertisements - Clockwork
    Allows you to configure custom hints to be shown in the top right of the screen with colors! Much like the clockwork issues green hint thing.Add your own adverts in libraries/sh_advertisement.luaThere is a clockwork config option, "advert interval" which you can change. Min is 60 seconds
    Image:
    [SIZE=78%]
    [​IMG]
    [/SIZE]

    Incognito Faction - Clockwork
    (Uses default hl2rp citizen image filepath, so i suggest you change that if your not using hl2rp)
    What it does:Hides the characters belonging to this faction from the scoreboard, unless the viewer is a admin or is part of the faction. Eg:
    How to edit: Line 30 of sh_incognito.lua in the faction folder to change the name on the scoreboard. Respective faction lines to edit the names.



    Donation Script - Clockwork
    [font=verdana, arial, helvetica, sans-serif][/size]http://forums.cloudsixteen.com/index.php?topic=5853.0
    [/font]
    All Downloads:https://github.com/trurascalz
     
    • Winner Winner x 1
    Last edited: Jul 26, 2016
  2. I don't think I understand what you mean on your Incognito factions.
     
  3. trurascalz

    trurascalz C16 Developer Legend


    re-worded
     
  4. Thanks, also I'm viewing it atm, if I was a newer guy to coding toward the factions area, I'd probably be lost. It's lines 28, and 29.

    Code:
     if (faction == FACTION_INCOG) then
      if (Clockwork.Client:GetFaction() == FACTION_INCOG) 
     
  5. trurascalz

    trurascalz C16 Developer Legend

    Line 30 is what it says on the scoreboard
    [​IMG]
     
  6. Incognitofactions/plugin/factions/sh_incognito.lua

    Code:
    -- Called when a player's scoreboard class is needed.
    function Schema:GetPlayerScoreboardClass(player)
     local faction = player:GetFaction();
     
     if (faction == FACTION_INCOG) then
      if (Clockwork.Client:GetFaction() == FACTION_INCOG) then
       return true;
      elseif (Clockwork.Client:IsAdmin()) then
       return "Hidden Faction(ADMIN/OOC View)";
      else
       return false;
      end;
     end;
    end;
     
    FACTION_INCOG = FACTION:Register();
    EDIT: Line 7 would be considered line 30.
     
  7. trurascalz

    trurascalz C16 Developer Legend

    should be updated, i recommend you redownload it
     
  8. I'll take a look, and see if it's fixed. Then I'll test it out.
     
  9. Line 30, it says
    Code:
    return "Incognito Faction";
    Change the words within the quotes.
     
  10. trurascalz

    trurascalz C16 Developer Legend

    You can if you want, or just leave it; only the people will see:
    Class file Line 1:
    Code:
    local CLASS = Clockwork.class:New("Incognito");
    
    Faction file Line 1:
    Code:
    local FACTION = Clockwork.faction:New("Incognito");
    
    Faction file Line 30:
    Code:
       return "Incognito faction";
    
    Faction file Line 32:
    Code:
         return "Hidden Faction(ADMIN/OOC View)";
    
    Thats only what you need to edit to change the name of it
     
  11. Trurascalz add me on steam: Pure_pownage
     
  12. RJ

    RJ no pay Legend Clockwork Customer

    This seems familiar, lol.
     
  13. trurascalz

    trurascalz C16 Developer Legend


    Code:
    
    
    author="Trurascalz,RJ";
    
    <3
     
  14. jamiecross

    jamiecross HTML and VB coder

    Which ones are HL2RP and what ones are Clockwork?
     
  15. ilhamionur

    ilhamionur Clockwork Customer

    Very good people were looking for incognito these days, I Will check it out and see if it works
     
  16. trurascalz

    trurascalz C16 Developer Legend

    I added what schema they are for now @jamiecross
     
  17. Didn't I fix yer passivedispatch thing too :eek:

    Right now it makes every player emit the sound, which is not very optimal.
     
  18. trurascalz

    trurascalz C16 Developer Legend

    You have to be alone to be afk, I'll look into it.


    Edit:
    Invisibility removed
    Global Notification added
    Sets custom class to AFK
     
  19. ZeMysticalTaco

    ZeMysticalTaco yo i&#039;m a taco have some lunch Clockwork Customer

    So I set stuffs and when I click login as, nothing pops up wut do.
     
  20. trurascalz

    trurascalz C16 Developer Legend

    That makes no sense whatsoever. if your talking about the report thing, make sure you edit /include/config.php
     

Previous Readers (Total: 0)