14.10.2011, 03:44
Hey,
I would like to know how i would create a log of bans with my users ? using y_ini as save/load sys
I would like to know how i would create a log of bans with my users ? using y_ini as save/load sys
forward BanLog(string[]);
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "[ADMIN]: %s was banned by %s, Reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
BanLog(string);
public BanLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("Logs/ban.txt", io_append);
fwrite(hFile, entry);
fclose(hFile);
}