Expiration Date in default admin plugin
1 Attachment(s)
Hello,
So, I've tried adding expiration date to the default admin.sma (only to the users.ini way, not mysql). The code is not yet tested, so it would be great if someone would like to test it out. Also, would be more great if someone could find out any bug or point some better way in it. Thanks |
Re: Expiration Date in default admin plugin
This kind of thing should be included to the default AMXX package. Being able to add a date in the users.ini file will be much useful. Maybe I'll recreate the entire plugin one day.
|
Re: Expiration Date in default admin plugin
Or maybe if my code works, it could be added to amxmodx 1.8.3 under the next update
|
Re: Expiration Date in default admin plugin
I didn't check your code, but it should be easy to make. Just parse an additional parameter from the users.ini file that will be the date, compare it with the current date and stop the plugin from adding the admin if the date is passed.
|
Re: Expiration Date in default admin plugin
Actually what 1.8.3 is mostly lacking to be released is features for end users, plugin writes did get a lot of new features. This would be welcome, actually all first party plugins should receive some love.
|
Re: Expiration Date in default admin plugin
Quote:
|
Re: Expiration Date in default admin plugin
1 Attachment(s)
Hello,
I updated the code as above had few bugs. The plugin works fine if I add properly in users.ini. However, when I use amx_addadmin the expirationdate is not correctly added to users.ini. I doubt error is in Code:
stock getExpirationDate(duration) { |
Re: Expiration Date in default admin plugin
What exactly is the output?
You're making that stock way more complicated than it has to be by the way: PHP Code:
Also, to automatically add a leading zero to an integer if it's a 1-digit number, you can use the following format: PHP Code:
|
Re: Expiration Date in default admin plugin
Quote:
|
Can You Give Me Example Like This:
"killer" "123" "bceijmtu" "a" ; Expiration: Tell Me What I Add In Expiration? |
All times are GMT -4. The time now is 07:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.