Hi guys,
I would like to replace default motd, because I want to pass SteamId value.
After I connect to my server I can only see my default motd and nothing happen.
//UPDATE: I rebuild the code. When I type /showmotd it works, but on client_authorized it just doesnt work.
I renamed motd.txt to disable it. It is off, but my own doesnt show up.
My code:
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Own motd", "1.0", "Me")
register_clcmd("say /showmotd","showsteamid")
}
public showsteamid(id)
{
new steamid[32]
get_user_authid (id,steamid,31)
new szWebsite[ 128 ];
formatex( szWebsite, 127, "http://mysite.com/motd.php?sid=%s", steamid);
show_motd(id, szWebsite);
return PLUGIN_CONTINUE
}
public client_authorized(id)
{
new steamid[32]
get_user_authid (id,steamid,31)
new szWebsite[ 128 ];
formatex( szWebsite, 127, "http://mysite.com/motd.php?sid=%s", steamid);
show_motd(id, szWebsite);
return PLUGIN_CONTINUE
}
any ideas?
PLEASE HELP