06.12.2011, 16:39
Код:
new PNAME[MAX_PLAYER_NAME]; GetPlayerName(playerid, PNAME, sizeof (PNAME)); format(chatSTRING, sizeof (chatSTRING), ""BLUE"[AdmCmd] "GREEN"%s "BLUE"has reloaded the script!", PNAME); SendClientMessageToAll(COLOR_BLUE, chatSTRING); PlayerPlaySound(playerid, 1057, 0, 0, 0); gettime(LogHour, LogMinute, LogSecond); getdate(LogYear, LogMonth, LogDay); new File:pos=fopen("admin.log", io_append); if (pos) { format(FILESTRING, 256, "[%02d/%02d/%d - %02d:%02d:%02d] [AdmCmd] %s has reloaded the script!\r\n", LogDay, LogMonth, LogYear, LogHour, LogMinute, LogSecond, PNAME); } fwrite(pos, FILESTRING); fclose(pos); SendRconCommand("reloadfs matrixadmin");