AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Editing amx_addadmin function (https://forums.alliedmods.net/showthread.php?t=282185)

aK. 05-01-2016 04:42

Editing amx_addadmin function
 
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?

HamletEagle 05-01-2016 08:51

Re: Editing amx_addadmin function
 
Use get_time() to get current time, then it's just a matter to edit the line that will be added into users.ini

aK. 05-01-2016 09:45

Re: Editing amx_addadmin function
 
Quote:

Originally Posted by HamletEagle (Post 2415646)
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.

fysiks 05-01-2016 13:46

Re: Editing amx_addadmin function
 
Attach your version of the plugin so we can see what you tried.


All times are GMT -4. The time now is 18:33.

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