samp.directory
← Skrypty i biblioteki

nellow15/chatlog-samp

Brak opisu na GitHubie.

Biblioteka★ 2zaktualizowano kwi 2026Brak licencjiPawn
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

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


Installation

  1. Include chatlog.inc in your gamemode:
    #include <chatlog>
    
  2. Include chatlog.pwn in your gamemode modules:
    #include "modules/server/chatlog.pwn"
    

Functions

chatlog.inc

FunctionDescription
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 .inc file hooks SendClientMessage and SendClientMessageToAll so all messages are logged automatically — no manual calls needed.

chatlog.pwn (Internal)

FunctionDescription
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.pwn as needed to fit your own server setup.


Credits

NelloW15 — Script author

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

nellow15/chatlog-samp: Biblioteka SA-MP | samp.directory