15.11.2010, 11:32
How to create log like if I use command /kick , then it saves this command somehow into mysql database ?
Like adminlog or something .
Please help !
Like adminlog or something .
Please help !
stock AdminLog(adminname[], playername[], action[], reason[])
{
new hour, minute, second, year, month, day;
getdate(year, month, day);
gettime(hour, minute, second);
format(Query, sizeof(Query), "INSERT INTO `Admin Logs` (`AdminName`, `PlayerName`, `Action`, `Reason`, `Date`, `Time`) VALUES('%s', '%s', '%s', '%s', '%d/%d/%d', '%d:%d:%d')", adminname, playername, action, reason, month, day, year, hour, minute, second);
mysql_query(Query);
}