Chat Log
#1

Hello!
I want the following:

I need a chat, announce, admin chat, commands and rcon commands saver.
My idea: It saves everything to a log file (etc. Log.txt)
Can somebody makes this script? Help please!

In Hungarian:
Magyarul:

Sziasztok!
A kцvetkezőt szeretnйm:

Szьksйgem van egy Chat, announce, admin chat, parancsok, йs rcon parancsok elmentő scriptre.
Az йn цtletem: Elment mindent (a chatet, kйpernyőre нrбsokat stb.) egy Log fбjlba (pl. Log.txt)
Meg tudja valaki csinбlni? Kйrlek segнtsetek!
Reply
#2

Script Request Thread.
Reply
#3

in your admin fs use printf when s cmd is used then it will apear in the chat log
Reply
#4

What? Sorry, my English is not the goodest
Can you write more than this?
If you're got Live Messenger, add me to your partners.
steeradam@freemail.hu
And again sorry for my bad English
Reply
#5

use a translator

when you use printf it shows in the log i think
Reply
#6

Quote:
Originally Posted by ► James_Alex
try this
pawn Код:
}

public OnPlayerText(playerid, text[])
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    new day, month, year, minu, sec, hour;
    gettime(hour, minu, sec);
    getdate(year, month, day);
    new str[128]; format(str, 128, "%s says in (%d/%d/%d) at (%d:%d:%d): %s", name, day, month, year, sec, minu, hour, text);
    new File:lFile;
    lFile = fopen("log.txt", io_append);
    fwrite(lFile, str);
    fwrite(lFile, "\n\r");
    fclose(lFile);
    return 1;
}
Hmm... Okay thanks very much
Note: What is that '}' at the start of pawn code?
Quote:
Originally Posted by brett7
use a translator

when you use printf it shows in the log i think
Thanks, if James_Alex's version don't works, i will use your version.
Reply
#7

Okay
You're always at computer?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)