02.03.2009, 15:34
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);