Raised This Month: $ Target: $400
 0% 

quick question.....


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sliver
New Member
Join Date: May 2004
Old 08-31-2004 , 17:36  
Reply With Quote #3

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)
Sliver is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode