AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [ZR] Class Attribute Resetscore (https://forums.alliedmods.net/showthread.php?t=338488)

000 07-08-2022 04:08

[ZR] Class Attribute Resetscore
 
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.



Truyn 08-01-2022 18:09

Re: [ZR] Class Attribute Resetscore
 
Your add-ons don't work with the latest zr version

ReyesHatrinak 08-02-2022 05:27

Re: [ZR] Class Attribute Resetscore
 
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

000 08-02-2022 12:06

Re: [ZR] Class Attribute Resetscore
 
Quote:

Originally Posted by Truyn (Post 2785361)
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.


All times are GMT -4. The time now is 16:01.

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