Code:
#include <amxmodx>
new PLUGIN[]="MOTD Help"
new VERSION[]="0.1"
new AUTHOR[]="Jawn Doh"
new g_FileLocation[]="path/to/help.htm" // Edit this line
new g_ForumLocation[]="path/to/forum.htm" // Edit this line
public plugin_init() {
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say /help","show_help_win",-1)
register_clcmd("say /forum","show_forum_win",-1)
}
public show_help_win(id) {
show_motd(id,g_FileLocation,"Server Help:")
return PLUGIN_HANDLED
}
public show_forum_win(id) {
show_motd(id,g_ForumLocation,"Forum:")
return PLUGIN_HANDLED
}