PHP Code:
new const constLogs[][] = {
"AdminCommandsLogs/Kick/Kicks",
"AdminCommandsLogs/Slay/Slays",
"AdminCommandsLogs/Slap/Slaps"
}
public plugin_init()
{
for(new i = 0, szBase[100], szDate[100], szLogName[100]; i < sizeof(constLogs); i++)
{
get_time("%Y%m%d", szDate, charsmax(szDate))
get_basedir(szBase, charsmax(szBase))
formatex(szLogName, charsmax(szLogName), "%s/logs/%s%s", szBase, constLogs[i], szDate)
ArrayPushString(Logs, szLogName)
}
}
How to check if there is direction AdminCommandsLogs and Kick if there will be writed in itself array like file name.