[FilterScript] HTML Command logger
#1

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(playeridcmdtext);
    }
//After you're part of your code
    
return 1;

Download:




Image album: http://imgur.com/a/ktBHH

Images:




"parancs" = command.I translated to english.
Reply
#2

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.
Reply
#3

Added.
Reply
#4

Sry, i have to:

PHP Code:
stock logAsHTML(playeridpath[], string[])
{
    new 
playername[MAX_PLAYER_NAME],
        
ymdhmins,toLog[512];
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    
getdate(y,m,d);
    
gettime(h,min,s);
    
format(toLog512"<span style='color:red'>[%d  %d  %d TIME: %d  %d  %d]</span><span style='color:black'>%s</span>\n"ymdhminsstring);
    
nw File:cmd fopen(path[], io_append);
    
fwrite(cmdtoLog);
    
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)