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!

Multi-usage Item

Discussion in 'Discussion' started by grafikerror, Oct 22, 2016.

  1. grafikerror

    grafikerror Clockwork Customer

    Hi there !

    I just would like to know if there is an multi-usage feature for items !
    For exemple i would like to have ITEM.usage = 5; in few item tables to be able to use this item five times before disapearing !
    Maybe there is a plugin that do it !
    Would this be possible to do it with ITEM.AddData("something", "something");

    If this not exist yet, you just have to take this post as suggestion !

    Thanks !
     
  2. duck

    duck Phant0m Legend

    return false in ITEM:Use
     
  3. grafikerror

    grafikerror Clockwork Customer

    If i put return false in ITEM:Use first :
    You will simply not be able to use the item, but if you put it last, you will be able to use it but unlimited usage not a number :(.
     
  4. duck

    duck Phant0m Legend

    return false will only tell CW to not take the item. It's up to you to implement the amount of times they can use it.
     
    • Agree Agree x 1
  5. grafikerror

    grafikerror Clockwork Customer

    Seems like It also does that usesound is not played.
     

Previous Readers (Total: 0)