if(get_user_flags(pClient) & ADMIN_ACCESS) { // code }
The function is called in the following manner: msg_id - Message id msg_dest - Destination type (see MSG_* constants in messages_const.inc) msg_entity - Entity receiving the message