I have seen this done in a tutorial, but is not working when I try it. I am trying to show a website via motd. When I try the command it just shows the boards url (
http://boards.gabionstudios.com/) in the motd, nothing else.
Here is my code:
Plugin Init -
Code:
public plugin_init() {
register_plugin("Gabion IPB Integration", "1.00", "Gabion Studios")
// Registering Player Rows
register_playercolumn("ipb_id","INTEGER UNSIGNED NOT NULL DEFAULT 0;")
// Cvars
register_cvar("ipb_prefix","ipb_")
register_cvar("ipb_url","http://boards.gabionstudios.com")
// Commands
register_concmd("amx_viewboards","cmd_viewboards",ADMIN_ALL)
// Register Component
pl_compid = register_component("Gabion IPB Integration")
}
The actual function -
Code:
public cmd_viewboards(id) {
new boardsurl[128]
get_cvar_string("ipb_url",boardsurl,127)
show_motd(id,boardsurl,"Our Boards")
return PLUGIN_HANDLED
}
Screenshot:
http://minimum.gabionstudios.com/ima.../motdbug-1.png