also wenn ich das richtig verstanden hast, willst du den chat einmal loggen richtig?
wenn ja hab ich hier was.
OnPlayerText
new strings[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(strings, sizeof(strings), "[%s]: %s", pname, text);
ChatLog(strings);
forward ChatLog(logtext[]);
public ChatLog(logtext[])
{
new string[128],File:logfile=fopen("chatlog.ini", io_append);
format(string, sizeof(string), "%s\r\n", logtext);
fwrite(logfile, string);
fclose(logfile);
}