Get Offline Stuff
#1

can i make /admins to get online + offline admins ?
cause ma command get online only admins.
Reply
#2

What saving system are you using? For some weird reason no one ever mentions that. Easy to do with SQL, not so much with file based systems.
Reply
#3

what about dudb ?
Reply
#4

Do you use dini?
Reply
#5

Quote:
Originally Posted by Face9000
Посмотреть сообщение
Do you use dini?
Nope Dudb
Reply
#6

It can.
Just create a script that saves admin's names in a file when /setlevel is used.
Then create a script that returns all names from the file you made when /admins is used.

Don't forget to modify the script when player is no more an admin.
Reply
#7

With a file-based system you can list all the file in your users directory to a text file (dir /B >> list.log with Windows cmd), then open this list and read line by line every username like this:

pawn Код:
new File:list = fopen("list.log", io_read);
while(fread(list, string))
{
     //maybe something to remove the extension of your file
     if(strval(dUser(string).("adminlevel")) != 0) print(string);
}
fclose(list);
(thanks to PowerPC who answered me about this three years ago, lol)
Reply
#8

Quote:
Originally Posted by DarkSlyder
Посмотреть сообщение
With a file-based system you can list all the file in your users directory to a text file (dir /B >> list.log with Windows cmd), then open this list and read line by line every username like this:

pawn Код:
new File:list = fopen("list.log", io_read);
while(fread(list, string))
{
     //maybe something to remove the extension of your file
     if(strval(dUser(string).("adminlevel")) != 0) print(string);
}
fclose(list);
(thanks to PowerPC who answered me about this three years ago, lol)
I did?
Can't remember that, LOL.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)