View Single Post
Plugin Info:     Modification:          Category:         
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 09-19-2009 , 22:19   Advanced Score Handler v1.1 [9/19/09]
Reply With Quote #1

Advanced Score Handler v1.1
BOYSplayCS


description
Now with more options and editing, admins or players can choose to reset kills, deaths or both at the same time. Depending on cvars, only admins can reset kills and deaths, or everyone can. Also depending on a cvar, the server will globally reset kills and deaths every 600.0 seconds, which can easily be edited to your likings.


admin commands
ash_set_kills <target> <kills> - Set players kills.
Required: ADMIN_KICK

ash_set_deaths <target> <deaths> - Set players deaths.
Required: ADMIN_KICK

ash_reset_score <target> - Reset players kills and deaths.
Required: ADMIN_KICK


player commands
/resetkills - Resets player kills back to 0.
Required: NONE

/resetdeaths - Resets player deaths back to 0.
Required: NONE

/resetall - Resets player kills and deaths back to 0.
Required: NONE

/ashmenu - Opens up the ASH Menu for quicker editing.
Required: NONE

+ashmenu - Opens up the ASH Menu for quicker editing.
Required: NONE


cvars
ash_enable <#> - Enable / Disable the plugin.
Default: 1

ash_time_enable <#> - Enable / Disable global resetting every 600.0 seconds.
Default: 1

ash_reset_enable <#> - Allow / Disallow player score resetting.
Default: 0

ash_reset_advertise <#> - Allow / Disallow advertising for commands regarding resetting.
Default: 0

ash_menu_enable <#> - Allow / Disallow the menu for players and admins.
Default: 1


editing help
If you want to change the global reset timer from 600.0 to your own personal setting simply, click the Get Source link under the download options and open up the .sma file with a text editor. From here, go to the top of the source code and change

PHP Code:
#define cTime 600.0 
to
PHP Code:
#define cTime YOUR_TIME_HERE 
After setting your own time, in seconds, save the source code. Normally, you can do this by pressing CTRL + S and it will automatically overwrite the previous file. Once saved, go to amxmodx.org and recompile the plugin and grab the .amxx file for proper use.


changelog
  • Version 1.0
    • Initial Release
  • Version 1.1
    • Fixed bug with setting kills
    • Added menu for quicker editing
    • Added new cvar for enabling/disabling menu use
Attached Files
File Type: sma Get Plugin or Get Source (ash.sma - 923 views - 7.0 KB)

Last edited by BOYSplayCS; 09-19-2009 at 23:47. Reason: Added version 1.1
BOYSplayCS is offline