files
#2

Use this :

pawn Код:
forward KickLog(string[]);

public KickLog(string[])
{
    new entry[256];
    format(entry, sizeof(entry), "%s\n",string);
    new File:hFile;
    hFile = fopen("KickLog.txt", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}

// Put this in your /kick command
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
KickLog(string);
format(string, sizeof(string), "AdmCmd: %s was kicked by %s, reason: %s", giveplayer, sendername, (result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
Kick(giveplayerid);
Reply


Messages In This Thread
files - by Schock - 02.03.2009, 15:30
Re: files - by Danut - 02.03.2009, 15:34
Re: files - by Schock - 02.03.2009, 15:53
Re: files - by Danut - 02.03.2009, 15:57
Re: files - by Schock - 02.03.2009, 16:07
Re: files - by Rks25 - 02.03.2009, 16:58
Re: files - by Schock - 02.03.2009, 18:05
Re: files - by Rks25 - 02.03.2009, 18:31
Re: files - by Schock - 02.03.2009, 18:34
Re: files - by Rks25 - 02.03.2009, 18:38

Forum Jump:


Users browsing this thread: 3 Guest(s)