my code isn't working....it's just to make an motd pop up and open a file.....but it won't open the motd
Code:
/**********************************************
* MapView
* By: Kamikizzle
*
* Commands: ADMIN_ACCESS_A
* kami_maplist
*
**********************************************/
#include <amxmodx>
#include <amxmisc>
#include <amxconst>
#include <cstrike>
// File
new g_szFileMaps[] = "/addons/amxmodx/configs/maps.htm"
// Registers
public plugin_init()
{
register_plugin("Maplist","1.0","Kamikizzle")
register_clcmd("kami_maplist","ClCmd_kami_maplist",ADMIN_MAP,"- Displays all of maps on the server (MOTD)")
}
public ClCmd_kami_maplist(id,lvl,cid)
{
if( !cmd_access(id,lvl,cid,1) )
{
show_motd(id,g_szFileMaps,"Maps On Server")
return PLUGIN_HANDLED
}
else{
}
}
yes, i kno there r things like this, but i wanna script my own for practice, and it sure seems like i need it