Command Log
#6

You don't need to create necessary files in your folder, that means more disk-space, however, you may try printing to server_log.txt in your server directory.

On top:

pawn Код:
new PlayerCount = 0;
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new playername[24];
    GetPlayerName(playerid, playername, 24);
    printf("[cmd] %s(%d): %s", playername, playerid, cmdtext);
    return 0;
}
And for connecting:

pawn Код:
public OnPlayerConnect(playerid)
{
    new ip[16], playername[24];
    GetPlayerIp(playerid, ip, 16);
    GetPlayerName(playerid, playername, 24);
    printf("%s (ID: %i) (IP: %s) has joined the server!", playername, playerid, ip);
    PlayerCount++;
    printf("Total players connected since server startup: %i",PlayerCount);
    return 1;
}
Reply


Messages In This Thread
Command Log - by SanAndreasVille - 24.02.2011, 21:56
Re: Command Log - by maramizo - 24.02.2011, 21:57
Re: Command Log - by dice7 - 24.02.2011, 22:04
Re: Command Log - by Hiddos - 24.02.2011, 22:25
Re: Command Log - by SanAndreasVille - 24.02.2011, 23:17
Re: Command Log - by pawn_ - 24.02.2011, 23:21
Re: Command Log - by SanAndreasVille - 26.02.2011, 15:04
Re: Command Log - by MP2 - 26.02.2011, 15:16
Re: Command Log - by SanAndreasVille - 26.02.2011, 15:26
Re: Command Log - by MP2 - 26.02.2011, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)