Raised This Month: $ Target: $400
 0% 

Editing amx_addadmin function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aK.
New Member
Join Date: May 2016
Old 05-01-2016 , 04:42   Editing amx_addadmin function
Reply With Quote #1

Hello,
I wanted to make amx_addadmin command record the date of execution in user.ini
like
"Admin1" "mypassword" "abcedefgh" "a" ; Admin 1 -DD/MM/YY
I have some knowledge of C language, but i wasn't able to understand amx scripting properly, neither did i find help from google.
Any help?
aK. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-01-2016 , 08:51   Re: Editing amx_addadmin function
Reply With Quote #2

Use get_time() to get current time, then it's just a matter to edit the line that will be added into users.ini
__________________
HamletEagle is offline
aK.
New Member
Join Date: May 2016
Old 05-01-2016 , 09:45   Re: Editing amx_addadmin function
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
Use get_time() to get current time, then it's just a matter to edit the line that will be added into users.ini
Can you guide me to the exact line in admin.sma because im getting errors in compilation.
aK. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-01-2016 , 13:46   Re: Editing amx_addadmin function
Reply With Quote #4

Attach your version of the plugin so we can see what you tried.
__________________
fysiks is offline
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 18:33.


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