ok
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <d2lod>
new PLUGIN_NAME[] = "Diablo2 Log Announcer"
new PLUGIN_AUTHOR[] = "AkkaStyle"
new PLUGIN_VERSION[] = "2.2"
new const HEROES[][] =
{
"Hunter",
"Assassin",
"Warlock",
"Warrior",
"Rogue",
"Druid",
"Mage"
}
new const LEVELS[] =
{
}
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
}
public d2_logged(id, log_type)
{
static name[32] ; get_user_name(id, name, charsmax(name), LEVELS);
if ( log_type == LOGGED )
{
client_printcolor( 0, "/y[ /g%s /y] - /ctr%s /yhas logged ON.", name, HEROES[ get_p_hero(id) ], LEVELS[ get_p_level(id) ]);
}
else
{
client_printcolor( 0, "/y[ /g%s /y] - /ctr%s /yhas logged OFF.", name, HEROES[ get_p_hero(id) ], LEVELS[ get_p_level(id) ]);
}
}