[FilterScript] HTML Command logger - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] HTML Command logger (
/showthread.php?tid=599692)
HTML Command logger -
Floriian - 29.01.2016
Hy.
I prepared an HTML-based logger command.
Do not forget the cmd.html create a file folder scriptfiles!
Install in ZCMD:
PHP Code:
public OnPlayerCommandPerformed(playerid,cmdtext[], success)
{
if(success)
{
CMDLog(playerid, cmdtext);
}//After you're part of your code
return 1;
}

"parancs" = command.I translated to english.
Re: HTML Command logger -
Alex Magaсa - 29.01.2016
Any preview (video or picture) of the script how it looks like on server-side? Because a gallery in a "project" it shows the professionalism of the scripter and it will add more effort on the project.
Re: HTML Command logger -
Floriian - 29.01.2016
Added.
Re: HTML Command logger -
BiosMarcel - 29.01.2016
Sry, i have to:
PHP Code:
stock logAsHTML(playerid, path[], string[])
{
new playername[MAX_PLAYER_NAME],
y, m, d, h, min, s,toLog[512];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
getdate(y,m,d);
gettime(h,min,s);
format(toLog, 512, "<span style='color:red'>[%d %d %d TIME: %d %d %d]</span><span style='color:black'>%s</span>\n", y, m, d, h, min, s, string);
nw File:cmd = fopen(path[], io_append);
fwrite(cmd, toLog);
fclose(cmd);
}
Do, i basically reduced this to a lil snippet, since just an html chatlog isn't that useful, but thanks to u i have a new idea