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!

Tokens

Discussion in 'Discussion' started by zaccat, Dec 30, 2012.

  1. Im just wondering Can you give yourself tokens But if you cant im fine But i was just asking

    Thanks
     
  2. Code:
    --[[
    	© 2012 CloudSixteen.com do not share, re-distribute or modify
    	without permission of its author ([email protected]).
    --]]
    
    local COMMAND = Clockwork.command:New("AddTokens");
    COMMAND.tip = "Add tokens to your total amount.";
    COMMAND.text = "<number Amount>";
    COMMAND.flags = CMD_DEFAULT;
    COMMAND.access = "s";
    
    -- Called when the command has been run.
    function COMMAND:OnRun(player, arguments)
    	Clockwork.player:GiveCash(player, arguments[1], "ration packet");
    end;
    
    COMMAND:Register();
    Place that in the HL2RP commands folder. Also, please stop making so many topics.
    Example Use:
    /AddTokens "50"
     
  3. Thanks Sorry :(
     
  4. Dude where is the Hl2 commands folder
     
  5. Razor

    Razor Guest

    You kept the reason as Ration packet :V
     
  6. Yep :D
     

Previous Readers (Total: 0)