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!

Flag Weapons

Discussion in 'Discussion' started by Knight, Jul 23, 2016.

  1. Is there a way to attach weapons to a flag? If so, how? Been having a bit of trouble with it lately and some help would be much appreciated.
     
  2. Bump?
     
  3. Requiescat

    Requiescat Clockwork Customer

    Code:
    local PLUGIN = PLUGIN;
    
    -- Called when a player has been given flags.
    function PLUGIN:PlayerFlagsGiven(player, flags)
        if (string.find(flags, "l") and player:Alive()) then
            player:Give("m9k_dbarrel")
        end;
    end;
    
     
    • Good Coder Good Coder x 1
    Last edited: Jul 24, 2016
  4. duck

    duck Phant0m Legend

    No, he got it. string.find is how it's done in CW's kernel.
     

Previous Readers (Total: 0)