1. Check out the Store if you're looking to Buy HL2RP or other schemas for your server. You can click Buy Schemas on the very top navigation bar to visit the store.
  2. Use the Plugin Center to easily subscribe to and auto-install Clockwork plugins to your server, or submit and share plugins you have developed.
  3. Having trouble setting up or developing with Clockwork? Check out the Wiki or post in the Support Forum for advice from fellow users.
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!

MPF/OTA Armor Item

Discussion in 'Requests' started by Wiz, Feb 18, 2018.

  1. Wiz

    Wiz Clockwork Customer Active Member

    Hello! I'm trying to script MPF/OTA armor as they both use models without armor with I edited for immersion, any idea how I can make armor items? Thanks.
  2. RJ

    RJ no pay Legend Clockwork Customer

    You're talking about the armor that's like health, or armor that negates damage? If it's the former then create an item here (make sure "Allow item to be used" is checked): https://clockworkconstructors.com/construct-item.php

    Add this to ITEM:OnUse(...):
    local currentArmorValue = player:Armor();
    local armorToGive = 50; -- Change this value as you'd like.
    local newArmorValue = currentArmorValue + armorToGive;
    Now add that item to a plugin that you can make here (make sure the "/items/" folder is checked and add your item to that folder): https://clockworkconstructors.com/construct-plugin.php

    Add that plugin to your server and you're done!
    • Like Like x 1

Previous Readers (Total: 0)