Nevermind guys, I got it working, my code so far is:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Jailbreak Rules"
#define VERSION "1.0"
#define AUTHOR "OneMoreLevel"
new const message[] =
{
"here are the rules"
}
new const header[] =
{
"This is a header"
}
public plugin_init() {
register_plugin("Jailbreak Rules", "1.0", "OneMoreLevel")
register_clcmd ("say /rules", "jbrules", 0, "Show the rules")
}
public jbrules(id)
{
show_motd(id, message, header)
}
But I still have this question:
How can I make it so that when A person has a text file in the same folder as there motd.txt file is, and that file is named "rules.txt", it reads from that file to put it in the motd.
__________________