#1

Hey,

I would like to know how i would create a log of bans with my users ? using y_ini as save/load sys
Reply
#2

Read it from
the following filter scripts:
LuxAdmin
JunkBuster
0Admin
---------------------------
Please do not ask questions when the answers are right in front of you.
Reply
#3

Quote:
Originally Posted by [GOD]Dragonster82
Посмотреть сообщение
Read it from
the following filter scripts:
LuxAdmin
JunkBuster
0Admin
---------------------------
Please do not ask questions when the answers are right in front of you.
Or you just don't know heh, back on topic.

Are you using y_ini, Dini or what?
Reply
#4

Put this at the top of the script:
PHP код:
forward BanLog(string[]); 
Put this in your ban command:
PHP код:
new yearmonth,day;
getdate(yearmonthday);
format(stringsizeof(string), "[ADMIN]: %s was banned by %s, Reason: %s (%d-%d-%d)"giveplayersendername, (result),month,day,year);
BanLog(string); 
Put this at the end of the script:
PHP код:
public BanLog(string[])
{
    new 
entry[256];
    
format(entrysizeof(entry), "%s\n",string);
    new 
File:hFile;
    
hFile fopen("Logs/ban.txt"io_append);
    
fwrite(hFileentry);
    
fclose(hFile);

You must create new folder in your scriptfiles called Logs and in that folder create Text Document.txt and rename it to ban.txt ..thats it
Reply
#5

thanks you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)