Would having some sort of timer that would only keep the dev messages for 30 seconds save some res?
public alertmessage(atype, message[])
{
/* switch(atype)
{
case at_notice: server_print("ALERTMESSAGE, ATYPE=at_notice")
case at_console: server_print("ALERTMESSAGE, ATYPE=at_console")
case at_aiconsole: server_print("ALERTMESSAGE, ATYPE=at_aiconsole")
case at_warning: server_print("ALERTMESSAGE, ATYPE=at_warning")
case at_error: server_print("ALERTMESSAGE, ATYPE=at_error")
case at_logged: server_print("ALERTMESSAGE, ATYPE=at_logged")
}
switch(atype)
{
case 0: server_print("ALERTMESSAGE, ATYPE=0")
case 1: server_print("ALERTMESSAGE, ATYPE=1")
case 2: server_print("ALERTMESSAGE, ATYPE=2")
case 3: server_print("ALERTMESSAGE, ATYPE=3")
case 4: server_print("ALERTMESSAGE, ATYPE=4")
case 5: server_print("ALERTMESSAGE, ATYPE=5")
}
*/
new simpleout[512];
format(simpleout,511,"%s", message)
if ( file_exists("dev_log.log") == 0 ) write_file("dev_log.log","logstart");
write_file("dev_log.log",simpleout,-1);
server_print("(Logged)")
}