How to get admin's information from users.ini
Hello everyone,
I'll like if someone can make tutorial and an example code for following: When any admin or player type: /admins in chat, then thet person can see motd with all admins from users.ini file. Example: http://www.dodaj.rs/f/3V/hq/2S9mNJn/motd.png And I want to know is possible to change page in motd? |
Re: How to get admin's information from users.ini
1.Post your question in the right forum.
2.Search the forum. No one is going to write tutorial for you when there's 100s of examples on the forum. |
Re: How to get admin's information from users.ini
As long as you consistently store the users name in the first field (I don't) then this can work.
Code:
; Format of admin account:PHP Code:
|
Re: How to get admin's information from users.ini
THXX Bugsy but can you say me how it's print Name and Flags... Why code doesn't print admin's password too ? :D
|
Re: How to get admin's information from users.ini
1. My server have more then 20 admins but motd print just 10 admins.
2. Can you add BG COLOR #000000 and font color #FFFFFF 3. Is possible to make motd who can change pages ? Exampe: On one page code will print 15 admins... If server have more then 15 admins, then code will create more more motd (page) http://www.dodaj.rs/f/11/jb/4IIizvcW/untitled.png |
Re: How to get admin's information from users.ini
Quote:
Also, the MOTD cannot interact directly with a plugin that easily so making pages as you suggest is not really that easy. |
Re: How to get admin's information from users.ini
@fyskis: Why would you want to show passwords?
I don't want to show password but I want to know how did he show only nick and flags... And, can anyone add bgcolor to black and text to white in motd plzz.. |
Re: How to get admin's information from users.ini
Look up how parse works. Where password is stored, I pass a temp/unused variable szTmp to read 1 character from it just to bypass it to get to flags.
|
Re: How to get admin's information from users.ini
Bugsy, sorry but again I don't understend how did you do it...
Can you help me about motd. I want if you can make and if is it possible, next page to motd (See my second photo, #5 comment) |
Re: How to get admin's information from users.ini
Quote:
native parse(const text[], ... ); The function will parse the string in pieces of connected characters (can have no spaces or other possible delimiters) or characters enclosed in quotes (can have spaces or delimiter characters). It accepts a variable number of parameters which tells it how many pieces of data you want to parse. In this instance, we want 2 pieces, but there is a section in the middle that we do not want, which is the password field. A variable must be specified there as a placeholder in order to get to the next piece of data that is desired (flags). <name|ip|steamid> <password> <access flags> <account flags> szLine[] = "STEAM_0:0:12345" "" "abcdefghijklmnopqrstu" "ce" parse( szLine , szAdminArray[ iAdminIndex ][ 0 ] , iMaxChars , szTmp , 1 , szAdminArray[ iAdminIndex ][ 1 ] , iMaxChars ); |
| All times are GMT -4. The time now is 20:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.