Raised This Month: $12 Target: $400
 3% 

[ZR] Class Attribute Resetscore


Post New Thread Reply   
 
Thread Tools Display Modes
Author
000
Member
Join Date: Jul 2022
Plugin ID:
8107
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 07-08-2022 , 04:08   [ZR] Class Attribute Resetscore
    Reply With Quote #1

    Description:
    Functionality has been extended:

    1. You can restrict resetscore command (!rs/!resetscore) per playerclass.
    2. You can disable deaths per playerclass.
    3. You can enable competitive rounds (players' score will reset every round, only MVPs remain).

    Requirements:
    SourceMod 1.11+
    Zombie:Reloaded
    [ZR] Tools

    Installation:
    - Put all files from the release folder in your game root folder ("csgo", "cstrike", ...). However, check the "plugins" folder beforehand because files for csgo and css are separated.
    - Reload map.

    If the plugin(s) are not working as intended, check your logs in addons/sourcemod/logs and report here (if available).
    If error logs are not available, report nevertheless.

    Configuration:
    This plugin, unlike plugins usually do, does not use any .cfg files and is purely configurable via playerclasses.txt.
    This means you can change values per playerclass.

    PHP Code:
    "resetscore_cmd"    "1"    // Should the class user be able to use !rs/!resetscore?
    "resetscore_comp" "0"    // Should score for this class reset each round start?
    "resetscore_i_d" "1"    // Should Deaths be ignored for this class? (if killed, death won't count) 
    Add these attributes with it's values to all playerclasses you have, anywhere you want.

    Translation:
    If you will, and the translation to be used does not exist, you can upload the file in a reply.

    Changelog:
    Code:
    - v1.0
    • Initial release.
    - v1.1
    • Added missing translation.
    - v1.2
    • Polishing.

    Last edited by DarkDeviL; 06-15-2023 at 12:47. Reason: Restore to previous version.
    000 is offline
    Truyn
    Junior Member
    Join Date: Mar 2019
    Old 08-01-2022 , 18:09   Re: [ZR] Class Attribute Resetscore
    Reply With Quote #2

    Your add-ons don't work with the latest zr version
    Truyn is offline
    ReyesHatrinak
    New Member
    Join Date: Jul 2022
    Old 08-02-2022 , 05:27   Re: [ZR] Class Attribute Resetscore
    Reply With Quote #3

    As you see there are various ugly hacks to set all variables of an object to 0. I don't think any of them are the correct thing to do. The correct thing is more similar to what you are doing. But if you post the real code, we can help you in doing something sane instead
    ReyesHatrinak is offline
    000
    Member
    Join Date: Jul 2022
    Old 08-02-2022 , 12:06   Re: [ZR] Class Attribute Resetscore
    Reply With Quote #4

    Quote:
    Originally Posted by Truyn View Post
    Your add-ons don't work with the latest zr version
    Hi.

    Thanks for reaching out.

    Sometimes I'm messy...

    Added the missing translation.

    Best regards.

    Last edited by 000; 09-05-2022 at 17:41. Reason: Updated to v1.1.
    000 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:08.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode