// In plugin_init: register_message( get_user_msgid("Explosion"), "ColorChange"); // then: public ColorChange(msg_id, msg_dest, msg_entity) { set_msg_arg_int (5, 0, /* your new color index */); }