View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-15-2009 , 07:11   Advanced ResetScore 0.2.0
Reply With Quote #1

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
PHP Code:
new const gs_Commands[ ][ ] =
{
    
"say /resetscore",
    
"say /restartscore"
}; 
Cvars
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
Attached Files
File Type: sma Get Plugin or Get Source (resetscore.sma - 28959 views - 5.0 KB)
File Type: txt resetscore.txt (2.9 KB, 14666 views)
__________________


Last edited by anakin_cstrike; 10-03-2009 at 20:29.
anakin_cstrike is offline