PHP Code:
/* Plugin generated by AMXX-Studio */
#include < amxmodx >
#include < fakemeta >
public plugin_init()
{
register_forward( FM_PlayerPostThink, "Fwd_PlayerPostThink", 0 );
}
public Fwd_PlayerPostThink( id )
{
if( is_user_alive( id ) )
{
client_print( id, print_center, "[FlashLight] is %s", HasUserFlashLightOn( id ) ? "on" : "off" );
}
}
bool:HasUserFlashLightOn( id )
{
if( pev( id, pev_effects ) & EF_DIMLIGHT )
{
return true;
}
return false;
}