Code:
public plugin_init() // plugin_init, not plugin_int()
{
register_plugin("Rules", "0.1", "UberStrike") //register your plugin
register_concmd("say test", "rules") // this is good
}
public rules(id)
{
new len = 1023 // this will allow you to add lines to your motd
new allinfo[1024]
new n = 0 // this is the current lengh of the motd
//current lenght is n=0, so start format at 0 (allinfo[n])
//len - n is what the still avaible lenght
n += formatex(allinfo[n], len - n, "Rules are here but this is example")
//we have just add above sentence lengh to n
//current lenght is now something like n=32
n += formatex(allinfo[n], len - n, "1. Here the first rule")
n += formatex(allinfo[n], len - n, "2. Here the second rule")
show_motd(id, allinfo, "Test")
return PLUGIN_HANDLED
}