Reset Score
2 Attachment(s)
*Last Updated Post: Saturday, November 11, 2011* - no longer will it display "/resetscore" in the chat when you type the commend and '/rs' is now a chat command to reset the score
This is my first plugin that I am posting up, its a small plugin but I think the idea isnt too bad and somewhat original (the fact that I dont think anyone else has done it yet) and can be useful. Description This small plugin allows a player to reset their score back to 0 kills and 0 deaths, this saves them the trouble of reconnecting to your server to reset their score. It makes it easier on them because its a simple command that they would type, and helps your server by not having another person reconnecting and possibly lagging your server. Client Commands "say /resetscore" OR "say /restartscore" - This will reset their kills and deaths back to 0 Cvars/Server Commands (These commands should be put in server.cfg if you want to change them from their defaults) sv_rsdisplay - (Default 0) If this is set to 1 it will show who resets their score when they reset it sv_rsadvertise - (Default 0) If this is set to 1 then it will show that this is in your server and tell people how to use it every 10 minuites and when they connect to your server If you find any bugs please post it or if you have any suggestions feel free to post those too and ill do my best to fix/add them. *Found a spelling error, and I reposted the fixed version as of Monday July 14 2008* :: Changelog :: Version 1.0 ( Monday July 13 2008 ) - Released Included:
Version 1.1 ( Monday July 14 2008 ) - Changed a bit of coding (cvars to pcvars) - Fixed a spelling error :: To Do ::
|
Re: Reset Score
Good Job, although I'm fully against resetting any scores. :D I wouldnt doubt many people would use this tho.
|
Re: Reset Score
Seems solid.
Not something I would use personally but I am sure there are users that would. |
Re: Reset Score
:D thanks, I don't think many people will use it too. But its nice to use if your one that doesnt like to see bad scores and constantly retries everytime he dies when he didn't want to
|
Re: Reset Score
True.
I'm all for, +karma It's not badly coded either. The only thing is that if you only have a one liner, you don't need brackets. PHP Code:
PHP Code:
It doesn't make much difference, it's just a tip if you want to make future plugins even more concise and smaller :D Nice work though |
Re: Reset Score
JFeldon: That's all a coder's preference :wink:
silentt: Please use pcvars and I will approve :) |
Re: Reset Score
I know, that's why I said it's just a tip IF you want to do that :P but eh
|
I switched to pcvar's not sure if I did them right because I never use them. But I re-tested it and it worked so I guess i did. So is the difference that pcvars use variables?
|
Re: Reset Score
Hmm...interesting.
|
Thank you
|
All times are GMT -4. The time now is 07:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.