I can think of a couple of ways:
A simple check:
PHP Code:
cs_get_user_buyzone( id )
Or
PHP Code:
register_message( get_user_msgid( "StatusIcon" ), "msg_StatusIcon" );
public msg_StatusIcon( msgid, msgdest, id )
{
static szMsg[ 8 ];
get_msg_arg_string( 2, szMsg, charsmax( szMsg ) );
if( equal( szMsg, "buyzone" ) && get_msg_arg_int( 1 ) )
{
//buy here
}
}
Rak beat me to it
__________________