This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Server Password Management [ 0.0.2 ]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 04-03-2010 , 06:36   Server Password Management [ 0.0.2 ]
Reply With Quote #1

Server Password Management
Another useless plugin
(Version: 0.0.2 | Author: unny; aka unnyquee)



What does this plugin?
It sets a random 4 digits password, when the server reaches <spm_players> online players and then removes it, when online players drops under <spm_players>

CVARs:
  • spm_status <0/1> - disable / enable plugin
  • spm_players # - minimum players online to set password
Requirements:
  • AMX Mod X 1.8.1
Changelog:
  • 0.0.1 - release
  • 0.0.2 - optimizations (thanks Exolent)

Attached Files
File Type: sma Get Plugin or Get Source (server_password_management.sma - 133 views - 1.9 KB)
__________________

Last edited by unnyquee; 04-03-2010 at 13:46.
unnyquee is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-03-2010 , 13:23   Re: Server Password Management [ 0.0.1 ]
Reply With Quote #2

1. Use "new const" instead of "#define" for strings that are used more than once.

2. Use formatex() instead of format() since you aren't passing szPassword as a formatting variable.

3. You should just use random_num(0, 9999) instead of 4 separate ones and use "%04d" to format it to 4 numbers.

4. I'm sure this has been posted before.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 04-03-2010 , 13:45   Re: Server Password Management [ 0.0.2 ]
Reply With Quote #3

1, 2, 3) fixed
4) I have searched around the forum and found nothing.. Probably it's something similar, but not entirely like this one

Thanks for the tips Exolent
__________________

Last edited by unnyquee; 04-03-2010 at 13:48.
unnyquee is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-03-2010 , 14:14   Re: Server Password Management [ 0.0.2 ]
Reply With Quote #4

You didn't even test 0.0.2.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-03-2010 , 14:20   Re: Server Password Management [ 0.0.2 ]
Reply With Quote #5

This is redundant and cannot be approved. There are other plugins which do the job equally or better.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:08.


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