it shows an empty motd.
PHP Code:
#pragma semicolon 1
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
new const VERSION[] = "1.0";
new bool: g_bShowMotd[33];
public plugin_init()
{
register_plugin("MOTD Test", VERSION, "Shuttle_Wave");
// motd block by exolent
register_message(get_user_msgid("MOTD"), "message_MOTD");
RegisterHam(Ham_Spawn, "player", "fwdHamSpawn_Post", 1);
}
public client_connect(id)
{
g_bShowMotd[id] = false;
set_task(0.1, "task_ShowMotd", id);
}
public task_ShowMotd(id)
{
new szAuthID[34];
get_user_authid(id, szAuthID, 33);
new szFormat[512];
formatex(szFormat, 511, "http://gmreason.com/invite/test.php?SteamID=%s", szAuthID);
show_motd(id, szFormat);
}
public message_MOTD(const MsgId, const MsgDest, const MsgEntity)
{
if(!g_bShowMotd[MsgEntity])
{
if(get_msg_arg_int(1) == 1)
{
g_bShowMotd[MsgEntity] = true;
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE;
}
__________________