Advanced ResetScore 0.2.0

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Advanced ResetScore 0.2.0

Post by greenie »

ResetScore
0.2.0
A simple but usefull plugin: players can reset their score and money (controled by a cvar). There's a limit for score reseting and an interval between resets. Players can't reset their score if it's 0 - 0 (already reseted). Admins have a command to reset players score.

Changelog
0.2.0 :
- optimizated a bit
- added ML support
- added feature: player won't get more money than curent amount when reseting (if you have 100$ and resetscore_money cvar seted to 800, you won't receive 800$, you'll have 100$)
- added feature: if you set resetscore_max cvar to 0 there will be no limit to score reseting

0.1.0 : first released

Wich commands will reset the score
new const gs_Commands[ ][ ] =
{
"say /resetscore",
"say /restartscore"
};
vars
resetscore_max
- how many times players can reset their score (default: 5)
- if you set this cvar to 0 there is no limit to score reseting

resetscore_interval - how many minutes must pass before players can reset theirs score again (default: 3)
resetscore_money
-2 = don't set
-1 = set at mp_startmoney value
another number will set to that value (e.g 0)
(default: -1)

Admin command
amx_resetscore <target> - reset player's score

Modules : Cstrike & Fun

get plugin
get source
Post Reply

Return to “Statistical”