Este repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.
Añade sus archivos include, con las librerías de las que depende, al compilador de Pawn de tu navegador, listos para incluirlos en un script.
README.MD
ChatLog SA-MP
A simple SA-MP filterscript that automatically logs all chat messages sent to each player into individual .log files, saved under scriptfiles/chatlog/.
Requirements
- YSI (
y_hooks) - FileManager
Installation
- Include
chatlog.incin your gamemode:#include <chatlog> - Include
chatlog.pwnin your gamemode modules:#include "modules/server/chatlog.pwn"
Functions
chatlog.inc
| Function | Description |
|---|---|
ChatLog_WriteLine(playerid, const text[]) | Writes a timestamped line to the player's log file. Called automatically via SendClientMessage hook. |
ChatLog_SetName(playerid, const name[]) | Sets the player name used for the log filename. |
The
.incfile hooksSendClientMessageandSendClientMessageToAllso all messages are logged automatically — no manual calls needed.
chatlog.pwn (Internal)
| Function | Description |
|---|---|
ChatLog_Open(playerid) | Opens (or re-opens) the log file for a player. |
ChatLog_Close(playerid) | Closes the log file for a player. |
ChatLog_FlushBuffer(playerid) | Writes buffered lines (pre-spawn messages) to file. |
ChatLog_BufferLine(playerid, line[]) | Buffers a line before the player has spawned. |
Log Output
Logs are saved to:
scriptfiles/chatlog/<PlayerName>.log
Each line is timestamped:
[12:34:56] Welcome to the server!
Note
Please modify
chatlog.pwnas needed to fit your own server setup.
Credits
NelloW15 — Script author
Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha