ok ok here is what i got so far
Code:
#include <amxmodx>
#include <amxmisc>
public showlastmaps(id)
{
new header[80]
new myversion[32]
new lastmaps[64]
get_configsdir(lastmaps, 63)
format(lastmaps,63,"%s/map_manage/lastmapsplayed.txt", lastmaps)
get_cvar_string("Deags_Map_Manage",myversion,31)
format ( header , 79 ,"Displaying Last Maps Played",myversion )
show_motd(id,lastmaps,header)
return PLUGIN_CONTINUE
}
public plugin_init()
{
register_plugin("Lastmaps","0.1","Sliver")
register_clcmd("say /lastmaps","showlastmaps")
return PLUGIN_CONTINUE
}
everything works as i wanted it to but here is what my lastmaps.txt looks like:
de_nuke
de_dust2
de_torn
de_dust2
de_aztec
//Generated by map_nominate plugin,
//these are most recent maps played
and that is what pops up in the MOTD, would there be any way to get rid of those comments? (the generated by map_nominate)